BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: Finding what caused AV

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Ignacio Vazquez
Guest





PostPosted: Thu Aug 07, 2003 1:44 pm    Post subject: Re: Finding what caused AV Reply with quote



"Mark Payton" <mark.payton (AT) derbyshire (DOT) gov.uk> wrote in message
3f324171$1 (AT) newsgroups (DOT) borland.com...
Quote:
Is there anyway I can found out what called the ClientToScreen and trace
it back through to my component.

Use a tool like madExcept.

http://www.madshi.net/

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.



Back to top
Ignacio Vazquez
Guest





PostPosted: Thu Aug 07, 2003 4:34 pm    Post subject: Re: Finding what caused AV Reply with quote



"Mark Payton" <mark.payton (AT) derbyshire (DOT) gov.uk> wrote in message
3f327e29$1 (AT) newsgroups (DOT) borland.com...
Quote:
Thanks, would this work in the runtime environment, the error doesnt
happen in the IDE

Yes.

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.




Back to top
Mark Payton
Guest





PostPosted: Thu Aug 07, 2003 4:37 pm    Post subject: Re: Finding what caused AV Reply with quote



Thanks, would this work in the runtime environment, the error doesnt happen
in the IDE



Mark

"Ignacio Vazquez" <ivazquezATorioncommunications.com> wrote

Quote:
"Mark Payton" <mark.payton (AT) derbyshire (DOT) gov.uk> wrote in message
3f324171$1 (AT) newsgroups (DOT) borland.com...
Is there anyway I can found out what called the ClientToScreen and trace
it back through to my component.

Use a tool like madExcept.

http://www.madshi.net/

Cheers,
Ignacio

--
No, don't send me e-mail directly. No, just don't.






Back to top
Richard Atkinson
Guest





PostPosted: Fri Aug 08, 2003 12:10 am    Post subject: Re: Finding what caused AV Reply with quote


Quote:
Use a tool like madExcept.

http://www.madshi.net/

I hadn't seen madExcept. It looks very useful.

Another option is the Post Mortem Review that is part of Helmuth Adolph's
wonderful ProDelphi.

ProDelphi might not be as flashy as some other profilers but I have been
very impressed with Helmuth's fast and helpful response to support requests
and I trust his program.

FWIW
Richard Atkinson



Back to top
Eugene Mayevski
Guest





PostPosted: Fri Aug 08, 2003 5:14 pm    Post subject: Re: Finding what caused AV Reply with quote

Mark Payton wrote:

Quote:
I get and intermittent AV in Controls.pas ClientToScreen
Is there anyway I can found out what called the ClientToScreen and trace it
back through to my component.

Obviously, you are calling (directly or via VCL) the method of the
control that has been destroyed already.

First thing to do is to replace all calls to free with FreeAndNil. What
this does -- whenever the disposed object is used, you will get an AV at
address 0. Then you will know that the cause of the problem is access
to freed object. Why this is necessary -- if you don't set object
references to nil after destroying them, some of the calls to this
object will succeed (because the memory is still valid), but later you
will get an AV and that AV will tell you nothing meaningful.

--
Eugene Mayevski
Flexible cross-platform information exchange framework
http://www.msgconnect.com/



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.