Invalid Pointer Operation - Delphi XE

前端 未结 4 1582
庸人自扰
庸人自扰 2021-01-02 05:20

I can\'t seem to figure this one out. My program compiles and runs successfully, but during debugging only it pops up a message box saying \"Invalid Pointer Operation\" when

4条回答
  •  醉梦人生
    2021-01-02 05:35

    I have been caught out by this type of "indicated error" during Delphi debugging.

    Check if you have any watched variables with "Allow Function Calls" enabled or watches that try to show other variables in the same unit (or global) that might be uninitialised. When stopping on a breakpoint this can cause Delphi's debugger to attempt to display the value via a function call that accesses an uninitialised Pointer or variable. The actual variable that causes the AV my not even be on your watch list.

提交回复
热议问题