One of my delphi projects produces this error message when closing the IDE.
Note This is not the same as 'List Index out of bounds(0)' error.
Then it always shows another error: 'Invalid Pointer Operation'
Any ideas how i could locate w开发者_StackOverflow中文版here it is coming from?
Sounds either like an IDE bug, or (more likely) like a bug in a component.
Fix and speedup the IDE
Install the latest official IDE hotfix (I guess Delphi 7 latest update is 7.1).
Download and install DelphiSpeedUp 3.1.
It may fix some issues, and will in fact make your IDE faster. Worth trying it.
Component issue
Could you uninstall all installed third-party components?
Then reinstall your custom packages one by one, checking which one triggers the error.
It's possible that some bug in the IDE editor part of some third-party component occurs at IDE closing.
Try running the Delphi IDE in its own debugger (menu Run
, Load Process
, then choose the the IDE executable - delphi32.exe in your case). Then reproduce the problem with this project. You might get a hint where the problem is located.
"Invalid pointer operation" means you freed memory that didn't belong to you. One of these three things is the cause:
- Your program freed something that had already been freed once before.
- Your program freed something that was never allocated in the first place.
- Your program freed something that had been allocated with a different memory manager.
You can install madExcept. Then it shows detailed information (callstack and more) about the exception and you might be able to locate the origin.
精彩评论