コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
 private static void exceptionFound(IntPtr fullMessage)
 {
     exception = new OgreException(Marshal.PtrToStringAnsi(fullMessage));
 }