G
Guest
Hi there,
Having an issue with RunAppAtTime
I'm successfully running a thead every 1 minute, however when the user
clicks a button the thread should not run again, however it just isn't
working. Here's my code that isn't doing what it should be.
if (updateReminder != null)
{
EventWaitHandle notifyEvent = new OpenNETCF.Threading.EventWaitHandle(
false,
OpenNETCF.Threading.EventResetMode.AutoReset,
"SAMS_REMINDER_EVENT" );
// Notify the thread to stop.
notifyEvent.Set();
notifyEvent.Close();
}
Anything blindingly obvious wrong there??
I have exactly the same sort of thing working, and the same routine runs
with the app exists, and that works fine.
Many Thanks
Rob
Having an issue with RunAppAtTime
I'm successfully running a thead every 1 minute, however when the user
clicks a button the thread should not run again, however it just isn't
working. Here's my code that isn't doing what it should be.
if (updateReminder != null)
{
EventWaitHandle notifyEvent = new OpenNETCF.Threading.EventWaitHandle(
false,
OpenNETCF.Threading.EventResetMode.AutoReset,
"SAMS_REMINDER_EVENT" );
// Notify the thread to stop.
notifyEvent.Set();
notifyEvent.Close();
}
Anything blindingly obvious wrong there??
I have exactly the same sort of thing working, and the same routine runs
with the app exists, and that works fine.
Many Thanks
Rob