[Libreoffice] LoadComponentFromUrl misuse lead to crash
Laurent Godard
lgodard.libre at laposte.net
Tue Nov 29 04:58:38 PST 2011
Hi caolan
> Can you attach a demo ?
>
here is a macro showing the problem
just change the myFile.ods so that it points to a file of your filestem
Laurent
Sub testLoad
url = "/home/lgodard/myFile.ods"
url1 = convertToUrl(url) 'starts with file://
aDoc1 = StarDesktop.loadComponentFromUrl(url1, "_blank", 0, array() )
print "aDoc1 is loaded"
' now crash
aDoc2 = StarDesktop.loadComponentFromUrl(url, "_blank", 0, array() )
End Sub
More information about the LibreOffice
mailing list