🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #1781

Re: multi-thread

#1781
From: boukman
Date: Sun, 02 May 1999 00:00
36 lines
1954 bytes
"Jerry Bloomfield (TeamB)" wrote:
> 
> On Fri, 23 Apr 1999 23:08:21 -0500, boukman <boukman@colba.net> wrote:
> 
> >I'm making a application that use Multi thread but  I keep getting a error
> >From TDataBase that processs is not set in insert or edit mode and I
> >don't know how to solve it. Can't synchronize the thread also
> 
> You do not mention it,  but I assume that you are trying to use the same
> TDatabase in all of your threads.  If that is the case,  I would expect
> problems like this to arise.  You need to use a different TSession for each
> thread that will be accessing your database.  In that case,  you will
> probably also want a different TDatabase for each thread as well...
> 
> Jerry Bloomfield (TeamB)
> --
> Jerry Bloomfield                                     JersWork@wwa.com
> Proud Member of Borland's TeamB
> "We'll do anything if you don't pay us."


Ok ...
but the way I lay out my thread only one thread do acess the table, is
the mainThread...

And one more question 
Another error that I can't solve is whem that maninThread do acces the
grid that I use to show the Data after a while I get the error that "
Grid Index is out of range"

can you help me on what is causing that error ...
and possible solution...
Tanks for youre help

Rudolph Domigue
boukman@colba.net
Technical Details
Message-ID: <372CF310.98EA45@colba.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <371C8C41.52B2AE05@inetport.com> <372143B5.BAD47B9F@colba.net> <372660c2.5981951@forums.inprise.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd2b,7701f417cfbf6044
X-Google-Attributes: gidfcd2b,public
From: boukman <boukman@colba.net>
Subject: Re: multi-thread
Date: 1999/05/02
Message-ID: <372CF310.98EA45@colba.net>
X-Deja-AN: 473326446
Content-Transfer-Encoding: 7bit
References: <371C8C41.52B2AE05@inetport.com> <372143B5.BAD47B9F@colba.net> <372660c2.5981951@forums.inprise.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: StandAlone
Mime-Version: 1.0
Reply-To: boukman@colba.net
Newsgroups: borland.public.cppbuilder.database.multi-tier