Re: Runtime Error 216?
From: Mathias Rauen (borland_at_nospam-madshi.net)
Date: 11/17/03
- Next message: Constantine Yannakopoulos: "Re: Component properties"
- Previous message: Joanna Carter \(TeamB\): "Re: Runtime Error 216?"
- In reply to: Lauchlan M: "Re: Runtime Error 216?"
- Next in thread: Lauchlan M: "Re: Runtime Error 216?"
- Reply: Lauchlan M: "Re: Runtime Error 216?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 17 Nov 2003 11:48:15 +0100
> > Does the finalization exception occur when the database can't
> > be opened? Or does it occur, when everything seems to be in order?
> Only when the database can't be opened, I believe.
Would it make sense to replace the Application.Terminate statement
by an "ExitProcess(0)" call? This stops the application at once
without any further cleanup. Don't know whether that's good or bad
for you. It might be, that Application.Terminate makes problems the
way you call it.
> What happens is after tracing for quite a while I get to TControl.Destroy at
> the line
> inherited Destroy
> on line 3158 of Controls in the Delphi source, and it AVs there.
> Is there a way to work out what control it is unsuccessfully calling its
> inherited Destroy method of, or why there is a problem with this attempt to
> call the inherited destroy method?
You could count the number of controls where destroying works. Let's say
the program can destroy 10 controls successfully, then with the 11th
control the AV is fired. Okay, restart your program in the debugger. Let
the program destroy the 10 controls. Then before it can destroy the 11th
control (and raise that AV) ask "pointer(Self)" and "Self.ClassName" and
"Self.Name". This way you might be able to find out which control can't
be destroyed.
-- www.madshi.net quality low level Delphi components extended exception handling API hooking, DLL injection undocumented functionality
- Next message: Constantine Yannakopoulos: "Re: Component properties"
- Previous message: Joanna Carter \(TeamB\): "Re: Runtime Error 216?"
- In reply to: Lauchlan M: "Re: Runtime Error 216?"
- Next in thread: Lauchlan M: "Re: Runtime Error 216?"
- Reply: Lauchlan M: "Re: Runtime Error 216?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|