Solved

Error Message ?

Posted on 2000-04-03
3
166 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 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