Hi Ross, I would suggest adding in some simple logging to try and find out where/why it's crashing. It's probably something quite simple, but finding it within a thread isn't necessarily as simple.
Regards, Bevan -------Original Message--------- From:"Ross Levis" <[EMAIL PROTECTED]> To:Multiple recipients of list delphi <[EMAIL PROTECTED]> Cc: Subject:[DUG]: random thread crashes Date:Wed, 24 Sep 2003 11:52:01 +1200 I moved a procedure, which updates a text file, from my main unit to a thread so it didn't effect the operation of the program. The thread reads data from the main units object including some data in a listview in the main unit, but it doesn't update any information. I'm getting the odd rare crash when the thread is created/run. I'm testing that the thread is not active before it gets run. Do I need to move all the data I'm using from the main unit to temporary variables before calling the thread? It can work 50 times without a problem but then crashes out of the blue. Any ideas? Best regards, Ross Levis Tauranga. ==================================== StationPlaylist.com http://www.stationplaylist.com Low-cost music scheduling, live assist & automation software. Mailing List: http://groups.yahoo.com/group/StationPlaylist ====================================
