Subject Re: Hanging by a Thread
Author inoffensive_2006
--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...> wrote:
>
> At 07:11 PM 30/09/2007, Kjell Rilbe wrote:
>
> > > You're confused apparently because you think "the data from the
> > > select" has nothing to do with the connection.
> >
> >I think you're both misunderstanding each other, but I may be wrong.
> >
> >If I'm not completely misundestanding things, this is how it is:
> >
> >1. Each thread has to use its own connection(s) and any
datasets/cursors
> >that are opened withint a certain thread via one of that thread's
> >connections can be accessed by that thread only.
> >
> >2. If that thread extracts data from the datatset and writes it
into any
> >kind of application specific data structure, that has nothing to do
with
> >Firebird, that extracted data can be accessed by any thread, at
least if
> >those data structures are made thread safe.
> >
> >Please correct me if I'm wrong.
>
> Kjell, that is correct. Data that is copied out of its data access
> context is totally dissociated from the database, it is nothing but a
> copy of a snapshot.

Thanks again Helen, Adam and Kjell:

Kjell, I believe you are correct. The last exchange was
due to terminology, rather than substance. But I couldn't
have figured this out without help, and I appreciate the
effort of those who pitched in.

Larry