Search found 11 matches

by richardd
Thu Oct 30, 2008 6:12 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

Yes I do have Optimization turned ON . Given the following scenario (we have 3 account to modify): ACCOUNT_A ACCOUNT_B ACCOUNT_C It seems to be happening when the following conditions are meant: 1. I am currently logged on (Windows) as ACCOUNT_C 2. I am changing the account passwords (windows users)...
by richardd
Thu Oct 30, 2008 3:31 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

Result is NOERROR ( 0 )... but strangely, it now works OK! I am a bit confused because that code is essentially the same as before just broken up in 2 separate instructions. This: Res := (FInterface as ITask).GetAccountInformation(ppwszAccountName); OleCheck(Res); Is the same as: OleCheck((FInterfac...
by richardd
Wed Oct 29, 2008 4:08 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

No I do not use IIS.

Why can't I simply get the Account Name (TaskItem.AccountName)?
by richardd
Tue Oct 28, 2008 10:40 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

After more investigation, I found the following: CODE SNIPPET: TaskScheduler := TTaskScheduler.Create( nil ); try //Specifies whether Task Scheduler should invoke Refresh method before ActivateTask method is called. TaskScheduler.AutoRefresh := False; //Specifies the behavior of the Task Scheduler w...
by richardd
Tue Oct 28, 2008 6:44 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

Further more, the exception is originating from this routine found in saTask function TTaskItem.GetAccountName: WideString; var ppwszAccountName: PWideChar; begin // 2.0.0.4 if not (FTaskManager.RunningVistaOrLater) then begin if not Assigned(FInterface) then <-In my case, this is never assigned) Er...
by richardd
Tue Oct 28, 2008 6:38 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

Some of you have had better luck than I have so far. Any thoughts on why I get this error ('Overlapped I/O operation is in progress')? This error seems to always happen when calling the following line: if AnsiSameText( TaskScheduler.Items[Index].AccountName, AComputerName + '\' + AUserName ) then My...
by richardd
Fri Oct 24, 2008 9:05 pm
Forum: VCL Scheduling Agent
Topic: Overlapped I/O operation is in progress
Replies: 10
Views: 24744

Overlapped I/O operation is in progress

Trying to change a few Scheduled task passwords on a remote machine and always get error "Overlapped I/O operation is in progress". It happens when running either from a Windows 2000 to XP (remote). Same problem when running from Vista to XP (remote). Any ideas/suggestion at this point wou...
by richardd
Fri Oct 17, 2008 5:27 pm
Forum: VCL Scheduling Agent
Topic: Always get "Access Denied" when attempting to chan
Replies: 6
Views: 17620

Yes I am an administrator on the remote Vista machine.
by richardd
Thu Oct 16, 2008 8:23 pm
Forum: VCL Scheduling Agent
Topic: Always get "Access Denied" when attempting to chan
Replies: 6
Views: 17620

Get same error message with Demo

More findings: I tried creating a new task on a remote Vista machine using the demo and I get the same error message (Access Denied). I know I have firewall settings correct (Remote Task Management, etc) but still get that error on remote Vista machine (the app is running on XP). I notice in a few p...
by richardd
Thu Oct 16, 2008 4:54 pm
Forum: VCL Scheduling Agent
Topic: Always get "Access Denied" when attempting to chan
Replies: 6
Views: 17620

Still get Access Denied error

Thanks for the tips, but unfortunately, it did not solve the issue. I still get the "Access Denied" error. It works great when running from an XP machine to an XP machine but doesn't work from XP to Vista. As anybody ever got this to work? If so, got any code snippet to demonstrate? Thanks...
by richardd
Wed Oct 15, 2008 10:52 pm
Forum: VCL Scheduling Agent
Topic: Always get "Access Denied" when attempting to chan
Replies: 6
Views: 17620

Always get "Access Denied" when attempting to chan

Hi all, I have a routine to change the password on Scheduled Tasks. Seems to have a problem on Vista. function TMainForm.ChangeTaskPasswords(const AComputerName, AUserName, APassword: String): Boolean; // NOTE: Unlike with Services, which uses .\account for local accounts, Scheduled Tasks seem to us...