views:

142

answers:

2

I am using the debug_new tool that come in the pack of tools NVWA made by Wu Yongwei. http://wyw.dcweb.cn/

I turned it off once to track a heisenbug, that now is fixed. But as I turned it on, my program throws a bizarre error:

It loads, but before accepting any input it quits and writes on the console:

"This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information

Process returned 3 (0x3) execution time : 0.828s"

How I debug that? I have no idea what on the code is throwing the error (since when using a debugger it still quits the same way, and the debugger reports no errors with exit of the debugger being 0)

EDIT for those that don't read tags: I am using C++, compiling with MingW on Windows.

A: 

KB884538 -- try installing the hotfix.

J.J.
How I figure if the fault is mine or MS?
speeder
Ok, I am trying, but Microsoft does not help, the hotfix is only avaible upon request, but the link is broken, upon researching I found that people phoned Microsoft, but I cannot phone Microsoft because I am in other country.
speeder
+1  A: 

If you're running under the Visual Studio debugger, go to the Debug/Exceptions menu and check the box for the "C++ Exceptions" item - this will cause the debugger to break whenever an exception is thrown.

You might need to fiddle with the various sub-options (std:exception, void, etc) for the exception types if your code throws a lot of exceptions that it catches and you're not interested in breaking into the debugger when they get thrown.

Michael Burr
No, I am not using VC++, and GDB is set to catch all exceptions, but is not getting this particular one for whatever strange reason.
speeder
@speeder: You might want to add information to your question about the exact toolset and platform you're using since the answer seems like it might be closely tied to the tools.
Michael Burr
It is wrote on the tags... Oo
speeder
@speeder: oops - sometimes I forget to check the tags... but even with that information, details such as the versions/debugger/'I don't know what else' might be relevant.
Michael Burr
Windows XP SP3Lastest stable MingWLastest library of the guy (the one that his page give download link)
speeder
@speeder: since you seem to be running into a fair number of roadblocks with this problem, you might want to try downloading the VS2010 RC or VC++2008 Express and building/debugging with that to see if it can help you get somewhere.
Michael Burr