> Managed code on the MS CLR doesn't use SEH internally Why do you think so? I'm curious.
The following code intercepts managed exception with a thread-level SEH handler (set up via generated native code), prints some messages and terminates execution. There are two source files: http://mono.eurosoft.od.ua/doc/seh.cs http://mono.eurosoft.od.ua/doc/calli.il Compiled like this: ilasm /dll /output=calli.dll calli.il csc /nowarn:162 /o+ /unsafe /r:calli.dll /out:seh.exe seh.cs Sergey ----- Original Message ----- From: "Piers Haken" <[EMAIL PROTECTED]> To: "Paolo Molaro" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, March 25, 2003 6:05 PM Subject: RE: [Mono-list] Exceptions and error codes. Managed code on the MS CLR doesn't use SEH internally, but the interop services rethrow System.Runtime.InteropServices.SEHException. The Win32 C++ ABI uses SEH. Similarly, COM error codes are rethrown as System.Runtime.InteropServices.COMException. Piers. _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
