在登录界面的“确定”按钮中,用语句:
      try
      begin
        Application.CreateForm(TgzhzForm,gzhzForm);
        gzhzForm.ShowModal;
      end
      finally
        Free;
      end;
来调用窗体,第一次成功调出,退出窗体gzhzForm,再在登录界面点“确定”按钮
报错:
Project Project1.exe raised Exception class EAccessViolation with message
'Access violation at address 00480422 in module project1.exe'Read Of address 00000000'.Process stopped.Use Step or Run to Continue.