2006-05-16 03:47:58 AM off-topic2
Have you tried getting the thread and form basics running without using a
DLL interface, it'll be easier to debug?
"poojo hackma" <poojo.com/mail>wrote in message
Quote
This version hangs on WaitFor(). Why? How do I correct this?
Remy Lebeau (TeamB)
Delphi Developer
2006-05-16 05:46:41 AM
Re:Re: DLL Threads, version 3
"poojo hackma" <poojo.com/mail>wrote in message
Quote
If MainForm is closed (or if Stop is clicked) while TestThread is running,
the Application hangs on Thread1::TerminateThread's calls to WaitFor().
However, if I use Form1's Stop button (FormFile.cpp), the
Thread1::TerminateThread calls WaitFor() successfully.
Can you (or anyone else) see what would cause WaitFor() to hang?
Please see my other reply for a detailed explanation of what is happening.