Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal

fpc-pascal · 2009-11

  1. sysutils.beep doesn't beep under Linux?

    I'm porting some code which "beeps" the console. When I use sysutils.beep() it doesn't work under Linux. What's the easiest way to accomplish this? Thanks. -- Bruce…

    Bruce Bauman, Andrew Haines, Anthony Walter
    37
  2. private integer is an illegal counter variable

    If I define a private integer: TDemo = class(TCustomApplication) private i: integer; ... and in a protected method I use it: for i := 0 to List.Count - 1 do ... then I…

    Juha Manninen, Flávio Etrusco, Frank Peelo
    13
  3. readonly variables

    is it possible to set a variable in a programm as a readonly variable? I would set a variable at a position in the runing programm. Since this time the variable should…

    Markus Glugla, Aleksa Todorovic, Andrew Hall
    43
  4. (Generic) Container Classes

    I submitted a TStringHashMap class to CCR. I also created a wiki page: http://wiki.lazarus.freepascal.org/StringHashMap I made a comprehensive demo program for it. It…

    Juha Manninen, leledumbo, Vincent Snijders
    5
  5. Interfaces via implements keyword

    Hi all I've got a non-obvious class hierarchy with interfaces involved. The problem is that, I thought "property ... implements ...;" construction fully substitute for…

    Denis Golovan, Andrew Hall, Florian Klaempfl
    8
  6. Troubles with CGI and POST content

    Hello together! I'm working on a little personal website and encountered a very strange problem with the content that is sent by a form: I run the attached CGI test…

    Sven Barth, Joost van der Sluis
    4
  7. Split and Join

    FPC's strutils or other libraries still don't have functions for splitting a string to a list and joining a list of strings again to one string, given a delimiter as a…

    Juha Manninen, Luca Olivetti, Mattias Gaertner
    5
  8. Pascal grammar for FPC.

    Hello. In order to get translations from FPC to Ada language, I have updated P2Ada translator http://sourceforge.net/projects/p2ada. I add a new ObjP2Ada branch. The…

    Pascal
    0
  9. make CPU_TARGET=arm OS_TARGET=linux ignores both flags

    I'm trying to cross compile FPC 2.5.1 in Linux 64 bit (in Arch Linux) to arm (eabi) cpu. When I'm using make CPUT_TARGET=arm OS=TARGET=linux all The make file build an…

    ik, Henry Vermaak, Jonas Maebe
    5
  10. TCgiApplication in cgiapp unit - mostly deprecated

    Most of the methods in TCgiApplication (located in cgiapp unit) is marked as deprecated. There is no documentation for this unit, so I do not know much about it. If all…

    Graeme Geldenhuys, Michael Van Canneyt
    1
  11. Where do I contribute units to?

    Hi all I have translated a C header file for interfacing with a National Instruments data acquisition device. This is a standalone, independant unit which will rarely if…

    Wimpie Nortje, Jonas Maebe
    1
  12. sqldb, oracle, and mac os x

    I'm writing a program which connects to a remote Oracle server using sqlDB (TOracleConnection). TOracleConnection keeps telling me that Oracle client library…

    Bee Jay, Michael Van Canneyt
    1
  13. Re: cpu

    it compiles out of the box with the 2.2.4 go32v2 compiler. You will want to add a {$CALLING PASCAL} statement at the top of the units - some assembly code assumes some…

    Schatzl Thomas, Florian Klaempfl, Jonas Maebe
    4
  14. Escaping keywords

    Hello Developers There's Delphi compatibility feature to escape keyword with "&" character. Is there any way to turn the feature off or enable a hint or a note about the…

    dmitry boyarintsev
    0
  15. Subversion server making hickups...

    Hi. For unknown reasons the svn2.freepascal.org subversion server seem to make hick-ups when I do an update. I get the error: svn: Can't find a temporary directory:…

    Torsten Bonde Christiansen, Vincent Snijders
    2
  16. Re: Illegal type conversion errors in FPC 2.5.1

    Thanks. It compiles and works now. In the latest Delphi VirtualTreeView version the typecast is changed to Byte or Word depending on the element count in a set. I…

    Juha Manninen, Jonas Maebe
    4
  17. Generic type declaration example versus manual.

    Hello. In example tgeneric16.pp (from FPC 2.2.4 sources) the generic type TStack is declared as: type { TStack } generic TStack<T> = class(TObject) public procedure…

    Pascal, Anthony Walter, Florian Klaempfl
    19
  18. Using C functions

    Is there any way to use a C library that use the __fastcall calling convention?

    Wimpie Nortje, Andrew Haines, Ivo Steinmann
    4
  19. How does inline work?

    I'm trying to use inline to remove unnecessary debugging code, such as the following code, with FPC 2.3.1 on Windows, when compiling for production. However when I…

    Thierry Coq, Jonas Maebe, JoshyFun
    5
  20. MSEide+MSEgui rev. 2.2beta2

    MSEide+MSEgui rev. 2.2beta2 for FPC 2.2.4 and 2.4 has been released: http://sourceforge.net/projects/mseide-msegui/files/ There is an experimental x84_64_linux version…

    Martin Schreiber
    0
  21. How to solve "variable does not seem to be initialized" compiler hint.

    And how do I solve this compiler hint? Normally I use FillChar(), but here it made no difference. The hint no simply moved to the line containing FillChar() call. :-(…

    Graeme Geldenhuys, Aleksa Todorovic, cobines
    68
  22. One experience with the unit serial

    one more question regarding the unit serial. I use the following function to get one single byte form a serial port, which has been open before with seropen: function…

    Holger Bruns, Brad Campbell, Gustavo Enrique Jimenez
    16
  23. How to solve "Conversion between ordinals and pointers is not portable"

    How to I solve this compiler hint? I've managed to get DCPCrypt compiled and running successfully (with my current tests) under 64-bit FPC & Linux. But I still have…

    Graeme Geldenhuys, Aleksa Todorovic, dmitry boyarintsev
    16
  24. Microsoft SAPI

    Does anyone know of Pascal binding for Microsoft SAPI that can be used with FPC ? Ido http://ik.homelinux.org/

    ik, Marco van de Voort
    2
  25. using popen() and assign/reset

    I'm trying to get unix.popen() running. The RTL.pdf says the file opened with popen (stdin for reading here) has to be reset or rewritten. The example does not do…

    Marc Santhoff, Marco van de Voort
    1
  26. question about FpTimes in BaseUnix package

    I am using the FpTimes function from the BaseUnix package. The documentation says it returns -1 on an error, otherwise the number of clock ticks since boot time.…

    Bruce Bauman, Henry Vermaak, Jonas Maebe
    4
  27. Is there a way to declare a static varible in a function body?

    Is there a way to declare a static varible in a function body? the varible should remain the value assigned from last call. thanks

    yu ping, Frank Peelo
    2
  28. IOPL - how to use it?

    I am currently running the fpc in version 2.2.2-8, and I have some problems to get iopl and fpiopl working. It seems, the units oldlinux and x86 are not available to…

    Holger Bruns
    0
  29. Web interface for public.mseide-msegui.talk

    Wahono activated a web interface with search function for public.mseide-msegui.talk: http://msegui.org/fudforum/index.php?t=thread&frm_id=2&S=a0f13320c71aa14a269ca8b4d05f…

    Martin Schreiber
    0
  30. Re: Installing "fpc-2.4.0-0.rc1.src.rpm" to OpenSuse 11.2

    Right, yes. It is /usr/src/packages. I was looking for /usr/share/fpcsrc or similar like older Suse packages have. I found the Programmer's guide under Documentation on…

    Juha Manninen, Joost van der Sluis, Paul Ishenin
    2
  31. Parameter with no type defined?

    If I have a declaration as follows... what type is InData and OutData? Pointers? If it is a generic Pointer type, then why doesn't developers simply declare it as…

    Graeme Geldenhuys, dmitry boyarintsev
    2
  32. const records passed incorrectly

    Hi all. I am new to fpc and linux in general, though I do have a long time experience with Delphi. I was writing some code basic system (using the libc library) when I…

    Anthony Walter, Eduardo Morras, Florian Klaempfl
    30
  33. Lazarus

    Is here a contact person who is developing lazarus? May be everyone is interested in this: When searching text in lazarus, always the preconfiguration is 'searching from…

    Rainer Stratmann, Jonas Maebe, Martin
    10
  34. one question FPC

    I have a program in Pascal that compiles correctly on windows 32-bit but when I compile on windows 64-bit give me the following errors: Compiling…

    Lidia Stanganelli, Jonas Maebe, Marc Weustink
    2
  35. Ubuntu PPA for fpc 2.4rc1?

    will somebody please create an Ubuntu PPA for newer releases of fpc? ;-) I guess this would be trivial to the maintainer of fpc packages in Ubuntu, but if it's not the…

    Flávio Etrusco, Matthias Klumpp
    1
  36. Compiler Warning: Constructor should be public

    I've searched the list archives related to the subject of the fpc warning "Constructor should be public" and am unsure as to the resolution of this issue, or would…

    Anthony Walter, Flávio Etrusco, Graeme Geldenhuys
    11
  37. Any Way to catch endless loop in fpc in Wince?

    Hi Is there a way (or a 3rd party component or a library) to catch an endless loop after x seconds in applications running on arm Wince? View this message in context:…

    epergola, Jonas Maebe, JoshyFun
    3
  38. h2pas truncates strings

    Hallo I am trying to convert a .h to pascal with h2pas. The header file contains many declarations with lines of 400 characters or longer. h2pas creates the *.tmp.h file…

    Wimpie Nortje, Henry Vermaak
    5
  39. GDB for 64 bit Windows ?

    i have build a native ppcx64 in windows 7 64 bit. But i can't find a 64 bit version of GDB in http://svn.freepascal.org/svn/fpcbuild/trunk/install/binw64. Is the 32 bit…

    Dimitrios Chr. Ioannidis, Vincent Snijders
    1
  40. Stopping daemon in linux

    Hi I am writing an application using lazdaemon. How does one stop the daemon gracefully, ie not killing it. The wiki says the daemon runs until it receives the TERM…

    Wimpie Nortje, Henry Vermaak, Jonas Maebe
    22
  41. Why can't 64bit FPC cross-compile 32bit

    What can the 32bit FPC compiler (currently I run under Linux) cross-compile to 32bit Windows or 64bit Linux. But the 64bit FPC (Linux) can only cross-compile to other…

    Graeme Geldenhuys, Florian Klaempfl, Jonas Maebe
    16
  42. Stack checking in dynamic libraries

    I have found out the following during development of my project and wanted to ask for some explanation. I have a dynamic library which is dynamically loaded from the main

    cobines, Jonas Maebe, Joost van der Sluis
    4
  43. TCustomApplication and QApplication

    I'm trying to write a console program that uses some features of QT (webkit and printing from webkit) using FPC 2.2.5 QT have QApplication that I require to use because…

    ik, leledumbo
    2
  44. Understanding valgrind logs

    I'm trying to figure out valgrind's log about a program I wrote in Pascal using FPC. I have a lot of the following messages:\ ==30348== Mismatched free() / delete /…

    ik, Jonas Maebe
    2
  45. Debugger for the fpc available?

    while writing some Pascal code, I am still looking for a debugger, which works like the turbo debugger, in a similar way. I would love it to get a clue. Best regards,…

    Holger Bruns, David Emerson, Mattias Gaertner
    2
  46. Forin Test

    I've play with forin construction. To my work I need more than one per collection. In attach is one of example program. Can someone review it. is this proper…

    darekm, Dariusz Mazur, Paul Ishenin
    7
  47. Windows Seven and SVN source install

    I just got a laptop that came with Windows Seven. I have complete automation scripts with my Ubuntu boxes but NONE of the commands to "make" FPC translate for me. I…

    Andrew Brunner, Jonas Maebe, Marco van de Voort
    9
  48. Is there call back function when read resourcestring

    Is there call back function when read string resourcestring, like as resourcestring sHello := 'Hello'; s:= sHello; //<-- here like TWideStringManager is there a manager…

    Zaher Dirkey, Michael Van Canneyt
    1
  49. fpc and Sqlite UDF

    Hi Anybody has written custom UDF for Sqlite 3 using fpc? If so kindly help me with some hints to get started. regards Nataraj

    Nataraj S Narayan, Ivo Steinmann, Luiz Americo Pereira Camara
    8
  50. G_TYPE for custom class

    Hello! I have the following part of GLib-C-Code: typedef struct SomeObject SomeObject; typedef struct SomeObjectClass SomeObjectClass; GType some_object_get_type (void);…

    Matthias Klumpp
    0