/// <summary> /// This method will fire an exception if one is stored. If you are /// calling a method that expects an exception to be loaded you must /// call this function. /// </summary> public static void fireAnyException() { try { if (exception != null) { throw exception; } } finally { exception = null; } }
private static void exceptionFound(IntPtr fullMessage) { exception = new OgreException(Marshal.PtrToStringAnsi(fullMessage)); }