SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error "(10,8):StartBoundary:." with 2.0.14.0

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
AlexD



Joined: 05 Dec 2015
Posts: 2

PostPosted: Sat Dec 05, 2015 1:23 pm    Post subject: Error "(10,8):StartBoundary:." with 2.0.14.0 Reply with quote

Hello,

I've just installed VCL Scheduling Agent 2.0.14.0 and am receiving the error "(10,8 ):StartBoundary:." in unit "saTask", function "TTaskItem.SetAccountInformation" in pRegisteredTask := itf.RegisterTaskDefinition(Name, FTaskDefinition, TASK_CREATE_OR_UPDATE, '', '', FTaskDefinition.Principal.LogonType, '');

I'm using Delphi XE7 Update 1 on Win 8.1 64bit on a VM. VM shouldn't be a problem as older versions were working fine on a VM.

I had the trial version installed prior to the full version and there the same error was occurring. I'd uninstalled it before installing the full version.

What can be done to fix it?

Best regards,
Alex
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2102

PostPosted: Sun Dec 06, 2015 1:09 pm    Post subject: Reply with quote

Do you use ttOnce trigger? If you do - have you initialized TriggerDetails field?

(http://www.sicomponents.com/forum/viewtopic.php?p=3693#3693)
Back to top
View user's profile Send private message
AlexD



Joined: 05 Dec 2015
Posts: 2

PostPosted: Sun Dec 06, 2015 1:46 pm    Post subject: Reply with quote

No, I'm using ttDaily trigger.

Here is the code:
Code:
      Task := TaskScheduler1.CreateNewItem(TaskName + IntToStr(Number));
      Task.CurrentAction := 1;
      Task.InsertAction(VISTA_TASK_ACTION_EXEC);
      Task.ApplicationName := Application.ExeName;
      Task.Parameters := <some_parameters>;
      Task.WorkingDirectory := <some_path>;
      Task.Triggers.Add(ttDaily);
      if (not TaskScheduler1.RunningVistaOrLater) then begin
         Task.Flags := Task.Flags + [tfRunOnlyIfLoggedOn];
      end
      else begin
         Task.SetVistaFlag(tfvEnabled, True);
      end;
      Task.SetAccountInformation(GetOSUser, '');


Going with the hint from the other thread I've added
Code:
      tmpTriggerDetails.Daily.DaysInterval := 1;
      Task.Triggers[0].Details := tmpTriggerDetails;
      Task.Triggers.UpdateTriggers;

after adding the trigger and it seems to work now. Something must have changed since 2.0.8.0, which is being used in an older project.

Thanks for the hint.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group