Jump to content

How to call "UniGUIMainModuleDestroy" on Terminate?


maher

Recommended Posts

When Terminated  (By CloseBrowser)   the UniGUIMainModuleDestroy  procedure Will not be executed!!!!!!!

 

it's be executed just when  "Close"  The Main Form!!!!

 

 

How can Call the  UniGUIMainModuleDestroy  procedure on Terminated 

 

Thanx

 

 

 

 

 

Link to comment
Share on other sites

The OnDestroy event is called  when Session closed !

 

On Terminated or just browserClose(without Terminate) in both cases,  the Session will close  after  "SessionTimeOut" !

 

and if the SessionTimeOut a few minutes , it's will Destroy after few minutes.

Link to comment
Share on other sites

Asalam alykom,

 

 

Let me remind that OnDestroy event is not called immediately. It is called a few seconds later.

 

I test this case .

 

On "Terminate"  the OnDestroy called  immediately.

 

when Terminated  used  "UniSession.Terminate();"   it's work.

 

But by set  MainModule->TerminateOnBrowserClose -> True    did not!!!!

Link to comment
Share on other sites

  • 2 weeks later...

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