Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

applicatin.terminate problem 1

Status
Not open for further replies.

LinuXelite

Programmer
Jun 21, 2002
150
CA
Hi!

In my delphi project, I close my program by
application.terminate;

However, the application does not close. I need to go in the task manager and kill the process.

I have few tchart, few mysqlcomponent (server, query, dataset) and few rave report.

Do you see what could be the problem?

Thank you
Frank
 
Something in the finalization code is hanging. Try using the debugger to step through it.
 
Application.ProcessMessages;
application.Terminate;

does the job.

nevermind :)
 
No I was wrong...

When I debug, my program execute
application.terminate;
but still hang.

the only debugging I can do is a ASM debuggin and the program loops over and over again on 4 ASM intructions.

Any idea?


 
Using Terminate is a bit drastic and not very graceful, why can't you use Close ?
 
I always use Terminate, and it's never failed me, maybe it's one of the components you're using still running (one of the database ones?)
 
Yeah I forgot a ravereport.close....

May be it will solve my little problem...

Let me try this brb
 
What are those 4 asm instructions doing? A loop gone huge, perhaps? What are they part of?
 

I had a similar problem when I executed my program on win95 and 98 machines, but worked fine on win 2000 and
win XP.
I am still clueless why!!!!!!!!!!!!!!!
 
Just close your app's like Borland says you should, by a call to Mainform.Close, and all wil be just fine.
As you discovered already, there's just disadvantages to calling application.terminate, and this is documented... (Just press ^F1 with the cursor on the '.terminate' part ;-) )

HTH
TonHu
 
My documentation doesn't have any disads, but then again it's not exactly the latest version (Delphi 3). It just says that Application.Terminate does exactly the same as closing the main form.
 
Solved.


RvCustomConnection was my problem. When I closed the ^program, this component goes into an infinite loop.

Hum I have so much problem with Rave report.

Like printing dbchart. Anyway I'll check for an alternative.

Francois
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top