if assigned(FrmStatThrowaway) then
    FrmStatThrowaway:=TFrmStatThrowaway.create(application);
  FrmStatThrowaway.show;
为什么我一运行就出错????????????

解决方案 »

  1.   

    if not assigned(FrmStatThrowaway) then
        FrmStatThrowaway:=TFrmStatThrowaway.create(application);
      FrmStatThrowaway.show;函数assigned前面应该加not才行.
      

  2.   

    if not assigned(FrmStatThrowaway) then begin
        FrmStatThrowaway:=TFrmStatThrowaway.create(application);
      FrmStatThrowaway.show;
    end
    else
      FrmStatThrowaway.show;
      

  3.   

    yzysoftware (无心插柳)   5116888(没有阳光)http://expert.csdn.net/Expert/topic/1722/1722209.xml?temp=.6842005
    http://expert.csdn.net/Expert/topic/1726/1726330.xml?temp=.5689661
    http://expert.csdn.net/Expert/topic/1848/1848541.xml?temp=.9955408
    http://expert.csdn.net/Expert/topic/1848/1848739.xml?temp=.8219721以上纯属偶然?