Solved

Error Message ?

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

708 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

19 Experts available now in Live!

Get 1:1 Help Now