The VCL is not thread safe and parts of it are not re-entrant. You might need to use synchronize to sync to your main thread before you call any VCL methods.
----- Original Message ----- From: Ross Levis To: Multiple recipients of list delphi Sent: Wednesday, September 24, 2003 11:52 AM Subject: [DUG]: random thread crashes 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 ==================================== --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
