|
From: Shanti R. <sha...@ea...> - 2004-09-27 20:04:31
|
Thanks for the suggestions. The problem turned out to be that argv[0] wasn't I was expecting, and my attempt to fopen(argv[0]) failed. Shanti > heapcheck may be useful too (may need to modify it a bit to compile > with mingw): > http://www.softlab.ece.ntua.gr/~ttsiod/HeapCheck.html > > Also there's DrMingw (from mingw-utils), for JIT debugging , great for > these situations. > > Also, make sure you use the latest stable mingw. > > Happy bug busting. :) > > > Greg Chicares wrote: > >> Shanti Rao wrote: >> >>> >>> When I run a console program from the console, I get a message saying >>> >>> This application has requested the Runtime to terminate it in an >>> unusual way. >>> Please contact the application's support team for more information. >>> >>> But it works fine when I run the program from gdb. Methinks the >>> console interface isn't being set up right. >> >> >> >> This set of symptoms arises frequently. Typically, the >> problem is an uninitialized variable. Such a variable has >> a random value when you run it normally, but the debugger >> may happen to zero-initialize it, making the program seem >> to work. >> >> Try to reduce the program to a tiny testcase that reliably >> reproduces the problem. Once you've eliminated everything >> that's not the problem, you'll probably see it. >> >> Alternatively, try using a 'malloc debugger' such as >> mpatrol. Or add lots of runtime assertions to check sanity >> at every step. Or try using a map file to find where the >> problem is, and backtrack from there. >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 >> Project Admins to receive an Apple iPod Mini FREE for your judgement on >> who ports your project to Linux PPC the best. Sponsored by IBM. >> Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php >> _______________________________________________ >> MinGW-users mailing list >> Min...@li... >> >> You may change your MinGW Account Options or unsubscribe at: >> https://lists.sourceforge.net/lists/listinfo/mingw-users >> > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 > Project Admins to receive an Apple iPod Mini FREE for your judgement on > who ports your project to Linux PPC the best. Sponsored by IBM. > Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |