Quick question. I have a program that will run perfectly fine in the Debug version (Using MS VS 6) but when I set it to Release and build it, then set the command line arguments (or run it from the comman line) it blows up. Any ideas why this would happen??

Recommended Answers

All 4 Replies

Does it rely on a file that it looks for in the same directory as the application? If so you need to copy that file from the debug to the release folder.

No, its a simple standalone EXE

What is it doing when it blows up? Can you put some couts in it to "debug" it in release mode?

Most likely, you did not initialize your variables. Also you probably might be
writing into memory that you are not supposed to. Because, in debug, the
compiler pads the memory more than in release.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.