Jump to content
  • Advertisement
Sign in to follow this  
EGD Eric

Access Violation Exception occurred at 0x00000000 trying to read from 0x00000000

This topic is 4241 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone else ever gotten this kind of error message? How the heck am I supposed to track this? Sorry, I can't really provide much code, this project is so huge. BOOL bSuccess = WriteFileEx (hFile, // HANDLE hFile pBuffer, // LPCVOID lpBuffer uSize, // DWORD nNumberOfBytesToWrite pOverlapped, // LPOVERLAPPED lpOverlapped 0); // LPOVERLAPPED_COMPLETION_ROUTINE lpRoutine All I can say is that I write to a file, later I call close_file, then later (say a few seconds) the program catches some error. The call stack is no help in letting me know exactly where the crash happens.

Share this post


Link to post
Share on other sites
Advertisement
"Access Violation Exception occured at 0x00000000..."

This means the program tried to run a function at address 0. In other words, tried to use a NULL function pointer. I see no mention of NULL being a valid value for lpRoutine in The Documentation. If the call stack shows no recognizeable code of your own in the chain, that's a good indicator that a bad callback was passed to the system, or that you've otherwise passed off invalid values to the system -- crashing it indirectly there, rather than cleanly erroring in your own code.

Sidenote: Lowercase for the tags.

Share this post


Link to post
Share on other sites
Thanks Mauling Monkey, you're a life-saver.
Yeah, writefile's the way to go.
Moved to For Beginners.
lol. mmm... gotta love that humble pie.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!