Click to See Complete Forum and Search --> : help needed urgently...
swamymns
January 19th, 2005, 12:45 AM
Dear code gurus,
I am facing the following problem n visual studio. net .
While executing my code, the visual studio is giving the following error messages.
" The instruction set at "0x00417c83" referrenced memory at 0x00000000.
The memory could not be read"
and
" Unhandled exception at 0x10215609(MSVCR71D.dll) in your application.
0x00000005:Access violation writing location 0x00000000"
please help me as soon as possible.
Thanx in advance,
Narayanaswamy M
Andreas Masur
January 19th, 2005, 03:24 AM
Well you are writing to an invalid memory location...in this case a null-pointer...
If this is the debug version, simply run the debugger....otherwise...
Surviving the Release version (http://www.codeproject.com/debug/survivereleasever.asp)
How To Determine the Location of a Crash (http://support.microsoft.com/kb/q196755)
Finding crash information using the MAP file (http://www.codeproject.com/debug/mapfile.asp)
MrViggy
January 19th, 2005, 11:24 AM
It looks like you're trying to use a null pointer.
Run the program in your debugger, and it should break at the point that the null pointer is being used. Debug from there. If the problem is in some other library, you'll have to go up the call stack until you get to your code.
Viggy
swamymns
January 20th, 2005, 07:23 AM
Dear MrViggy and other code gurus,
Thankx for your reply.
The code which is giving the null pointer problem, was working perfectly.
I have not even changed the code, but it's giving the memory problem
I am telling my problem again
================================
When executing my code, the visual studio is giving the following error messages.
" The instruction set at "0x00417c83" referrenced memory at 0x00000000.
The memory could not be read"( I think it's not allocating the memory properly)
and
" Unhandled exception at 0x10215609(MSVCR71D.dll) in your application.
0x00000005:Access violation writing location 0x00000000"
"
====================================
I reinstalled the Visual Studio.Net once. at that time it worked properly, but when I exevuted second time it again gave the same memory problem.
you said this is because of NULL pointer, is that Operating system is allocating the memory location? or by anything else.
please tell how do debug this problem,(for your information, very recently I am working in Visual Studio.Net so, kindly explain in detail)
Thanks in advance
With Best Regards,
Narayanaswamy M
Andreas Masur
January 20th, 2005, 09:39 AM
[ Merged threads ]
MrViggy
January 20th, 2005, 11:43 AM
Thanks, Andreas, I was wondering why your post appeared above mine! ;)
swamymns, did you read the links that Andreas provided? They provided information on how to debug applications in release mode. On the other hand, if you can duplicate the problem with a debug version of your application, then all you need to do is run it through the debugger, and it should point you right at the line of code that is causing the immediate crash. You might need to backtrack from there, but those links should get you close.
Viggy
codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved.