AV when accessing UserSession
Re: AV when accessing UserSession
The Intraweb development team is trying to contact you will you please respond to them.
Re: AV when accessing UserSession
I'd love to. I've searched my emails for "IntraWeb" and "Atozed" but can't find any recent emails from them, not in Trash or Spam folders, either. How did they try to contact me? Best way would be through madshi (at) gmail (dot) com.
Re: AV when accessing UserSession
Iso there any progress on fixing this issue?
I will appreciate an update...
I will appreciate an update...
Re: AV when accessing UserSession
I received an email from Atozed in January with a modified madIWSupport.pas file. It worked fine for me, but with a little caveat (see below). I've now modified madIWSupport.pas to optionally either use my old hacked solution (which works for me with the latest IW version), or the official IW exception callback. You can choose by defining or undefining the "{$define useIWExceptionCallback}" at the top of madIWSupport.pas. See attached test project.
Here's the little caveat: When using IntraWeb's new exception callback, the test project produces a popup "ds1: Cannot perform this operation on a closed dataset". When using my dirty hook solution, this popup does not appear. To be honest, I'm not 100% sure if the average IW user would want this popup to appear or not. What do you think?
I've reported this caveat to Atozed, but haven't heard anything back.
Here's the little caveat: When using IntraWeb's new exception callback, the test project produces a popup "ds1: Cannot perform this operation on a closed dataset". When using my dirty hook solution, this popup does not appear. To be honest, I'm not 100% sure if the average IW user would want this popup to appear or not. What do you think?
I've reported this caveat to Atozed, but haven't heard anything back.
- Attachments
-
- iwprj1.zip
- (90.77 KiB) Downloaded 342 times
Re: AV when accessing UserSession
Thanks. 8 will try it and I will also followup with AtoZed
Re: AV when accessing UserSession
Great, let me know how it goes.
Re: AV when accessing UserSession
... since my last post I have upgraded my Delphi to Tokyo IW to the latest version and MADshi to 4.19.
All new, clean installs.
I am still having this problem.
Help please..
All new, clean installs.
I am still having this problem.
Help please..
Re: AV when accessing UserSession
Did you try both the patched version of my hook solution, and the "official" solution provided by IntraWeb, and they both failed?
Re: AV when accessing UserSession
Yes. I tried both.madshi wrote:Did you try both the patched version of my hook solution, and the "official" solution provided by IntraWeb, and they both failed?
Re: AV when accessing UserSession
With the test project I attached? That's strange, both work fine here.
How can I reproduce the issue on my PC?
How can I reproduce the issue on my PC?
Re: AV when accessing UserSession
Sorry for the delay. I have another urgent deadline but I will come back to this.
Regards
Regards
Re: AV when accessing UserSession
Delphi Tokyo 10.2.3 and IW 14.2.17 and MADshi 4.0.19
I have implemented the following code:
And
I have also tried builds with:
1. Standard distribution
2. Changes to MADSupport and mad.inc
In AddCommandLineHeaderInfo, UserSession always evaluates to nil.
I don't know where to go from here...
I have implemented the following code:
Code: Select all
function UserSession: TIWUserSession;
begin
if WebApplication <> nil then
Result := TIWUserSession(WebApplication.Data)
else
Result := nil;
end;
Code: Select all
procedure AddCommandLineHeaderInfo(const exceptIntf: IMEException; var handled: boolean);
begin
exceptIntf.BugReportHeader['Product'] := 'Test';
if UserSession <> nil then
begin
exceptIntf.BugReportHeader['User #'] := UserSession.gv_UID;
exceptIntf.BugReportHeader['Site ID'] := UserSession.gv_SID;
end;
end;
1. Standard distribution
2. Changes to MADSupport and mad.inc
In AddCommandLineHeaderInfo, UserSession always evaluates to nil.
I don't know where to go from here...
Re: AV when accessing UserSession
So basically everything works except UserSession? That's at least some progress, right?
I'm not sure how to get access to the UserSession with the latest IntraWeb version, if that code doesn't work. That seems more like a question for the IntraWeb support? This question doesn't seem to be madExcept specific at all, or what do you think?
I'm not sure how to get access to the UserSession with the latest IntraWeb version, if that code doesn't work. That seems more like a question for the IntraWeb support? This question doesn't seem to be madExcept specific at all, or what do you think?
Re: AV when accessing UserSession
I think you may be correct.
I will post on IW forum in the next day or so.
I will post on IW forum in the next day or so.
Re: AV when accessing UserSession
If you have any news, would be great if you could update here. Thanks!