Sign in to follow this  

MSVC++ 8 (2005) Debugging Options

This topic is 4305 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

If I say, for example, this in my program:
char* string=new char[1];
string[100000000]='d';
And press F5 it will say something like
unhandled exception at 0x00407b2f in SAUSERVER.exe: 0xC0000005: Access violation writing location 0x062d2610.
And when I press break, it says "There is no source code available for the current location." In MSVC++ 6 when I would press break it would go to the line where the memory problem was. Is there a way to make it do this in MSVC++ 2005?

Share this post


Link to post
Share on other sites
In the Project Properties->Configuration Properties->Linker->Debugging Screen, the "Generate Debug Info" has a value of "Yes(/DEBUG)", and in the Configuration Manager, it says the configuration is "Debug".
Also, before I changed the Generate Debug Info to Yes a while back, it would alert me "Debugging information for 'SAUSERVER.exe' cannot be found or does not match. Binary was not built with debugging information." (EDIT:: that is, if I pressed F5 to debug instead of Ctrl-F5 to launch.) It no longer says that.
I think that was what you meant?


EDIT:: Just to clear up any confusion, the answer is yes, I did, but it still doesn't show me the line.

[Edited by - CrazyCamel on March 2, 2006 10:36:23 PM]

Share this post


Link to post
Share on other sites
It also cannot find the breakpoint line when I get this debug error:
Windows has triggered a breakpoint in SAUSERVER.exe.

This may be due to a corruption of the heap, and indicates a bug in SAUSERVER.exe or any of the DLLs it has loaded.

The output window may have more diagnostic information


[Edited by - CrazyCamel on March 6, 2006 8:57:02 PM]

Share this post


Link to post
Share on other sites

This topic is 4305 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this