???????? ?????????? wrote:
> I don't know very much about all these details, but if what we are
> trying to do is invoke a callback whenever an exception is thrown (even
> if a custom assembly wrapper callback statically linked in the
> executable which calls the the mingwm10.dll functions, also statically
> linked in the executable) then this shouldn't be so difficult, right?
I don't think that's it. As I understand it, whenever gcc sets up a
try/catch block, it needs to store some context into a TLS variable.
Whenever the thread terminates, this memory needs to be freed. And the
only way to be called every time a thread terminates is inside the
DllMain function. So it would not be sufficient to staticly link these
functions, there has to be a DLL involved somewhere.
> Are there places where the MS-C-runtime-dlls invoke function pointers
> during exception handling?
I have no idea. But the way MS does exception handling is totally
different, and might not involve storing context into TLS at all, so
this issue may not even exist there.
Brian
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642_______________________________________________
MinGW-users mailing list
MinGW-users@...
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users