If I dont have the console open all I can see is a message saying a breakpoint has been reached. So then I have no idea what the problem actually is.
One example is the message for a variable being used without being defined.
Add conditional code to your program to (conditionally) make a call to AllocConsole().
When debugging, enable the condition that allocates the console window.
The message is in another window that is often behind the VS window.
For more complete information about compiler optimizations, see our Optimization Notice.