Error when exiting app with -DNDEBUG but OK with -g

Steven Boswell II ulatekh at yahoo.com
Mon May 20 20:05:37 UTC 2013


In my experience, if you run your program with gdb, and type "break abort" before you type "run", gdb will catch the problem.



________________________________
 From: Erik van Pienbroek <erik at vanpienbroek.nl>
To: Fedora MinGW (Windows cross-compiler) project <mingw at lists.fedoraproject.org> 
Sent: Monday, May 20, 2013 11:37 AM
Subject: Re: Error when exiting app with -DNDEBUG but OK with -g
 

Richard Shaw schreef op ma 20-05-2013 om 13:32 [-0500]:

> 
> 
> The last problem I'm having and have not yet figured out is why I'm
> getting an error when I exit the program that only occurs on release
> builds (-DNDEBUG) but does not occur with debug builds (-g).
> 
> 
> The error is a popup window saying "microsoft visual c++ this
> application has requested the runtime to terminate it in an unusual
> way"

With the little information you've provided it's hard to guess what
might be going wrong. However, I've seen this popup before. It gets
triggered when the abort() function gets called. Perhaps this is also
the case with your package? You could try to debug this on a native
Windows environment with WinDBG (gdb isn't able to catch these kind of
situations properly yet).

Regards,

Erik van Pienbroek



_______________________________________________
mingw mailing list
mingw at lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/mingw
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/mingw/attachments/20130520/e53c0e35/attachment.html>


More information about the mingw mailing list