Problem using Task Scheduler API
From: Greg Kowalski (gkowalski_at_veriteq.com)
Date: 05/20/04
- Next message: Jeff Partch: "Re: Painting in NC area using CClientDC or CWindowDC?"
- Previous message: KS: "Re: TCHAR* and PostMessage in a thread .. memory leak question"
- Next in thread: Tim: "Re: Problem using Task Scheduler API"
- Reply: Tim: "Re: Problem using Task Scheduler API"
- Reply: Tim: "Re: Problem using Task Scheduler API"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 20 May 2004 18:43:11 GMT
Hello,
I wrote an MFC wrapper class for the Task Scheduler COM API and I'm using it
in my application to add/remove/modify scheduled tasks. This is my problem:
on some computers (in particular a Toshiba laptop running Windows XP) the
scheduled tasks don't start correctly when they are scheduled to run as the
Local System account. What happens is that the process is started but then
without executing any user code, it exits. The task scheduler reports that
the task ran correctly and the task scheduler log file shows that it started
and exited the same second (this behaviour is incorrect). To add another
twist, if you restart the Task Scheduler service, everything starts working
fine.
I've tested this application on 15 different machines (including 5 XP
machines) and the Toshiba laptop is the only one experiencing this error.
Any ideas, thoughts, or comments are appreciated.
Greg
- Next message: Jeff Partch: "Re: Painting in NC area using CClientDC or CWindowDC?"
- Previous message: KS: "Re: TCHAR* and PostMessage in a thread .. memory leak question"
- Next in thread: Tim: "Re: Problem using Task Scheduler API"
- Reply: Tim: "Re: Problem using Task Scheduler API"
- Reply: Tim: "Re: Problem using Task Scheduler API"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|