Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Application crashes only on System Reboot/Shutdown

$
0
0

Hi,

i have an application in C#/WPF that loads it's modules in separate AppDomains using Marshaling. Each module has it's own window, but it inherits a WindowBase with an application wide unique theme. Now i've put the usual Close/Minimize/Maximize buttons in this theme and it's wired up correctly so that all classes call their clean up methods. In a normal usage, clicking on the "X" in the window will properly close the window and :

 - If it's a module window, it will clean all it's unmanaged resources

 - If it's the main  window, it will call close on all modules, then clean up it's own unmanaged resources

It's all working well without a hitch, but then when i Rebooted the system, the application crashed. It does so every time the system is shutdown or rebooted.

Is there a way to debug this? Or are there some possible reasons as to why the crash is happening?



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>