Subject | Re: [IBO] Threads freezing |
---|---|
Author | Jason Wharton |
Post date | 2001-05-31T10:05:14Z |
I hear that threads only work now using a remote interface. Thus, do not
connect to a database using the local connect protocol and use threads.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
connect to a database using the local connect protocol and use threads.
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com
----- Original Message -----
From: <apon@...>
To: <IBObjects@yahoogroups.com>
Sent: Wednesday, May 30, 2001 6:57 PM
Subject: [IBO] Threads freezing
> Hi, All!
>
> I have two threads in my Database Application (C++ Builder 5.0, IBO
> 3.6, Interbase 6.01). The threads freez if frequently read to the
> same record from the table (frequency 100 msec).
>
> Is it possible simultaneously make in different threads?
>
> void __ fastcall Ttest:: Execute ()
> {
> TIB_Connection* connect = new TIB_Connection (NULL);
> connect- > Connected = true;
> TIB_Query* query = new TIB_Query (NULL);
>
> while (! Terminated)
> {
> flag = WaitForSingleObject (Event, TimeOut);
> ...
> static AnsiString sSQL = " SELECT... ";
> query- > SQL- > Clear ();
> query- > SQL- > Add (sSQL);
> query- > Execute();
> query- > First ();
> }
> }
>
>
> Please help.
>
> Regards, Aleksander Ponomarev.
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>