C builder RAD 2010 RTL/VCL Application->Terminate() Function NOT TERMINATING THE APPLICATION
- by ergey
Hello,
I have problem descriebed also here: http://www.delphigroups.info/3/9/106748.html
I have tryed almost all forms of placing Application-Terminate() func everywhere in the code, following and not 'return 0', 'ExitProcess(0)', 'ExitThread(0)', exit(0). None working variant closes the app. Instead the code after Application-Terminate() statement is running.
I have two or more threads in the app. I tryed calling terminate func in created after execution threads and in main thread.
Also this is not related (as i can imagine) with CodeGuard / madExcept (i have turned it off and on, no effect). CodeGuard turning also did not do success.
What i should do to terminate all the threads in c builder 2010 application and then terminate the process?
Thank you.