Op 2010-11-01 11:06, Sven Barth het geskryf: > > The code is still run in the thread's context, no matter whether the > code is in your TThread class or e.g. a global procedure. So you should > use Synchronize to trigger the event.
Thank you very much Sven and Martin. What you said then confirms why my application crashes after X amount of lines were added to the StringGrid, but worked correctly when the event was triggered inside the Synchronize() call. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net:8080/fpgui/ _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal