Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Debugging: 0xC0000005 Access Violation

Status
Not open for further replies.

Warrioruw

Programmer
Jan 30, 2004
24
0
0
CA
Hi all,

I experienced an error message when I tried to run the program in debug mode, here it is:

"First-chance exception in Sapphire_DGB V2.exe: 0x0000005: Access Violation."

If you have any suggestion on how to deal with this kind of problem, please reply. Appreciated.




 
Hard to say, one way to get that is to operate on non-existant instances.
Like:
Code:
  class SomeClass
  {
    ...
    void someMethod() { ... }
  };

  ...
  {
    SomeClass* p = 0;
    p->someMethod();
  }

When you run the code in debug, do you get a call stack to inspect?


/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
It seems like you're using a not initialized variable or pointer

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top