Beispiel #1
0
		/// <summary>
		/// Releases unmanaged and - optionally - managed resources
		/// </summary>
		/// <param name="disposing"><c>true</c> to release both managed and unmanaged resources; <c>false</c> to release only unmanaged resources.</param>
		private void Dispose(bool disposing)
		{
			if (raiseException == null)
				return;

			raiseException = null;
			PlatformInvoke.RegisterExceptionHandler(null);
		}
Beispiel #2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="ExceptionRaiser"/> class.
		/// </summary>
		public ExceptionRaiser()
		{
			raiseException = RaiseException;
			PlatformInvoke.RegisterExceptionHandler(raiseException);
		}
Beispiel #3
0
		public static extern void RegisterExceptionHandler(RaiseExceptionHandler exceptionHandler);