fpc-pascal · 2009-09
- Is this an error ?4
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;…
- Sockets0
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…
- Move() vs MemCopy()16
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…
- Meaning of "^M^J"3
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…
- String to PString assignment?3
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,…
- Command prompt1
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…
- How to build Nice and Convenient Console Menu ?9
Hi Does anyone know how to build console menu, eg with highlight keys and arrows navigations, like images below ? Thanks Tom…
- About extPascal5
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…
- WPO in fpc bootstrap process1
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…
- Extend linker error message for multiple defined symbols0
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…
- PasJS2
Hi ! Im working on the PasJS translator but im having some problems : How to map ObjectPascal object orientation philosophy into JavaScript object orientation philoshopy…
- FPC reference manual.7
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…
- Compiling FPC itself with optimization7
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…
- How to use var or object in a programm file from a unit file6
Program prog1 use unit1 myObj=class private public ..... end; --------------------------- unit unit1 .............. like above, can i access myObj in unit1?
- options for better performance & declaration of system procedures6
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…
- map file8
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…
- Questions1
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…
- Operator overloading2
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…
- Checking Linux process existence (child or not) without OS command ?10
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
- getting started with threads28
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…
- Variants and Extended6
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…
- Nil'ing a dynamic string array...1
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…
- $IF documentation - missing help3
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…
- Error: Identifier not found "ChooseFont"3
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?
- Bus error on ARM-WinCE crosscompiler FPC 2.3.10
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:…
- GetLastOSError return values?1
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…
- external .so linking in Linux w/2.5.1 rev 13680 (Sep 8 09)2
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…
- Text IDE under Linux FrameBuffer4
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…
- Weak linking on Mac OS?1
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.…
- Please Help with inifile in WinCE (ReadSectionValues into stringlist)1
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…
- as keyword behaivor1
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…
- Will kylix resurrect?2
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…
- Multi-Threading and usage of Semaphors under FPC1
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…
- GetThreadId, GetCurrentThreadId and MainThreadId3
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…
- Problem with string manager2
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…
- Linux program sometimes crashes with "EProcess : Failed to create pipes"3
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…
- mysterious crashing, maybe related to setlength3
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…
- Licencing software made in Free Pascal8
What type of licence can I use when I use source from directory "source\rtl" and "source\packages"?
- OS/2 INF help support22
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…
- Is it possible to create COM server with fpc?3
Has anyone tried to implement a COM server with FPC?(on windows)
- How to find the byte offset of the n-th character in an UTF-8 string?1
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…
- C-->Pas translation question2
how to translate following C code to pascal? enum{IUP_SHOW, IUP_RESTORE, IUP_MINIMIZE, IUP_MAXIMIZE, IUP_HIDE}; thanks
- The names of the various FPC documentation22
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…
- Printing the FPC documentation10
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…
- RTL Contents pages have overlapping text5
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…
- Lazarus install, getting Lazarus/Freepascal2
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…
- InterProcessCommunication1
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…
- Tracking units and include files0
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?…
- FCL-PASSRC1
Is there a example using FCL-PASSRC?
- Parser combinator library4
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…
