I have this function inside my mainview model, and want to fire up a login dialog.
The dialog commes up but when i close the dialog again from cancel or ok modal result i got a leak error.
Any sugestions
procedure TMyMainViewModel.ShowLoginDialog;
begin
WinMan := IoC.Get<IWindowManager>();
if WinMan.ShowDialog(Ioc.Get<ILoginViewModel>()) = mrCancel then
begin
end;
end;
The dialog commes up but when i close the dialog again from cancel or ok modal result i got a leak error.
Any sugestions
procedure TMyMainViewModel.ShowLoginDialog;
begin
WinMan := IoC.Get<IWindowManager>();
if WinMan.ShowDialog(Ioc.Get<ILoginViewModel>()) = mrCancel then
begin
end;
end;