Was upgrading my program containing saTask from 1.0.5 to 2.0.1.
When calling TTaskItem.Exit Code, it said Interface not suppoted. But the same code work properly for 1.0.5.
If I set TsaTask.UseTaskScheduler1Only := true, ExitCode works again.
Any idea?
Delphi 2009 + Vista
Search found 11 matches
- Mon Jan 05, 2009 10:58 am
- Forum: VCL Scheduling Agent
- Topic: saTask 2.0.1 ExitCode
- Replies: 1
- Views: 13728
- Wed Jan 02, 2008 4:42 am
- Forum: VCL Scheduling Agent
- Topic: Need help!!! Could not enable/disable a trigger/task
- Replies: 2
- Views: 14480
- Wed Jan 02, 2008 3:36 am
- Forum: VCL Scheduling Agent
- Topic: Need help after updated to 2.0
- Replies: 2
- Views: 13496
- Wed Jan 02, 2008 3:09 am
- Forum: VCL Scheduling Agent
- Topic: Need help after updated to 2.0
- Replies: 2
- Views: 13496
Need help after updated to 2.0
First problem: I supposed 2.0 is backward compatible. After recompiled my application (with a fix for the TTriggers.Add), my application issue EOleException error when executed: Not enough storage is available to complete this operation It was generated when I just Open the TTaskScheduler without Ta...
- Thu Nov 29, 2007 10:30 am
- Forum: VCL Scheduling Agent
- Topic: Is it security issue?
- Replies: 4
- Views: 17205
Found the reason. You are right, it was due to the security issue of Vista. On my Vista I kept the UAC (User Account Control) effective. Hence, for convenience, I ran my DBS2006 with Admin privilege. Therefore, my program running under IDE also has Admin privilege. This is why my runtime program cou...
- Thu Nov 29, 2007 7:43 am
- Forum: VCL Scheduling Agent
- Topic: Need help!!! Could not enable/disable a trigger/task
- Replies: 2
- Views: 14480
Need help!!! Could not enable/disable a trigger/task
Any thing wrong with these codes? with TaskItem do begin Activate; If Triggers.Count> 0 then Triggers[0].Enabled := not Triggers[0].Enabled; Triggers.UpdateTriggers; Deactivate(true); end; Nothing changed to the task :shock: I also tried to add/remove tfDisabled flag of a taskitem to see if I could ...
- Thu Nov 29, 2007 3:26 am
- Forum: VCL Scheduling Agent
- Topic: Immediately Run became Occassionally Run on Vista
- Replies: 1
- Views: 11273
Immediately Run became Occassionally Run on Vista
Just my investigation. On Vista, calling TTaskItem.Run could not guarantee successful running, sometime need twice or even more tries. But on XP, so far did "Immediately" run. :roll: However, using Vista built-in Scheduler did not have such issue. Any idea? BTW, when will version 2.0 be re...
- Wed Nov 28, 2007 10:17 am
- Forum: VCL Scheduling Agent
- Topic: Is it security issue?
- Replies: 4
- Views: 17205
- Wed Nov 28, 2007 10:05 am
- Forum: VCL Scheduling Agent
- Topic: EConvertError when Triggers[].EndDate is zero
- Replies: 2
- Views: 12956
- Wed Nov 28, 2007 2:59 am
- Forum: VCL Scheduling Agent
- Topic: EConvertError when Triggers[].EndDate is zero
- Replies: 2
- Views: 12956
EConvertError when Triggers[].EndDate is zero
If there is no EndDate for a trigger, is the desired checking method:
if Triggers[].EndDate = 0 ??
The EConvertError was trapped in side the VCL, so I could not trap the convesion error.
if Triggers[].EndDate = 0 ??
The EConvertError was trapped in side the VCL, so I could not trap the convesion error.
- Wed Nov 28, 2007 2:55 am
- Forum: VCL Scheduling Agent
- Topic: Is it security issue?
- Replies: 4
- Views: 17205
Is it security issue?
The tasks I created under IDE could not been seen at runtime. But, under IDE the VCL Scheduling Agent could see all tasks no matter created at runtime or under IDE. I created an local accout with admin rights for creating these tasks. Any idea please? VCL Scheduling Agent 1.0.5, BDS2006, Vista Ultim...