Solved

Error Message ?

Posted on 2000-04-03
3
162 Views
Last Modified: 2013-11-20
Why do I get following error message whenever I exit my Application ?

Error Message is :-
   First-chance exception in MyApp.exe    (KERNEL32.DLL): 0xC0000005: Access Violation.

Any Suggestions ?
0
Comment
Question by:nilesh030197
  • 2
3 Comments
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2679666
need much more info before one can comment.

What happens when you run in debug mode .. where does it say the error is?
0
 

Accepted Solution

by:
sachingokakkar earned 10 total points
ID: 2679695
hi nilesh,

check wheather u r tking care of releasing all the gdi objects
that u r using after restoring them properly.
i think this is reason why u r getting error message and
it enters in dll.

bye.

sachin
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2681952
Access violation is usually when a pointer is left dangling (ie the object it pointed to is deleted, but the pointer still points to it).  or when a pointer has an invalid value.  or when you try to free some storage twice.

Running under debug should help tell you where the symtpom is occurring .. then you just have to see what is causing it and why this situation is happening.  Quite often the actual cause of the error is a long way in time and code from where the symtpoms are detected.

Send us some more info when you've gotten some debug output.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now