 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Brian Guest
|
Posted: Tue May 23, 2006 3:14 pm Post subject: HELP! The app crashes without doing anything! |
|
|
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 F 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
|
Posted: Tue May 23, 2006 3:14 pm Post subject: Re: HELP! The app crashes without doing anything! |
|
|
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 F 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
|
Posted: Tue May 23, 2006 4:14 pm Post subject: Re: HELP! The app crashes without doing anything! |
|
|
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 |
|
 |
|
|
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
|
|