User forums > General (but related to Code::Blocks)
GCC 4.2.1 binary release for mingw is available from MINGW
ingenuus:
--- Quote from: RJP Computing on September 19, 2007, 03:17:01 am ---It is working great for me. Actually it fixes a bug in the 3.4.5 sjlj model. It now can properly catch an exception passing the Compiled as C throwing to my C++ main program barrier (I don't know if there is a technical term for that :) ). The exceptions seem to be working as good as Visual C++. I have compiled and use wxWidgets 2.8.4 with it as well.
--- End quote ---
Thanks for the good report! Are you referring to throwing an exception from within (or below) WndProc and catching it in WinMain? My understanding is that since WndProc is a callback, there are OS frames between WndProc and WinMain which dw2 cannot unwind, but perhaps this has been fixed.
RJP Computing:
--- Quote from: ingenuus on September 19, 2007, 06:18:11 am ---Thanks for the good report! Are you referring to throwing an exception from within (or below) WndProc and catching it in WinMain? My understanding is that since WndProc is a callback, there are OS frames between WndProc and WinMain which dw2 cannot unwind, but perhaps this has been fixed.
--- End quote ---
Is there a specific test I can run to help you out? I have released a simple installer that can live side by side with MinGW v3.x.x. You can easily uninstall it after you are done. It doesn't set any environment variables or things like that. If you would like you can find it here (MinGW Gcc v4.2.1 Unofficial Installer at the bottom of the downloads page).
Well I am referring to C++ and Lua. In Lua when you have an error, the error needs to propagate from _longjmp/_setjmp. This completely did not work in 3.4.5. I don't know the technical terms for crossing the 'C' code to 'C++' code barrier, but that is what seemed to be fixed.
ingenuus:
--- Quote from: RJP Computing on September 19, 2007, 02:03:32 pm ---Is there a specific test I can run to help you out?
--- End quote ---
That's very kind of you to offer, but after constructing a simple test, it wasn't too difficult to build it myself. I attached the source to this post in case you're curious.
Left click in the client area to throw an exception from WndProc that should be caught in WinMain. Right click just tests that exceptions work.
Unfortunately, based upon that test, dw2 does not function properly: an exception cannot propagate through foreign (OS) frames -- instead it terminates. It appears to work fine with 4.2.1-sjlj.
But as long as one is careful to catch exceptions within callbacks (before any non-dw2 frames), I guess any problems can be avoided.
--- Quote from: RJP Computing on September 19, 2007, 02:03:32 pm ---Well I am referring to C++ and Lua. In Lua when you have an error, the error needs to propagate from _longjmp/_setjmp. This completely did not work in 3.4.5. I don't know the technical terms for crossing the 'C' code to 'C++' code barrier, but that is what seemed to be fixed.
--- End quote ---
That's interesting. I imagine that would also be fixed in 4.2.1-sjlj. Did you build both your app and Lua with gcc-4.2.1-dw2?
btw, wxPack looks to be very useful. Thanks! :)
Kevin
[attachment deleted by admin]
RJP Computing:
--- Quote from: ingenuus on September 20, 2007, 03:18:22 am ---That's very kind of you to offer, but after constructing a simple test, it wasn't too difficult to build it myself. I attached the source to this post in case you're curious.
Left click in the client area to throw an exception from WndProc that should be caught in WinMain. Right click just tests that exceptions work.
Unfortunately, based upon that test, dw2 does not function properly: an exception cannot propagate through foreign (OS) frames -- instead it terminates. It appears to work fine with 4.2.1-sjlj.
--- End quote ---
I will try. I really hope this is fixed.
--- Quote from: ingenuus on September 20, 2007, 03:18:22 am ---...
That's interesting. I imagine that would also be fixed in 4.2.1-sjlj. Did you build both your app and Lua with gcc-4.2.1-dw2?
--- End quote ---
Yes I build both with the same compiler.
--- Quote from: ingenuus on September 20, 2007, 03:18:22 am ---btw, wxPack looks to be very useful. Thanks! :)
--- End quote ---
Thanks.
Blue-Tiger:
Does anyone know how i can enable OpenMP-Support in the official MinGW release?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version