Subject | RE: [IBO] IBObjects and Threads |
---|---|
Author | Jason Wharton |
Post date | 2007-11-07T19:08:33Z |
Fabiano,
Jason Wharton
> I'm trying to use a TIBOQuery inside a thread and i'm gettingEach thread should have its own TIB_Session and TIBODatabase component.
> 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'.
Jason Wharton