- A teammate watched on App launch after installation in Process Monitor (by Sysinternals) and saw before App starting WerFault (preparing crash report) it is doing many stuff like "OverrideLanguagesList".
- My teammate remembered that, in the app, we had code that was doing
ApplicationLanguages.PrimaryLanguageOverride = stuff
, and that when doing this app would be closed or restarted. - My teammate searched for where we played with PrimaryLanguageOverride and saw indeed, during first launch it was overriden by some code, then during 2nd launch it is not overriden any more
- By analyzing with my teamate we saw that crash was generated because of how we handled language change in or BindableStrings class, we changed the responsible code as follows
- Now app didn't crash anymore :)
So main points:
- You can use Process Monitor (by Sysinternals) to deeply analyze weird crashes in your Windows apps
- Maybe this crash is related to some irresponsible code being present in some part of the app, most commonly tied to the resources of your app (strings localization, images, icons, etc...)