Jump to content
lovromirnik

OnDeinit or Something

Recommended Posts

Hello,

 

does SCAR have a OnDeinit() function or something simmilar? :confused:

 

I've been experimenting with Forms and since I'm still new to the area I often need to Ctrl + Alt + S to Stop the Script, which unfortunately leaves my Form open. In order to close it then I am forced to reopen SCAR.

 

Thanks in advance,

Lovro Mirnik

Link to comment
Share on other sites

You can define the ScriptTerminate procedure, but you shouldn't be using TForm.Show at all. It's not safe and could crash SCAR. Use TForm.ShowModal instead. SCAR Divi isn't designed for multithreading, so you have to do everything in sequence (or run multiple SCAR instances)

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...