Sign in to follow this  

it doesn't crash in debug mode

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

This program i'm working on is playing with me. It was crashing when I ran it normaly, so I went into debug mode (visual studio .net 2003) to figure out where it's crashing. But, while it's running in debug mode it never messes up (wtf). Is there some generic reason for why this would happen, or is it just another normal random bug?

Share this post


Link to post
Share on other sites
This has happened to me before, but I can't fully remember what the cause of it was. I think it might have been to do with deleting allocated memory twice when closing the program.

Edit: I'm assuming that by normaly you mean with a debug build not a release build.

Share this post


Link to post
Share on other sites
Whats the error you get when you run it in release mode? If its an access violation you're probably just writing/reading(it will tell you something like: Access Violation: unable to (read or write) at (memory address)) past the end of an array or trying to use a pointer to nothing.

Share this post


Link to post
Share on other sites
By running it "normally" do you mean release mode? Or do you mean going to the folder containing the .exe and running it? If the latter, you may be using some files (graphics/sound/text/whatever) in your exe that it can't find, make sure the files are in the appropiate places. If it's the former, I would guess that you have an uinitialized variable somewhere, since debug mode seems to like to initialize variables for you.

Share this post


Link to post
Share on other sites

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