Redirection in IWServerControllerBaseBrowserCheck generates exception (Priority suppo

<< Click to Display Table of Contents >>

Navigation:  Forum >

Redirection in IWServerControllerBaseBrowserCheck generates exception (Priority suppo

Forum link

 


 

07-01-2023, 12:07 AM:

 

I am using Intraweb 15.3.8 with C++ Builder 10.2.3

 

The sample I have attached was working fine with Intraweb 14

 

aSession->TerminateAndRedirect generates an exception

 

Exception message  : Access violation at address 0000000000C0FFFC in module 'myapp.exe'. Write of address 0000000000000090

 

Depending on the error condition, it might be possible to restart the application.

 

Exception class    : EAccessViolation

 

Exception address  : 00000000079E77D0

 

Exception Time    : 2023-06-30 18:50:38.870

 

THIS IS AN EMERGENCY PLEASE!

 


 

07-01-2023, 10:21 AM:

 

Using the new help system I searched on onbrowsercheck and found the answer below, I changed the flag in your demo and it did not throw an exception after that (also, there was a typo - it wouldn't compile on the first try).

 

clip0002

 


 

07-01-2023, 12:34 PM:

 

Thanks!

 

I did not test it but I am pretty sure it will resolve the problem.

 

By the way how can I install this new Intraweb help you used to search?

 

I was not aware of its existence!

 

 

 

It is OK I think I found how to create that Intraweb help

 

https://www.atozed.com/forums/thread-3294.html

 


 

07-01-2023, 01:00 PM:

 

IW_Help.chm should be already installed in your Intraweb 15\Help folder.

 


 

07-02-2023, 08:14 PM:

 

@MJS is correct. Changing the property will fix that.

 

You can also check for an unassigned ASession parameter inside the event handler before using it. That's what I'd do myself. Checking the browser before creating the session is a good thing that's why it is the default behavior now.