question

LoganStach-3020 avatar image
0 Votes"
LoganStach-3020 asked ·

WACK says my application is hanging/crashing- is this because I have my app open a content dialog the first time the user opens the program?

I'm finishing up a UWP app and getting ready to publish it. When I run the WACK, it says that the app experiences a "crash or hang" and stops responding. I believe this is because the app opens a content dialog the first time the user runs it- is this the case? Obviously the program isn't actually crashing when I debug it.

windows-uwp
· 4
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

If you comment the code snippet about ContentDialog and run the WACK again, will the same issue occur? If the WACK test still reporting this issue, could you please share the detailed error message here? In addition, you can refer to Windows App Certification Kit tests document to see the tests's details, and suggested actions depends on the detailed error message.

0 Votes 0 · ·

I suggest you test it yourself (run the .msix) and see if you can repro this in release.

I have a feeling you may be opening the content dialog before the app is fully loaded and in foreground. That may be the case of your crash.

Try loading it in your MainPage's .Loaded event

0 Votes 0 · ·

Turns out the crash was caused by something else, I just didn't catch in when testing it myself until running the .msix file like you said. Thanks

1 Vote 1 · ·

Glad you solved your issue, you can post an answer and mark it, to convenient people who visit this thread later.

0 Votes 0 · ·

0 Answers