设了断点之后,总出现那个CPU窗口。当把Debbuger->>Integrated debugging的钩去掉时,当程序运行到断点时就不停下来呀。我把Options->>Debugging的东东全选上了,还是不行当我另外新建一个工程时,设一个断点,又没有问题。
上午的时候还好好的,下午就不行了,哪位兄台是否有同样经历,怎样解决啦,急

解决方案 »

  1.   

    procedure PatchINT3;
    var
      NOP : Byte;
      NTDLL: THandle;
      BytesWritten: DWORD;
      Address: Pointer;
    begin
      if Win32Platform <> VER_PLATFORM_WIN32_NT then Exit;
      NTDLL := GetModuleHandle('NTDLL.DLL');
      if NTDLL = 0 then Exit;
      Address := GetProcAddress(NTDLL, 'DbgBreakPoint');
      if Address = nil then Exit;
      try
        if Char(Address^) <> #$CC then Exit;    NOP := $90;
        if WriteProcessMemory(GetCurrentProcess, Address, @NOP, 1, BytesWritten) and
          (BytesWritten = 1) then
          FlushInstructionCache(GetCurrentProcess, Address, 1);
      except
       // Do not panic if you see an EAccessViolation here, it is perfectly harmless!
        on EAccessViolation do ;
        else raise;
      end;
    end;
    ---
    procedure TFormMain.FormCreate(Sender: TObject);
    begin
      PatchINT3;
    end;
      

  2.   

    我装的输入法是五笔加加,每次程序在环境里面动行,在退出时或按Ctrl+F2结束时总是会弹出CPU窗口。烦
      

  3.   

    To:jinjazz(近身剪(N-P攻略)) 
     有这么复杂吗,还有没有简单一点的
      

  4.   

    楼主程序有问题吗?
    既然这样出现这个问题
    我想多半你的程序设计上也有点问题啊以前我遇到过
    也是出来那个显示CPU的东东
    后来把程序重新改了一些地方就可以了现在也是!这个也没什么啊
    何必重装?
      

  5.   

    To:Kshape(伟大的大伟) 可是我把项目移到其他人的电脑运行时,一切正常,那个东东没有出现
      

  6.   

    delphi用久了,可能就会这样我的delphi启动之后打开文件可以
    但是如果我直接点文件调用delphi的时候就会出错
    这种事情,很难说到底是怨谁