Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clear datas when switch forms
#1
I have UIWServerControllerBaseConfig define two forms:

IWExceptionRenderer.SetExceptionRendererClass(TIWExceptionRendererEx);
 if FLock<>nil then FreeAndNil(FLock);
 FLock:= TCriticalSection.Create;
THandlers.Add('', 'Form1', TContentForm.Create(TForm1)); http://localhost/form1 (first load)
THandlers.Add('', 'Form2', TContentForm.Create(TForm2)); http://localhost/form2



In UserSesssion i have define procedures LoadDatas/ClearDatas with my TDatas. Both Forms used this procedures.

If switch Form2 then i want ClearDatas in Form1? If i dont, i get memory leaks from Form1, if destroy Usersession! Who Release!
Reply


Messages In This Thread
Clear datas when switch forms - by matija - 02-15-2021, 01:10 PM
RE: Clear datas when switch forms - by matija - 02-17-2021, 08:34 AM
RE: Clear datas when switch forms - by matija - 02-17-2021, 01:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)