Simon
Simon

Reputation: 9425

Delphi 7 IDE - Index out of bounds in list read access

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.

enter image description here

Then it always shows another error: 'Invalid Pointer Operation'

enter image description here

Any ideas how i could locate where it is coming from?

Upvotes: 1

Views: 1424

Answers (4)

jpfollenius
jpfollenius

Reputation: 16602

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.

Upvotes: 2

Stefan Glienke
Stefan Glienke

Reputation: 21713

You can install madExcept. Then it shows detailed information (callstack and more) about the exception and you might be able to locate the origin.

Upvotes: 0

Arnaud Bouchez
Arnaud Bouchez

Reputation: 43023

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.

Upvotes: 4

evilone
evilone

Reputation: 22740

"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.

Upvotes: 1

Related Questions