Solved

Error Message ?

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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

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 …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

832 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