Article View: borland.public.cppbuilder.database.multi-tier
Article #1778Re: multi-thread
From: Jerry Bloomfield (TeamB)
Date: Sun, 25 Apr 1999 00:00
Date: Sun, 25 Apr 1999 00:00
17 lines
1417 bytes
1417 bytes
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."
Technical Details
Message-ID:
<372660c2.5981951@forums.inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<371C8C41.52B2AE05@inetport.com> <372143B5.BAD47B9F@colba.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fcd2b,7701f417cfbf6044 X-Google-Attributes: gidfcd2b,public From: JersWork@wwa.com (Jerry Bloomfield (TeamB)) Subject: Re: multi-thread Date: 1999/04/25 Message-ID: <372660c2.5981951@forums.inprise.com> X-Deja-AN: 470525649 Content-Transfer-Encoding: 7bit References: <371C8C41.52B2AE05@inetport.com> <372143B5.BAD47B9F@colba.net> Content-Type: text/plain; charset=us-ascii Organization: LSVFA - Latest Software Version Freaks Anonomous Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.database.multi-tier