2005/5/12, "Frank Sch�nheit - Sun Microsystems,  Inc."
<[EMAIL PROTECTED]>:
>
> Okay, then open the .odb file, and do View|Refresh Tables.

How can I script this from a Java or Basic program that knows only the
name under which the database is registered?
 
> > OO doesn't seem to close the database connection
> > until I close the last document connected with it. Or rather it
> > doesn't do so reliably. Sometimes deactivating View -> Data  Sources
> > and then activating it again refreshes the list, sometimes it doesn't.
> > So far I've been unable to see a pattern.
> 
> Would be interesting to know in detail what you're doing, to see which
> part of the application leaks. Normally, if you in any document stop
> working with a DB, the respective connection and resources should be
> released. It's a bug if not.

Well, if keeping the  View->Data Sources  window open counts as
"working with a DB", then it's not a leak. It seems that if I close
the Data Sources view for all open documents and then re-open it, the
connection is re-established and the new tables appear. The problem is
that the program I'm writing needs to be able to reliably add new
CSV-files regardless of whether a user has the Data Sources view open
in some document or not.

Matthias Benkmann

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to