Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 4 of 4 total |
List out of Bounds Error with Dbisam 4.30 b3 |
Mon, Mar 21 2011 8:46 PM | Permanent 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 PM | Permanent 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 PM | Permanent 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 PM | Permanent Link |
Adam H. | Looks like the next build is already released. Once again Tim responds
to the issues at break-neck speeds! 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. |
This web page was last updated on Tuesday, May 7, 2024 at 06:25 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |