fpc-pascal · 2020-01
- fpmmap arm-linux issue8
Hi all! I'm porting a program written in C that uses mmap (fpmmap) that maps GPIOs and other utilities on a beaglebone. Everything is going well, until the test, where I…
- Parameter Checking in fpjsonrpc4
is it correct, that TJSONRPCHandler only checks for parameter beeing object or array (according to TJSONRPCHandler.Options) or should it also check for individual…
- Best start point for adding new FPC target10
Hi all! I'm studying how to add a new target for the Freepascal compiler. The target is the missing armhf-FreeBSD. So I have looked at FPC guide (…
- IDLE_PRIO with FPC-compiled processes0
Hi all Have anybody experienced exceptions "Failed to create new thread" when FPC-compiled process priority changed with schedtool -D [pid]? Denis Golovan
- TProcess and zombie processes in *nix systems3
In fgGUI applications I often launch other applications. eg: The help viewer etc. In such cases, I simply want to launch the application and then forget about it. I have…
- Delphi generics bug?4
Is this a bug or intended behavior? I would think there should a type mismatch. {$mode delphi} program test; type TFooA = class end; type TFooB = class end; type…
- TIniFile.WriteString gives file with BOM, bad8
ini_lexmap:= TIniFile.Create(fn_lexmap_final); try ini_lexmap.WriteString('ref', IntToStr(i_sub), s_lexer);…
- "Hello world" syscalls7
I found this article: https://drewdevault.com/2020/01/04/Slow.html but FPC is missing, so I wrote simple: program Project1; begin writeln('Hello world!');…
- -WP compiler macro?1
Is there a compiler macro which is set to the value of -WP? It would be useful to know which SDK I'm targeted while compiling so I can omit certain code at compile time.…
- Is TryStrToDate works wrong?3
var DT:TDateTime; begin Writeln(BoolToStr(TryStrToDate('1',DT),True)); The result of above code is "True" with FPC and "False" with Delphi. Gabor
- Calling function pointer to main program8
I need to override the main program function and then call back the main program later. I know I can use -XM to set another function name besides "main" but then how do…
