Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread List out of Bounds Error with Dbisam 4.30 b3
Mon, Mar 21 2011 8:46 PMPermanent Link

Adam H.

Hi Tim,

I'm not sure if this is something I've stuffed up in my code playing
with Triggers, or whether it's a little bug in the latest build.

In my application when I choose to change the database location, I close
down the TDBISamDatabase component, the TDBISamSession component, and
the TDBISamEngine Component.

When I set the new database location, and attempt to open it, I get the
error:

List index out of bounds (0)

I have traced this to the function TDataEngine.GetLocaleCharMap in the
dbisamen.pas unit on line 4957.

When I break on this line and debug, FLocaleList.Recordcount returns 0.

Strangely enough when I open the program to start with, this returns a
count of 213. It's only when I close, change the database location and
reopen that I get the error.

I have placed a sample project that can replicate the error in the
Binaries newsgroup with the subject:

List out of bounds Error for Tim


The same error occurs if the Engine was set to Active in design time,
and then the engine is closed and restarted again, so I don't think it's
necessarily isolated to the changing of the database, but the closing
and reopening of the engine?

Cheers

Adam.
Wed, Mar 23 2011 4:29 PMPermanent Link

John Postnikoff



I had a similar experience with other database engines and DBISAM a couple of times. However my problem (I believe) is that I had slightly moved a field out of a design area in the designer form of Report Builder. I still use Delphi 7, DBISAM and Report Builder. This error was a real hair puller.  I am curious to see if you were changing a form or report. In my case I had to go to a backup or redesign the report.

John Postnikoff



"Adam H." wrote:

Hi Tim,

I'm not sure if this is something I've stuffed up in my code playing
with Triggers, or whether it's a little bug in the latest build.

In my application when I choose to change the database location, I close
down the TDBISamDatabase component, the TDBISamSession component, and
the TDBISamEngine Component.

When I set the new database location, and attempt to open it, I get the
error:

List index out of bounds (0)

I have traced this to the function TDataEngine.GetLocaleCharMap in the
dbisamen.pas unit on line 4957.

When I break on this line and debug, FLocaleList.Recordcount returns 0.

Strangely enough when I open the program to start with, this returns a
count of 213. It's only when I close, change the database location and
reopen that I get the error.

I have placed a sample project that can replicate the error in the
Binaries newsgroup with the subject:

List out of bounds Error for Tim


The same error occurs if the Engine was set to Active in design time,
and then the engine is closed and restarted again, so I don't think it's
necessarily isolated to the changing of the database, but the closing
and reopening of the engine?

Cheers

Adam.
Wed, Mar 23 2011 6:19 PMPermanent Link

Adam H.

Hi John,

Thanks for your reply...

> I had a similar experience with other database engines and DBISAM a couple of times. However my problem (I believe) is that I had slightly moved a field out of a design area in the designer form of Report Builder. I still use Delphi 7, DBISAM and Report Builder. This error was a real hair puller.  I am curious to see if you were changing a form or report. In my case I had to go to a backup or redesign the report.

Sadly, not to be in this case. I've been able to replicate the bug with
only one form and one data aware component. I've also seen the problem
occur in the IDE when simply trying to populate persistent TFields in a
TDBISamQuery.

I've emailed Tim, and he's aware of the issue and hopes to have a new
release with the fix out in the next day or so.

Cheers

Adam.
Wed, Mar 23 2011 10:55 PMPermanent Link

Adam H.

Looks like the next build is already released. Once again Tim responds
to the issues at break-neck speeds! Smile

Thanks Tim! I've downloaded and compiled with the latest version, and
this problem appears to have been fixed. Very grateful for the fast turn
around time!

Cheers

Adam.
Image