Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session Manager in 15.2.69 stops working sometimes
#14
We use the IWJclDebug, and IWJclStackTrace, units, and these return the stacktrace that I included. They are always pretty accurate.

I need to add that we've modified some of the IntraWeb source code files, as mentioned in https://www.atozed.com/forums/thread-302...10379.html

I've made changes to IWControls.pas and IWForms.pas

The biggest change is inside procedure TIWCustomControl.Dispose(ADispose: Boolean); where I've chanhed the 2 lines

Code:
    if not IsDesignMode then begin
      UnRegisterAsyncEvents;
into


Code:
    if not IsDesignMode then
    try
      if (OwnerForm <> nil) and
        (OwnerForm is TIWForm) and
          Assigned((OwnerForm as TIWForm).PageContext) and
          not (OwnerForm as TIWForm).PageContext.Destroying then
      try
        UnRegisterAsyncEvents
      except
        on E: Exception do
          CodeSite(S_OOP).LogException('procedure TIWCustomControl.Dispose - UnRegisterAsyncEvents', E);
      end;
    except
      on E: Exception do
        CodeSite(S_OOP).LogException('procedure TIWCustomControl.Dispose - OwnerForm/PageContext', E);
    end;
Reply


Messages In This Thread
RE: Session Manager in 15.2.69 stops working sometimes - by ebob42 - 10-30-2023, 07:45 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)