Newsgroups: microsoft.public.dotnet.framework.compactframework
From: jonfroehlich <jonfroehl...@gmail.com>
Date: Fri, 26 Oct 2007 18:19:45 -0000
Local: Fri, Oct 26 2007 2:19 pm
Subject: SystemState StateChanged Subscription Must Occur on UI Thread?
The Microsoft.WindowsMobile.Status.SystemState class offers a great
way to track a number of interesting and useful device system states (e.g., incoming phone calls, battery strength, etc.). However, recently I observed that the SystemState.Changed += new ChangeEventHandler(OnSystemStateChanged) subscription must be made from the UI thread. Has anyone else run into this? I attempted to write a console app that uses many of these system state notifications; however, none of the events were actually occurring. Once I switched to a form-based application, everything worked great. Is this documented somehwere? If so, I couldn't find it. I am http://msdn2.microsoft.com/en-us/library/microsoft.windowsmobile.stat... You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: microsoft.public.dotnet.framework.compactframework
From: "<ctacke/>" <ctacke[at]opennetcf[dot]com>
Date: Fri, 26 Oct 2007 15:06:39 -0500
Local: Fri, Oct 26 2007 4:06 pm
Subject: Re: SystemState StateChanged Subscription Must Occur on UI Thread?
Most of those events come from windows messages being posted at a low level
(FileSystemWatcher works int he same way too). If you never call Application.Run, no message pump is ever created, so no windows messages are ever dispatched. I don't think I've ever seen it documented, but if you walk through the -- Chris Tacke, eMVP You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
Newsgroups: microsoft.public.dotnet.framework.compactframework
From: jonfroehlich <jonfroehl...@gmail.com>
Date: Sat, 27 Oct 2007 00:46:24 -0000
Local: Fri, Oct 26 2007 8:46 pm
Subject: Re: SystemState StateChanged Subscription Must Occur on UI Thread?
Thanks Chris,
As always you provide super valuable feedback to the community. I Jon On Oct 26, 1:06 pm, "<ctacke/>" <ctacke[at]opennetcf[dot]com> wrote: You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||
| Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy |
| ©2009 Google |