[Lazarus] How to set defines for a project? Lazarus crashes...

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 9 00:22:21 CET 2016


> Bo Berglund <bo.berglund at gmail.com> hat am 8. Februar 2016 um 20:24
> geschrieben:
> 
> I tried setting the conditional "UseCThreads" for my test project but
> even though I can reach the place where this apparently is set:
> Menu: Project/Project_Options/Custom_Options/Defines
> it seems not to work!

Do you mean you added -dUseCThreads in Project/Project_Options/Custom_Options,
but it is not appended to options passed to FPC?

 
> When I use this dialog to enter the symbol UseCThreads the effect is
> invisible when I hit OK

Did you enable the checkbox of the define?

>, nothing gets added to the list of
> defines/options and when I OK on the main options window anyway
> Lazarus locks up completely!!!

It works here on OS X/carbon. Maybe the bug only appears on your platform.


>[...] Only way out seems to be to reboot the machine!!!!!
> I have not fond any way to open a menu or interact with the Lazarus
> IDE any other way after this happened so now my option is to restart
> the operating system.
> It IS still possible to move the Lazarus windows around on the desktop
> but not to close Lazarus or interact in any other way. :(

Maybe the focus is captured.
 
> Is it not supposed to be possible to use this dialog that clearly
> offers to add a define to actually do this?
> 
> In Delphi this is available in a dialog along with the path settings,
> which is very convenient to use...
> 
> I am using Lazarus 1.6RC2 and FPC 3.0.0 on Raspbian Jessie.

Mattias




More information about the Lazarus mailing list