Jump to content

SampleThreadTimer-3 and force kill


delagoutte

Recommended Posts

Hello,

in in dektop demo ThreadTimer-3 there is this onclose code : 

procedure TMainForm.UniFormClose(Sender: TObject; var Action: TCloseAction);
begin
  if UniFrame11.Busy or UniFrame12.Busy then
  begin
    Action := caNone;
    ShowMessage('Busy!!!!');
  end;
end;

In my app i use unithreadtimer in a free form or in frale that arre called by the free form.

When i close my free form i could have thread are running (like in the sample) but me, i don't want display a message i want close form.

 

what is the best way for stoping/killing "child" thread before close the form ?

if i force close my app crash !!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...