Jump to content


Photo

List index out of range (-1)


  • Please log in to reply
No replies to this topic

#1 GeoMIR

GeoMIR
  • Members
  • 10 posts
  • Gender:Male
  • Location:Croatia

Posted 18 April 2014 - 11:54 AM

Dear members,

i have such configuration: TNextDBGrid -> TDataSource -> TABSTable ( ABS Database ). Trying to close a table and change a reference to new one, I am getting an error message "List index out of range (-1)", the Call Stack messages are:

:7c812aeb KERNEL32.RaiseException + 0x52
:0042600a TList.Get + $1E
:0042600a TList.Get + $1E
:0062f18c TNxCustomGridControl.PaintReportRows + $394

TNextDBGrid lays on TTBXToolWindow and error is rised only if TNextDBGrid is visible. If not, I can close the table and the database and change to new one.

Trying to find the reason, I made other sample project with TNextDBGrid on the main form - no problem at all.

I was using original TDBGrid for many years and wanted to swich to TNextDBGrid.

TNextDBGrid version is 5.9.9

Hoping to get an answer,

Miro M.
GeoMIR




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users