我在登录程序的确定按钮中写道
 if (useredit.text='user') and (passwordedit.text='1234') then
 begin  // 如果密码正确就.....
 start_kf.hide;   //启动画面关闭
 start_kf.free;
 login.hide;      //登录窗口关闭
 login.free;
 application.run ; //运行主程序    好象就是这里有问题
 end else begin  //如果密码错误就....
          showmessage('密码错!!');
          times:=times+1;
          if times=3 then
          application.terminate;
          end;
程序运行时启动画面和登录程序能进但按登录"确定"(密码正确)却不能进入主程序。 不知是哪的错。望高手赐教