OnAsyncPageUnloaded don't wok

<< Click to Display Table of Contents >>

Navigation:  Forum >

OnAsyncPageUnloaded don't wok

Forum link

 


 

02-20-2023, 10:57 AM:

 

Hi,

 

I tried to use OnAsyncPageUnloaded. But if I add the example code I have to click twice on every button link etc on that page.

 


 

02-21-2023, 11:29 PM:

 

Can you point me the example code. What browser are you using to test this?

 


 

02-22-2023, 07:49 AM:

 

(02-21-2023, 11:29 PM)Alexandre Machado Wrote: [ -> ]Can you point me the example code. What browser are you using to test this?

 

I have removed the code just now.

 

Recently installed 

 

1. RAD Studio 11.2

 

2. Intraweb 15.2.69

 

3. TMS Intraweb component pack 5.9.3.0

 

after that Patch 2 for RAD Studio 11.2 (Do I have to reinstall Intraweb)

 

I don't think it's related to browser. I have testet Edge and Firefox. (did not work)

 


 

02-22-2023, 01:55 PM:

 

The problem exists even with no code inside the OnAsyncPageUnloaded event.

 

Also I don't understand WebApplication.ActiveFormCount = 1. My formCount is always greater than 1.  So  WebApplication.SelfDestruct(15); will never happens.

 

  if AIsCurrent and (WebApplication.ActiveFormCount = 1) then begin

 

    WebApplication.SelfDestruct(15);

 

  end;