On 25.03.2011 22:19, Graeme Geldenhuys wrote:
On 25 March 2011 23:08, Mattias Gaertner<nc-gaertnma@net****> wrote:
The scan uses multi threading, which was broken by the installed
package.
I was reading the thread and replying before I read the whole thread.
Indeed that installed package did do something it was not supposed to
do.
In all fairness, how are all developers supposed to know that? Isn't
there a better way that FPC could hide such functionality (not
allowing a developer to set a RTL controlled variable they are not
supposed do). That should really be filed as a bug against FPC. They
[fpc] should rather use some singleton class with a read-only
property, or simply a function (function IsRTLMultiThreaded: boolean;)
or something, not just a global read-write variable - that's just
sloppy!
You know the answer, Graeme...
But I agree that this could be done better. Keep the IsMultiThread
variable for Delphi compatibility, but use a private variable for the
real stuff and set the Delphi compatible one together with the real one
internally.
Regards,
Sven
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus