开发者

App crashing and not hitting Application_UnhandledException or RootFrame_NavigationFailed

We can perfectly reproduce the error, so long as the debugg开发者_如何学运维er is NOT attached.

Any suggestions on trouble shooting?


ok...

i'll have to follow up later and build a sample solution to repro this

In a view model, we were exectuting navigation, and then on the next line calling a method that called other methods that included callbacks.

We swithed it so the page we navigated to then called that method.

Before the fix...

The app never crashed when debugging, never throws an error.

With no debugger attached, it failed inconsistentely with the emulator. Interestingly enough, it did NOT ever fail with a Samsung Focus, but did fail 100% of the time on a Samsung Omnia.

By fail I mean it crashes, with no exception available to do anything with...


I just ran into a problem with a singleton. I have a property named Instance and a private variable instance.

lock(sync) { if (Instance == null) {instance = new MySingleton(); } }

Notice I'm checking for the property name Instance for null, not the private variable instance. This crashed mysteriously, in fact took Visual Studio Express down. I just started cutting out code until I found the mistake.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜