Possible Duplicate:
Avoiding first chance exception messages when the exception is safely handled
At the moment I am working on a WPF program which has to interact with DLLs programmed with C++. However, during some debugging I saw in the Debug-Output window the message *“First-chance exception at 0x7637c41f in ***.exe: 0x0000071A: The remote procedure call was cancelled.”* just after I closed the program.
Because I was unable to eliminate this exception, I started fresh with a brand new WPF project and enabled “unmanaged code debugging” and there it was the same exception without any other changes of the settings and even without any changes of the generated source code.
Now I wonder if other people experienced the same issue and how I can resolve it.
[EDIT]
To reproduce this issue I only need to
- create a new WPF Application
- in WpfApplication1 Properties → Debug → Enable unmanaged code debugging
- Start Debugging
- Close MainWindow
- Look at Debug-Output (Debug → Windows → Output)