C builder RAD 2010 RTL/VCL Application->Terminate() Function NOT TERMINATING THE APPLICATION

Posted by ergey on Stack Overflow See other posts from Stack Overflow or by ergey
Published on 2010-04-21T18:39:18Z Indexed on 2010/04/21 18:43 UTC
Read the original article Hit count: 380

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about c

    Related posts about builder