Page 3 of 5

Re: AV when accessing UserSession

Posted: Fri Jan 05, 2018 5:11 pm
by ZSL
The Intraweb development team is trying to contact you will you please respond to them.

Re: AV when accessing UserSession

Posted: Fri Jan 05, 2018 5:22 pm
by madshi
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

Posted: Sun Feb 04, 2018 7:46 pm
by ZSL
Iso there any progress on fixing this issue?

I will appreciate an update...

Re: AV when accessing UserSession

Posted: Mon Feb 05, 2018 11:02 am
by madshi
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.

Re: AV when accessing UserSession

Posted: Mon Feb 05, 2018 8:01 pm
by ZSL
Thanks. 8 will try it and I will also followup with AtoZed

Re: AV when accessing UserSession

Posted: Mon Feb 05, 2018 8:07 pm
by madshi
Great, let me know how it goes.

Re: AV when accessing UserSession

Posted: Wed Apr 11, 2018 8:20 pm
by ZSL
... 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..

Re: AV when accessing UserSession

Posted: Wed Apr 11, 2018 8:46 pm
by madshi
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

Posted: Wed Apr 11, 2018 11:16 pm
by ZSL
madshi wrote:Did you try both the patched version of my hook solution, and the "official" solution provided by IntraWeb, and they both failed?
Yes. I tried both.

Re: AV when accessing UserSession

Posted: Thu Apr 12, 2018 8:06 am
by madshi
With the test project I attached? That's strange, both work fine here.

How can I reproduce the issue on my PC?

Re: AV when accessing UserSession

Posted: Tue Apr 17, 2018 8:27 pm
by ZSL
Sorry for the delay. I have another urgent deadline but I will come back to this.

Regards

Re: AV when accessing UserSession

Posted: Mon Apr 23, 2018 8:10 am
by ZSL
Delphi Tokyo 10.2.3 and IW 14.2.17 and MADshi 4.0.19

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;
And

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;
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...

Re: AV when accessing UserSession

Posted: Mon Apr 23, 2018 8:34 am
by madshi
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?

Re: AV when accessing UserSession

Posted: Mon Apr 23, 2018 8:10 pm
by ZSL
I think you may be correct.

I will post on IW forum in the next day or so.

Re: AV when accessing UserSession

Posted: Mon Apr 23, 2018 8:14 pm
by madshi
If you have any news, would be great if you could update here. Thanks!