Article View: borland.public.cppbuilder.database.ado
Article #1070'List Index out of bounds
From: Drew
Date: Mon, 15 Nov 2004 14:25
Date: Mon, 15 Nov 2004 14:25
26 lines
2102 bytes
2102 bytes
I occassionally get a List Index out of bounds' error - the number in brackets following the error varies widely. I think that the error is something to do with one of my SQL queries or updates. I am using ADOQueries to read to and write from an MS Access 2000 database, with BCB 6 Professional. I would like to clarify how I should be performing the queries/updates. I have the main form of my application on which I have placed, at design time, a TADOConnection. The main thread in my application creates two other threads, and it is these that read and write to the database. Each of the threads access the same tables. In my TADOQueries, I specify the parent form's TADOConnection as the ADOQuery->Connection. (I believe I should be doing this to avoid Access's slow write to the database files). Do I need to have any form of locking mechanism between the two threads to prevent them from accessing the tables at the same time? I thought that ADO is thread safe? Is this likely to be the cause of my problems? If not, any other suggestions? Thanks Andrew
Technical Details
Message-ID:
<4198bc43$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10698b,cd8c07bae0829994,start X-Google-Attributes: gid10698b,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Drew" <aemsley@brightwell.org.uk> Newsgroups: borland.public.cppbuilder.database.ado Subject: 'List Index out of bounds Date: Mon, 15 Nov 2004 14:25:59 -0000 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 81.137.221.84 Message-ID: <4198bc43$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100528707 81.137.221.84 (15 Nov 2004 06:25:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsgate.cistron.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail