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 

HELP! The app crashes without doing anything!

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Brian
Guest





PostPosted: Tue May 23, 2006 3:14 pm    Post subject: HELP! The app crashes without doing anything! Reply with quote



I have an application composed of multiple units and libraries. The problem I'm having is that I keep getting an
EAccessViolation when I exit the application. I'm looking
for help in trying to debug the problem. Here is what
I have done so far:

I've taken out all the code in the various units constructor and
OnShow/OnActivate methods. I've stepped through (via FCool to
watch each form being created to insure that nothing is
being instantiated that shouldn't be. When I close the
application, I again step through each line in the
"Application" source file.

Everything processes fine, but after the last } (which comes
after the "return 0;" in the source file and the forms are
being destroyed, I get the EAccessViolation crash.

So, any ideas out there on how to further debug this issue?
Back to top
Danzer
Guest





PostPosted: Tue May 23, 2006 3:14 pm    Post subject: Re: HELP! The app crashes without doing anything! Reply with quote



Brian wrote:
Quote:
I have an application composed of multiple units and libraries. The problem I'm having is that I keep getting an
EAccessViolation when I exit the application. I'm looking
for help in trying to debug the problem. Here is what
I have done so far:

I've taken out all the code in the various units constructor and
OnShow/OnActivate methods. I've stepped through (via FCool to
watch each form being created to insure that nothing is
being instantiated that shouldn't be. When I close the
application, I again step through each line in the
"Application" source file.

Everything processes fine, but after the last } (which comes
after the "return 0;" in the source file and the forms are
being destroyed, I get the EAccessViolation crash.

So, any ideas out there on how to further debug this issue?

Place a breakpoint on the "return 0;" and step through the code using
View -> Debug Windows -> CPU. This might help you determine what part
of your code is causing the error.

Danzer
Back to top
Brian
Guest





PostPosted: Tue May 23, 2006 4:14 pm    Post subject: Re: HELP! The app crashes without doing anything! Reply with quote



Danzer <.> wrote:
Quote:
Place a breakpoint on the "return 0;" and step through the code >using View -> Debug Windows -> CPU. This might help you
determine what part of your code is causing the error.


Here is what I found:

While stepping through the CPU window, I saw all the CodeGuard
code being executed. So, not wanting to step through all of that,
I turned of CodeGuard and recompiled. This action has solved
the problem.

Does anyone know why Code Guard would have caused this problem
in the first place?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) 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.