Subject RE: [IBO] IBObjects and Threads
Author Jason Wharton
Fabiano,

> I'm trying to use a TIBOQuery inside a thread and i'm getting
> some errors.
>
> I'm creating a test case, but before describe my problem deeply, is
> there some document or advice about using datasets inside threads?
>
> I'm trying to use the default application connection (a TIBODatabase)
> inside the thread. In the execute method i create a new
> TIB_Transaction and some TIBOQuery to do selects and updates, but
> while the thread is working, if i try to create and open a new
> TIBOQuery in the main application which access one of the tables
> involved in the thread, i get an 'error reading data from the
> connection'.

Each thread should have its own TIB_Session and TIBODatabase component.

Jason Wharton