Bo Berglund via Lazarus <lazarus@lists.lazarus-ide.org> schrieb am Do., 26. Juli 2018, 10:02:
> Then I zipped up the sources and put them on the RPi3 box where I have > FPC 3.0.4 and Lazarus 1.8.4. > Opened the project in Lazarus and compiled and ran the program. > Did you run it from inside Lazarus? Thus with the debugger? That might help you find the problem. > So I have NOT edited the code for any Win/Linux differences for > example, is that needed? > Maybe, depending on your program. > > For example in some console apps I have made also for both Windows and > Raspbian I have this in the lpr file: > {$IFDEF UNIX} > {$IFDEF UseCThreads} > cthreads, > {$ENDIF} > {$ENDIF} > > If that is needed also here, where should it be put? > Also in the main project file in front of any other units. If your program indeed uses threads (don't know whether Indy uses them) then you'll also either need to add UseCThreads to the project defines or remove the "$ifdef UseCThreads" so that the cthreads unit is always used on Unix-like systems. Regards, Sven >
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus