[fpc-pascal] TThread descendant with public events

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Nov 1 10:19:31 CET 2010

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()

  - Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

More information about the fpc-pascal mailing list