https://bugs.freedesktop.org/show_bug.cgi?id=72156

          Priority: medium
            Bug ID: 72156
          Assignee: [email protected]
           Summary: insertByName locks inserted file
          Severity: normal
    Classification: Unclassified
                OS: Windows (All)
          Reporter: [email protected]
          Hardware: x86 (IA32)
            Status: UNCONFIRMED
           Version: 4.1.3.2 release
         Component: BASIC
           Product: LibreOffice

Created attachment 89998
  --> https://bugs.freedesktop.org/attachment.cgi?id=89998&action=edit
Sample file with one image and short macro.

Suppose you have an Impress presentation and want to export the images and
import then again into a writer document.
When your macro first exports the images and then calls
bitmaps.insertByName("myTempName", fileurl) the inserted file remains locked on
Windows 7, so it cannot be removed (for cleanup) by the macro via
kill(filename). 
I attach a sample presentation with one image. The macro may be started via
Tools -> Macro -> Run, ExportTest.odp->Standard->Module1. It first exports the
image into your "tmp"-directory, creates a new writer document, and inserts the
exported image into that document. After the image was imported, you may switch
to the Windows explorer and try to remove the image file by hand, and Windows
tells you (translated, so the real english text may differ) "The file cannot be
deleted because it is still in use by LibreOffice". 
The file remains locked until Libreoffice, including the QuickStart menu entry,
is closed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to