Subject | Re: object in use error |
---|---|
Author | the_k_dubb |
Post date | 2002-01-23T17:02:40Z |
--- In ib-support@y..., "Claudio Valderrama C." <cvalde@u...> wrote:
have only a single process attaching to the db, and only a single
connection from that process. I used to use multiple connections, and
I thought that was the reason for the error, but now that I have
switched to a single connection it still exhibits the same problems.
> ""the_k_dubb"" <kevin@w...> wrote in messagecannot. I
> news:a2k9f3+pf1k@e...
> > I have tried everything to rid myself of this error, and I
> > am trying to create tables from my application as it needs them.What
> > I am experiencing is that after a table has been used in a query,the db is
> > creating foreign keys, or dropping foreign keys to that table is
> > unreliable at best.
>
> > I have even gone so far as to disconnect and reconnect
> > my connection before trying to alter the keys. I still receive the
> > object in use errors, are there any other suggestions?
>
> This is not the point. From the engine pov's, what counts is that
> detached and unloaded. This only can be achieved if NO connectionis held to
> the db, whether yours or from another user. All connections shouldbe
> terminated. Most GUI programs create more than one connection towork so
> they trick the user thinking that there're phantom connections.I didn't make my situation clear enough, I am using the C API and I
>
have only a single process attaching to the db, and only a single
connection from that process. I used to use multiple connections, and
I thought that was the reason for the error, but now that I have
switched to a single connection it still exhibits the same problems.