pending exception assertion makeover

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6949 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2005-02-15 21:59:46 +00:00
commit ea7207963c

View file

@ -139,8 +139,8 @@ DllExport void SWIGSTDCALL SWIGRegisterExceptionCallbacks_$module(SWIG_CSharpExc
}
public static void Set(Exception e) {
if (pendingException != null)
throw new Exception("Throwing exceptions from unmanaged code has gone broken down");
if (pendingException != null) // Checks for missing pending exception code
throw new Exception("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e); // unmanaged code destructors may not be called
pendingException = e;
lock(typeof($modulePINVOKE)) {
numExceptionsPending++;