Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Server chrashs
#4
I have a theory on this.  I think this code in the IWAppFormCreate event:

Code:
wakoForm = new TwakoForm(this);
adrForm  = new TadrForm(this);
...

is the problem as it's the C++ way but not the IW way.  IW will create these forms on demand by something like WebApplication->GoToURL("/paypalForm") if you use SetURL or WebApplication->ShowForm(__classid(TpaypalForm),false,true), etc.

If you are creating these forms ahead of time to be able to access them via the variables you created for future reference it might just be 'accidentally' working most of the time for you.

If you remove the pre-creating form code from IWAppFormCreate and access your other forms something like this:

Code:
TpaypalForm *f = dynamic_cast<TpaypalForm *>(WebApplication->FindFormByName("paypalForm"));
if(f) { f->Show(); } else { new TpaypalForm(WebApplication)->Show(); }

it may always work correctly without affecting the session.
Reply


Messages In This Thread
Server chrashs - by joergb - 01-23-2025, 10:04 AM
RE: Server chrashs - by Alexandre Machado - 03-04-2025, 09:14 AM
RE: Server chrashs - by joergb - 03-04-2025, 12:38 PM
RE: Server chrashs - by MJS@mjs.us - 03-05-2025, 11:54 PM
RE: Server chrashs - by joergb - 03-08-2025, 12:33 PM
RE: Server chrashs - by Alexandre Machado - 03-08-2025, 11:57 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)