Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WPF UI crashes only when debugging

Tags:

c#

.net

wpf

xaml

prism

If I go to Debug -> Start Without Debugging my WPF app runs fine, but if I go to Debug -> Start Debugging then the UI will disappear and this will be in the Output window under Debug:

The program '[6744] UI.exe: Managed (v4.0.30319)' has exited with code -1073740791 (0xc0000409)

No exceptions are thrown or anything. Why might this happen? I am using the Prism library so I'm not sure if it is related to that.

I am able to debug without crashes if I attach the debugger to the process manually.

like image 699
user404068 Avatar asked Nov 14 '22 00:11

user404068


1 Answers

In my case, I have the same problem. When I changed the "Assembly name" to, in the max 42 characters, my app was build...

I thought that is crazy, but work.

like image 181
anmaia Avatar answered Dec 19 '22 19:12

anmaia