Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirection in IWServerControllerBaseBrowserCheck generates exception (Priority suppo
#1
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!


Attached Files
.zip   Project4.zip (Size: 58.5 KB / Downloads: 3)
Reply
#2
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).

[Image: clip0002.png]
Reply
#3
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
Reply
#4
IW_Help.chm should be already installed in your Intraweb 15\Help folder.
Reply
#5
@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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)