[Lazarus] Rescan FPC sources crashes Lazarus
Marco van de Voort
marcov at stack.nl
Sun Mar 27 21:02:55 CEST 2011
On Sat, Mar 26, 2011 at 09:47:24PM +0100, Sven Barth wrote:
> > cannot replace a variable, see var parameter problem or assembler code.
>
> What about the following solution:
>
> * add a variable in the implementation section of system.pp that will be
> the real workhorse for "should the RTL be threadsafe" (basically what
> IsMultiThread is now)
> * when setting that private variable also set the "old" IsMultiThread
> variable (but never read it inside the RTL)
> * provide a setter function for the private "should the RTL be
> threadsafe" variable and document it with a big warning that it is only
> for use inside a thread manager.
Personally I think such methodology implemented on a broad scale (e.g. all
globals) will cause more havoc then it will solve.
More information about the Lazarus
mailing list