Hi,

Take following program:

---
#include <stdlib.h>

int main(int, char**)
{
    abort();
    return 0;
}
---

Compiling it with "g++ -o test.exe test.cpp" and running it will print (both in 
a pop up and in a dialog):

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

However, if you link with "-Wl,-subsystem,windows" , after showing the above in 
a dialog the application will crash (extra dialog "test.exe has stopped 
working"), and the windows debugger log contains

[1464] Invalid parameter passed to C runtime function.


So it seems that somehow things go wrong in the crash handler. Any idea where 
and whether it has been reported before? Especially the "Invalid parameter' 
warning is somewhat misleading, and sounds like a bug ... 



Regards

Kai

PS: Googling for it turns out a number of similar reports, e.g. 
http://stackoverflow.com/questions/13893122/q-assert-has-different-behavior-when-my-project-is-built-in-visual-studio-vs-qt
 , 

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to