c# - How can I determine why my mobile .net application is freezing after the device awakes from sleep mode? -


i have .net compact mobile application (device os windows mobile 6.0 using sdk 2.0) running on motorola device.

if application running , leave device alone 20 minutes in sleep mode. sometimes, after wake tapping power button, device wakes fine, application frozen, unresponsive. can still see last form page on, can't it.

the rest of device responsive, though. trying to close application task manager fails. application remains "active" in frozen state.

is there way can diagnose this? like, there special way can log problem or find out via device happened?

there's no simple, direct way, no. device comes out of suspend , resumes processing code left off. if app freezing, it's waiting on handle that's been invalidated suspend/resume cycle, way find try twofold approach:

  1. instrument code logging when freezes can narrow down "where" in code it's happening.
  2. at same time, remove functionality (services, threads, whatever code base allows) further reduce tested function set. if remove feature , problem goes away, know look. if doesn't go away, you've eliminated whole branch of code needed further inspection.

Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -