Why the program closes will be very slow??

Very strange program opened soon, but in the closed slowly, by viewing the task manager to find memory program is open but not many, but closes occupy a lot of memory, and then shut down very slowly, or even die! Excuse me, this is what causes? I have the form of Free ah, why such a card.!!!

Started by Liz at February 05, 2016 - 12:08 AM

When the form appears as abnormal shutdown when debugging, then does not close, Guan Bantian, to cut the task manager. What happened? Some people met you? ?

Posted by Liz at February 09, 2016 - 12:18 AM

SIGSEGV this is segment fault, should be used an invalid address is caused, the likelihood is that some objects have been released, and then go to visit it.

Posted by Carol at February 23, 2016 - 12:53 AM

The question is when will appear this kind of circumstance I click the form is closed, but the window closing process I didn't do what ah!

Posted by Liz at February 28, 2016 - 12:58 AM

Are you in the form of OnClose or OnDestroy event processing "will have the form of Free"?

Posted by Carol at March 10, 2016 - 1:38 AM

I find no findings will form the Free statement.

Posted by Liz at March 24, 2016 - 2:01 AM

Is not I cited reason illegal address, I in the form close event intentionally cited the release form errors occurred:
And in this case I IDE never card. Unlike the above me, and find out where in my IDE a file in your own. And I used Lazarus and Delphi basically is the same!! I do not know what reason.!!

Posted by Liz at March 27, 2016 - 2:03 AM

This error is not the same? The only difference is that your program without debugging information compiled, so no display to the number of rows in the source file.

Posted by Carol at March 31, 2016 - 2:22 AM

Double check your OnClose event and OnDestroy event (if any), you'll find out problems.

Posted by Lucy at December 03, 2016 - 7:30 PM

Looking for a private letter.
(the replies and the referenced content independent)

Posted by Lucy at December 14, 2016 - 7:49 PM

Hey! I found no problem ah, I am in the two event is what also do not write it would appear abnormal, boring ah!

Posted by Liz at December 18, 2016 - 8:05 PM

From the form to the form is closed, what thing is not done will also appear this kind of wrong, it implies that there is not FormCreate.?

Posted by Liz at December 20, 2016 - 8:58 PM

Possibly, there might be some element of initialization, finalization part of the code to run, also may be the data structure of some library pointing error (code at the end of the bank to release the resources will go wrong).

Posted by Carol at January 02, 2017 - 11:16 PM

DelphiGuy I seem to know why! For example I have two forms Form1, Form2, when I when you close the Form2, the Form2.Free in its OnClose event, so when I close the program, it appears the mistake.
I also want to know is when I want to close a subform, is not Form.Free in its OnClose event? If Free is not the case that it did not account for the limited memory space!

Posted by Liz at January 03, 2017 - 9:27 PM

The reason is the original 4, say, the closed form of the default action is hidden, if you want to release, add in the OnClose event handler: Action := caFree;

Posted by Carol at January 10, 2017 - 9:32 PM

Breakpoint tracking, where the step execution, tracking.

Posted by Anna at January 14, 2017 - 10:18 PM