AV when accessing UserSession

delphi package - automated exception handling

Re: AV when accessing UserSession

Postby ZSL » Tue Dec 05, 2017 6:34 pm

..... update please
ZSL
 
Posts: 29
Joined: Thu Mar 31, 2016 11:23 pm

Re: AV when accessing UserSession

Postby madshi » Tue Dec 05, 2017 6:35 pm

Still working on madCodeHook <sigh>. But should get to this soon.
madshi
Site Admin
 
Posts: 9472
Joined: Sun Mar 21, 2004 5:25 pm

Re: AV when accessing UserSession

Postby ZSL » Tue Dec 12, 2017 6:08 pm

This is now 6 weeks.....

Will it ever be fixed?
ZSL
 
Posts: 29
Joined: Thu Mar 31, 2016 11:23 pm

Re: AV when accessing UserSession

Postby madshi » Tue Dec 12, 2017 6:17 pm

It's been unlucky timing, me busy with urgent madCodeHook support requests.

Anyway, your issue is almost at the top of my list now, I might actually get to it tomorrow.
madshi
Site Admin
 
Posts: 9472
Joined: Sun Mar 21, 2004 5:25 pm

Re: AV when accessing UserSession

Postby madshi » Wed Dec 13, 2017 3:49 pm

Ok, the solution is pretty simple:

1) Copy madIWSupport.pas/dfm and mad.inc into your project folder, and remove the write protection flag.
2) Comment out the line "handled := AApplication <> nil".

Done. It seems that in earlier IW versions the last parameter to "TIWServerControllerBase.DoException" was "var handled: boolean". And now in the latest version instead it seems to be something like "httpRequest: THttpRequest".

If the IW guys want to offer an official exception callback, basically all I need is a way to hook/overwrite TIWServerControllerBase.DoException. You can send them madIWSupport.pas, that should make it pretty easy for them to see what they could to help me get rid of the nasty hack. Or just send them the whole test project you attached to this thread here, together with madIWSupport.pas/dfm + mad.inc. Then they can test it all with the madExcept non-commercial edition. They could then just send me an updated madIWSupport.pas/dfm file which would work with their new exception callback logic.
madshi
Site Admin
 
Posts: 9472
Joined: Sun Mar 21, 2004 5:25 pm

Re: AV when accessing UserSession

Postby ZSL » Thu Dec 14, 2017 12:53 am

Sorry but this did not fix it.

I completed the tasks you advised. Did a rebuild. Did not fix it.

I deleted all madIWSupport.dcu on my system.

Renamed all madIWSupport.pas/dfm exceptthe one in my project dir.

Did a rebuild. Still did not fix it.
ZSL
 
Posts: 29
Joined: Thu Mar 31, 2016 11:23 pm

Re: AV when accessing UserSession

Postby madshi » Thu Dec 14, 2017 1:00 am

Can you set a breakpoint in madIWSupport.pas. Does it reach the line before the commented out line?

(Not sure what to say, it definitely fixed it for me.)
madshi
Site Admin
 
Posts: 9472
Joined: Sun Mar 21, 2004 5:25 pm

Previous

Return to madExcept

Who is online

Users browsing this forum: No registered users and 3 guests

cron