On Thu, 27 Sep 2001, Matthew Jensen wrote:
> > where is the reference to it? After seeing the initial email I looked
> > through what I think is the right bit of code, and it seems to make
> > perfect sense that it was garbage collected. For my use I think I'll be
> > patching it (and post it if ppl want) unless someone can proove that the
> > initial email was not correct.
>
> Well in my code, the iterator i wrote kept a reference to the
> underlying result set.
the problem is not having a reference to the result set, but having a
reference to the query object. the structure, afaics is that the OQLQuery
object has a reference to its result set, but not vice versa. when
OQLQuery goes out of scope, it is garbage collected, and in its finalize
method calls resultSet.close() - so you still have a reference to the
result set, but its closed....
I'm happy to be corrected, but thats my reading of it.
cheers
dim
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev