Access violation on close of application
Hello,
I am developing using RBuilder 10.08 in Delphi 7 on a WinXP machine.
Ever since (it appears) we installed TeeChart and started using graphs
on some of our reports, we have been getting an AV error on the close of
the application. When I push F7 in Delphi to trace it, I always end up
on this procedure in ppUtils:
{------------------------------------------------------------------------------}
{ TppResourceManager.LoadStr }
function TppResourceManager.LoadStr(aIdent: Longint): String;
begin
if FResModuleCount = 0 then
Result := SysUtils.LoadStr(aIdent)
else
begin
Result := LoadStrFromModule(aIdent);
if Result = '' then
Result := SysUtils.LoadStr(aIdent);
end;
end; {function, LoadStr}
{------------------------------------------------------------------------------}
The access violation is happening after the close of the main form when
the application is freeing objects. If I put a break point on the
OnClose of the main form, I always hit the break point ahead of the AV
error.
Any insights into how I can track this down?
TIA,
Chris
--
Community Resource Associates/Midnight Sun Computing
http://www.midnightsuncomputing.com
"When you change the way you look at things, the things you look at
change." -Max Planck
I am developing using RBuilder 10.08 in Delphi 7 on a WinXP machine.
Ever since (it appears) we installed TeeChart and started using graphs
on some of our reports, we have been getting an AV error on the close of
the application. When I push F7 in Delphi to trace it, I always end up
on this procedure in ppUtils:
{------------------------------------------------------------------------------}
{ TppResourceManager.LoadStr }
function TppResourceManager.LoadStr(aIdent: Longint): String;
begin
if FResModuleCount = 0 then
Result := SysUtils.LoadStr(aIdent)
else
begin
Result := LoadStrFromModule(aIdent);
if Result = '' then
Result := SysUtils.LoadStr(aIdent);
end;
end; {function, LoadStr}
{------------------------------------------------------------------------------}
The access violation is happening after the close of the main form when
the application is freeing objects. If I put a break point on the
OnClose of the main form, I always hit the break point ahead of the AV
error.
Any insights into how I can track this down?
TIA,
Chris
--
Community Resource Associates/Midnight Sun Computing
http://www.midnightsuncomputing.com
"When you change the way you look at things, the things you look at
change." -Max Planck
This discussion has been closed.
Comments
Are you able to recreate this with a simple example? If so, let me know the
exact steps I can take on my machine to recreate it or perhaps send a small
example in .zip format to support@digital-metaphors.com that I can take a
look at.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I will have to see what I can do. Any requirements for the example I
send? I sent a toy application with an install script last time I
reported a bug, and got my head bitten off by the support line.
Thanks,
Chris
The best thing to do is keep the examples you send as simple as possible.
Just a Delphi project with source and a res file is usually sufficient. Are
you able to recreate the error simply by creating a new project in Delphi
and placing a TeeChart on an empty report? Which version of TeeChart are
you using?
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
the AV.
Chris
I was able to build a toy application whose structure is similar to our
actual app. The AV error does not occur on every close, but it occurs
more than 50% of the time, which is about the frequency it is occurring
on our application (thus the reason it's driving me nuts and eluding
detection...).
Should I send the ZIP archive to the support email? I didn't know if
you want the newsgroup postings to have attachments.
Thanks,
Chris
Yes, please send the example in .zip format to support@digital-metaphors.com
and I'll take a look at it for you.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Chrhis