View Single Post
  #1  
Old 10-27-2010, 10:37 AM
axxa axxa is offline
Member
 
Join Date: Oct 2009
Posts: 37
Thumbs down How to force terminate a delphi application?

Anybody knows how to force terminate a delphi application?

I use D5 with QReport 3.0.5 and this version of QuickReport has a bug when useing QRDBRichText. When u try to close the apllication, after preview the report, an exception error message raise.
Because of this , I need to force terminate the apllication.

I try:
- TerminateProcess(GetWindowLong(WindowHandle, GWL_HINSTANCE), 0);
- Application.Terminate;
- PostMessage(Handle, WM_CLOSE, 0, 0);

nothing works...
How can I do?! I need to kill my application but I don't know how..
Thank you very much for any idea...
Reply With Quote