Frank Schönheit - Sun Microsystems Germany wrote:

Hi Andrew,

You got me there.... I have not tried this on my Linux computer, only on a Windows XP Professional computer. I have noticed that on Windows, if a Write document is open, I can not attach it to email. It is probably the same problem. I can probably disable this behavior on Windows entirely. I wonder why Bsa documents are held open after closing on Windows, but not on Linux. It is probably related to the issue of a Calc datasource not refreshing without closing OOo and restarting. I am just guessing, however....

Windows has real file locking, while Linux hasn't (no OS wars, please).
On windows, if some process opens some file for writing, this is usually
(not only by OOo) done in a way that other processes cannot write to it
at the same time - which includes deleting it. Such file locks are
usually not used on unix (and, as I seem to remember, conceptually
broken in some way, as some low-level Unix hacker once told me).

OOo locks any document file (included .odb's) as long as the document is
loaded. So, in your scenario, it seems the DB is still opened in OOo in
some way - which can only be told if you describe your scenario in more
detail (a simple open/close/delete in the UI does work for me).

Ciao
Frank
Thanks Frank,

I will perform some more complete checks and come up with a minimal set of steps to reproduce the problem. I am using macros, which means that I am using a database context to get the database. I then obtain a connection. I close the connection, but I do not dispose the retreived database. I think that I did that in a prerelease version and then I could no longer obtain the database without restarting OOo :-) I will verify the details, I need to go somewhere else to have access to a Windows computer for testing.

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


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

Reply via email to