[Lazarus] Rescan FPC sources crashes Lazarus

Mattias Gaertner nc-gaertnma at netcologne.de
Sat Mar 26 11:55:28 CET 2011


On Sat, 26 Mar 2011 12:43:58 +0200
patspiper <patspiper at gmail.com> wrote:

>[...]
> >>> AFAIK when writing your own thread manager you must set it.
> >> Still no excuse for a global variable. Simply registering that thread
> >> manager with some RTL class could automatically return True if the
> >> function IsRTLMultiThreaded(): boolean is called. Global variables are
> >> renowned for being "unsafe" and so 80's style of developing...
> >> improved alternative do exist now.
> > lol.
> > Changing a time critical variable to a function just to prevent
> > vandalism by newbies. For a moment I really thought you were serious. :)
> I have to partially agree with Graeme on this point, especially that 
> this package was ported from Delphi. The symptoms were on the surface 
> unrelated to the cause. I had to debug for quite a while until I 
> stumbled upon the culprit IsMultiThread assignment buried deep within 
> 10-15 units. A compile time 'read only' error would have saved me a lot 
> of grief.

The joke was to use a function.
A read only property would be nice and a separate procedure to set it.
But I don't know if this is compatible. A function is not compatible
too.

Mattias




More information about the Lazarus mailing list