Solved

Error Message ?

Posted on 2000-04-03
3
165 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

Suggested Solutions

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.

730 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