View Full Version : Runtime Packages and debug info
johnfaris
25-Nov-2005, 08:27 AM
I'm facing a particularly difficult Access Violation at the moment and the problem is that my application is compiled using runtime packages. This seems to restrict the information available in the log file with regard to classes and line numbers. I get a call stack like the one attached to this post that simply shows that somewhere within a destroy event somewhere it is going wrong. But without line numbers or even a classname I have no idea where it is happening. Is there no way to get better debug info when using runtime packages like this?
Thanks
admin
25-Nov-2005, 09:10 AM
Hi,
johnfaris wrote:
> I'm facing a particularly difficult Access Violation at the moment and
> the problem is that my application is compiled using runtime packages.
> This seems to restrict the information available in the log file with
> regard to classes and line numbers. I get a call stack like the one
> attached to this post that simply shows that somewhere within a destroy
> event somewhere it is going wrong. But without line numbers or even a
> classname I have no idea where it is happening. Is there no way to get
> better debug info when using runtime packages like this?
>
> Thanks
The exception is raised at the System._IntfClear function.
//----------------------------------------------------------------------
function _IntfClear(var Dest: IInterface): Pointer;
var
P: Pointer;
begin
Result := @Dest;
if Dest <> nil then
begin
P := Pointer(Dest);
Pointer(Dest) := nil;
IInterface(P)._Release; // <-- THIS IS THE EXCEPTION LINE!!!
end;
end;
//----------------------------------------------------------------------
As you can see the exception is raised when Delphi try to release the
"Dest" Interface, so I think the problem should be a wrongly IInterface
assignment.
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.
johnfaris
25-Nov-2005, 09:22 AM
Thanks for the pointer, but my question was really about why there are no units/line numbers when using runtime packages in this case.
admin
25-Nov-2005, 09:33 AM
Hi,
johnfaris wrote:
> Thanks for the pointer, but my question was really about why there are
> no units/line numbers when using runtime packages in this case.
Because the .BPL Borland packages (as RTL60.BPL) aren't compiled with
EurekaLog! :)
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.
johnfaris
25-Nov-2005, 09:37 AM
Of course! Thanks for pointing out the obvious! :o
admin
25-Nov-2005, 02:00 PM
Hi,
johnfaris wrote:
> Of course! Thanks for pointing out the obvious! :o
Don't worry be happy! ;)
--
Best regards...
Fabio Dell'Aria.
----------------
http://www.eurekalog.com
Catch every BUG showing line n.
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.