|
<< Click to Display Table of Contents >> Navigation: Telegram > 2022 > 10 > 05 > Telegram_2022-10-05T10 |
2022-10-05T10:54:11
nothing todo... I'm using into IIS ISAPI dll
2022-10-05T10:54:13
procedure TIWServerController.IWServerControllerBaseWindowIdChanged(ASession: TIWApplication; var vContinue: Boolean);
var
i: Integer;
frm: TComponent;
begin
// Release all active forms of the current session
for i := 0 to ASession.FormCount - 1 do
begin
frm := ASession.Forms[i];
if frm is TIWAppForm then
TIWAppForm(frm).Release;
end;
// Create the main form again
frm := ASession.ShowForm(TIWAppForm);
// force the browser to reload the new form
TIWAppForm(frm).AsyncReload;
end;
2022-10-05T10:56:41
We know how to use create and release. Free is after the fact, when you use a variable to control the form i have a few variables in session unit that point to forms. Those forms talk to each other. When i release them, i nil the variable.
2022-10-05T10:57:48
By checking the variable. I can know if the form has already been created or not etc.
2022-10-05T10:58:26
Easier to manage then looking thru all forms to find the form i need to communicate with