Sign in Join

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

Mailing lists / fpc-pascal

fpc-pascal · 2009-09

  1. Is this an error ?

    Can anybody explain me if this code is expected to fail with a SIGFPE in 64 bits windows 2.2.4 fpc: procedure test; var i6: int64; qw: QWord; r: int64; begin i6:=40;…

    JoshyFun, Jonas Maebe, Matthias K.
    4
  2. Sockets

    If I create a TCP socket with fpSocket(AF_INET,SOCK_STREAM,PF_UNSPEC); fpBind(lSock, @sAddr, sizeof(sAddr))<0 then fpListen(lSock, cMaxConn)<0 thenand And waits for…

    Carsten Bager
    0
  3. Move() vs MemCopy()

    I'm still porting code from SpeedSoft's Pascal compiler. The code I am porting often uses MemCopy(), but Free Pascal doesn't seem to have such an implementation. So I…

    Graeme Geldenhuys, Florian Klaempfl, Hans Mårtensson
    16
  4. Meaning of "^M^J"

    I read a source file,found it writes "^M^J" to a output. I don't know what is it's meaning, after test,I think it should be a return char, my question is, where can i…

    yu ping, Ralf A. Quint
    3
  5. String to PString assignment?

    I'm converting a project from Sibyl (a old OS/2 IDE implement in SpeedSoft Pascal). Below is the code I'm trying to convert to Free Pascal. I see FPC has a PString type,…

    Graeme Geldenhuys, Marco van de Voort
    3
  6. Command prompt

    In the old days you could write exec(C:\DOS\COMMAND.COM',' COM1'); and then get access to the command prompt via a serial interface Could someone give me a hint how to…

    Carsten Bager, Luca Olivetti
    1
  7. How to build Nice and Convenient Console Menu ?

    Hi Does anyone know how to build console menu, eg with highlight keys and arrows navigations, like images below ? Thanks Tom…

    Tom__G, Graeme Geldenhuys, Jonas Maebe
    9
  8. About extPascal

    I down loaded the extPascal package when i compile the ExtPascalSamples3.dpr see the following message: Fatal: Can't find unit Ext used by ExtPascal I use the…

    yu ping, Michael Van Canneyt, Unknown author
    5
  9. WPO in fpc bootstrap process

    I notice nowadays fpc is bootstrapped with WPO enabled. Since WPO strategy used by fpc is two phase build, the build time takes significantly longer. I don't see much…

    leledumbo, Henry Vermaak
    1
  10. Extend linker error message for multiple defined symbols

    Is there any option (e.g. -v variant or something else) to display additional information about multiple defined symbols error when linking? I mean something like where…

    leledumbo
    0
  11. PasJS

    Hi ! Im working on the PasJS translator but im having some problems : How to map ObjectPascal object orientation philosophy into JavaScript object orientation philoshopy…

    Jorge Aldo G. de F. Junior, Michael Van Canneyt
    2
  12. FPC reference manual.

    Hello. I'm new to FPC. I've used TP for many years up to TP7 but not Delphi. Then I came to Ada. FPC seems to bring many enhancements to TP. First I'm reading some…

    Pascal, dmitry boyarintsev, Marco van de Voort
    7
  13. Compiling FPC itself with optimization

    How optimized is FPC itself when I do a 'make all' in the source directory? No optimization, memory optimized, speed optimized, all of the above, etc.. Can I improve…

    graemeg.lists, Graeme Geldenhuys, Jonas Maebe
    7
  14. How to use var or object in a programm file from a unit file

    Program prog1 use unit1 myObj=class private public ..... end; --------------------------- unit unit1 .............. like above, can i access myObj in unit1?

    yu ping, David Emerson, Jeff Wormsley
    6
  15. options for better performance & declaration of system procedures

    Hi. I just tried to unfairly compare fpc-compiled binary and gcc-compiled binary under my Gentoo box. FPC is incredible. `ps` data shows the fpc one costs nearly no…

    章宏九, Jonas Maebe, Joost van der Sluis
    6
  16. map file

    Good day. Do not prompt way to generate map file with line numbers in source code? By analogy with Delphi. Since not get to the addresses in the Call Stack to get a line…

    Alexey Voytsehovich, Jonas Maebe, Joost van der Sluis
    8
  17. Questions

    I have some questions about the RTL and FPC and how it effects what license I can use for my source. 1) Does FPC impose any license restrictions for the programs I…

    James Buren, Marco van de Voort
    1
  18. Operator overloading

    Is there any way of overloading the ^ (dereference) operator for a user-defined type? I'm looking at a simple Prolog interpreter written in TP3, i.e. 16-bit code, and I…

    Mark Morgan Lloyd, Jonas Maebe
    2
  19. Checking Linux process existence (child or not) without OS command ?

    Does anyone know a simple way to check if a Linux process exists/runs (child or not) *without* running an OS command via TProcess (or other)? Thanks. Tom

    T. Guilleminot, David W Noon, Graeme Geldenhuys
    10
  20. getting started with threads

    I am getting started with threads (linux/cthreads) and I'm very happy so far, but unsure of the best way to tackle my situation. I have a program that needs to perform…

    David Emerson, Dariusz Mazur, David W Noon
    28
  21. Variants and Extended

    Dear list. Over the last couple of days i've been trying out different things with variants, but I always seem to end up in the same situation: When working with…

    Torsten Bonde Christiansen, Marco van de Voort, Michael Van Canneyt
    6
  22. Nil'ing a dynamic string array...

    Hi. A short question: Will nil'ing a dynamic string array automatically decrease ref. count on all strings in the array or must this be done manually for the entire…

    Torsten Bonde Christiansen, Jonas Maebe
    1
  23. $IF documentation - missing help

    Where is the extended $IF directive documented. The prog.pdf has 2 paragraphs on $if and then referes you to the "conditionals" section. But the Conditionals section is…

    Graeme Geldenhuys, Aleksa Todorovic, Marco van de Voort
    3
  24. Error: Identifier not found "ChooseFont"

    When I try to use ChooseFont function in my programm,I get following error: test.pas(37,35) Error: Identifier not found "ChooseFont" Isn't the function in windows unit?

    yu ping, Marco van de Voort
    3
  25. Bus error on ARM-WinCE crosscompiler FPC 2.3.1

    Hi If I crosscompile the folowing program with Lazarus-0.9.29-21694-fpc-2.3.1-20090914-win32.exe and Lazarus-0.9.29-21694-fpc-2.3.1-20090914-cross-arm-wince-win32.exe:…

    Bogdan
    0
  26. GetLastOSError return values?

    I'm using Linux. The online (html) help doesn't give any clue as to what the return values are for GetLastOSError(). Where can I find this information? Running out of…

    Graeme Geldenhuys, Jonas Maebe
    1
  27. external .so linking in Linux w/2.5.1 rev 13680 (Sep 8 09)

    Hi All! I've noticed that someone made a headstart with a unit to bind with FUSE in FreePascal at http://bugs.freepascal.org/view.php?id=12218. I've taken the last two…

    Michael Green, Jonas Maebe
    2
  28. Text IDE under Linux FrameBuffer

    When I run the Text IDE under the Linux Framebuffer (fbdev), then the box drawing characters do not display correctly. Anybody know if there is a solution for this. The…

    Graeme Geldenhuys, Giuliano Colla, Nikolay Nikolov
    4
  29. Weak linking on Mac OS?

    I wasn't able to find information on this on the web - apparently it has been implemented for Mac OS X but how can I use it? Is there a special keyword for it? Thanks.…

    Tobias Giesen, Jonas Maebe
    1
  30. Please Help with inifile in WinCE (ReadSectionValues into stringlist)

    Hi I have a small translation file (pure ASCII DOS text) written in Win32. I copied it to the emulator with Activesync. The file contains one sections ('f') in this…

    epergola, JoshyFun
    1
  31. as keyword behaivor

    Its quite a while since i last used the "as" Keyword but it seems to be broke somehow. In the following code i've got a compiler error: Illegal parameter list in the…

    Matthias K.
    1
  32. Will kylix resurrect?

    I'm taking an interesting conversation in this feed comments: http://wings-of-wind.com/2009/09/11/kylix-2011/ but I dont know enough FPC to documents appropriately it's…

    Corrado Valeri, Henry Vermaak
    2
  33. Multi-Threading and usage of Semaphors under FPC

    I had a previous discussion about Semaphores. Apparently my usage of them was not very good, because they were specific to the Linux system and Posix. Anyway, I was told…

    Graeme Geldenhuys, Jonas Maebe
    1
  34. GetThreadId, GetCurrentThreadId and MainThreadId

    While investigating http://bugs.freepascal.org/view.php?id=14335 I ran into the following peculiarities. Please, comment and tell for which item you want bug reports, if…

    Vincent Snijders, JoshyFun
    3
  35. Problem with string manager

    Hello list. The following cgi script shows "??" in the browser if cwstring is declared, and works as expected if the declaration is removed. Is there something I can…

    Joao Morais, Jonas Maebe
    2
  36. Linux program sometimes crashes with "EProcess : Failed to create pipes"

    Have a Linux program that recently started to crash several times with such message : An unhandled exception occurred at $080A4CB9 : EProcess : Failed to create pipes…

    T. Guilleminot, Burkhard Carstens, Funky Beast
    3
  37. mysterious crashing, maybe related to setlength

    My program is crashing, and I just can't figure out why. Heaptrc has given me this rather cryptic info: Marked memory at $B79BA208 invalid Wrong signature $000020D8…

    David Emerson, Jonas Maebe
    3
  38. Licencing software made in Free Pascal

    What type of licence can I use when I use source from directory "source\rtl" and "source\packages"?

    wht244, Henry Vermaak, Jonas Maebe
    8
  39. OS/2 INF help support

    I know that the FP IDE (text mode) has support for reading OS/2 INF help files. This is pretty cool and it works with just about any INF file I threw at it. :-) I read…

    Graeme Geldenhuys, Marco van de Voort, Michael Van Canneyt
    22
  40. Is it possible to create COM server with fpc?

    Has anyone tried to implement a COM server with FPC?(on windows)

    yu ping, Corrado Valeri
    3
  41. How to find the byte offset of the n-th character in an UTF-8 string?

    I have a situation where I internally work with AnsiStrings but need to convert them to UTF-8 before passing them to libpango, which I do with AnsiToUtf8(). I then need…

    Roland Schaefer, Martin
    1
  42. C-->Pas translation question

    how to translate following C code to pascal? enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; thanks

    yu ping, Henry Vermaak, James Buren
    2
  43. The names of the various FPC documentation

    Maybe it's just me (please let me know if it is), but looking at the various FPC .pdf files in a folder, I am never sure which one I should open for whatever I am…

    Graeme Geldenhuys, Corrado Valeri, David W Noon
    22
  44. Printing the FPC documentation

    I'm all about saving the planet and saving our trees, but currently reading documentation on-screen (no matter how hard I try), is just not as comfortable as reading…

    Graeme Geldenhuys, Corrado Valeri, Malcolm Poole
    10
  45. RTL Contents pages have overlapping text

    Considering that LaTeX does a really good job about text layout and styling, I was very surprised to notice the following issue in the RTL.pdf document. See attached…

    Graeme Geldenhuys, Marco van de Voort, Michael Van Canneyt
    5
  46. Lazarus install, getting Lazarus/Freepascal

    Is it easy to get Lazarus/Freepascal with the Debian netinst sid Image? (unstable) Or may be stable version of debian, but as I read it works olny with unstable... Or…

    Rainer Stratmann, Matthias Klumpp
    2
  47. InterProcessCommunication

    I would like to use some form of IPC, but I would like some examples. In the rtl-reference I found working examples with sockets, but these use deprecated functions. I…

    Koenraad Lelong, Michael Van Canneyt
    1
  48. Tracking units and include files

    When building a large program is it possible to get a list of what unit and include files are used at the various stages and to put them in an unambiguously-named file?…

    Mark Morgan Lloyd
    0
  49. FCL-PASSRC

    Is there a example using FCL-PASSRC?

    yu ping, Michael Van Canneyt
    1
  50. Parser combinator library

    Is there any parser combinator library for Pascal? View this message in context: http://www.nabble.com/Parser-combinator-library-tp25271707p25271707.html Sent from the…

    leledumbo, Funky Beast, Paul Nicholls
    4