Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 1400 #173

Open
chmichael opened this issue Oct 1, 2021 · 1 comment
Open

Error 1400 #173

chmichael opened this issue Oct 1, 2021 · 1 comment

Comments

@chmichael
Copy link

chmichael commented Oct 1, 2021

Hello,

When i'm closing the application eg, after 30 seconds OTL will raise an exception with error code 1400 invalid window handle. Any ideas ?

var
  FTask1: IOmniTimedTask;
  FTask2: IOmniTimedTask;

procedure DoSometing1;
begin
end;

procedure DoSometing2;
begin
end;

procedure StartTimedTasks(const Task: IOmniTask);
begin
  FTask1 := Parallel.TimedTask.Every(1000).Execute(DoSometing1);
  FTask2 := Parallel.TimedTask.Every(1000).Execute(DoSometing2);
  FTask1.Start;
  FTask2.Start;
end;

procedure TForm8.FormCreate(Sender: TObject);
begin
  Parallel.Async(StartTimedTasks);
end;
@chmichael
Copy link
Author

OTL-Error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant