From eb7b7dfd20139e37484d14077875fafda98a7206 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Feb 2005 21:59:46 +0000 Subject: [PATCH] pending exception assertion makeover git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6949 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/csharp/csharphead.swg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SWIG/Lib/csharp/csharphead.swg b/SWIG/Lib/csharp/csharphead.swg index 8302b4959..bf98d9ae1 100644 --- a/SWIG/Lib/csharp/csharphead.swg +++ b/SWIG/Lib/csharp/csharphead.swg @@ -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++;