Hi
I have a problem when I try to close a large opened document after long processing (Text iteration in the document)
May be do you know what is problem with dispose XComponent. I suspect that for large files I should wait some time before disposing XComponent
but I don't know how to proceed it Sad
this is my C# cod :
unoidl.com.sun.star.uno.XComponentContext localContext = uno.util.Bootstrap.bootstrap();
unoidl.com.sun.star.lang.XMultiServiceFactory multiServiceFactory = (unoidl.com.sun.star.lang.XMultiServiceFactory)localContext.getServiceManager();
XComponentLoader componentLoader = (XComponentLoader)multiServiceFactory.createInstance("com.sun.star.frame.Desktop");
xComponent = componentLoader.loadComponentFromURL(file, "_blank", 0, new unoidl.com.sun.star.beans.PropertyValue[0]);
//there is some text iteration cod
try
{
xComponent.dispose();//here a exception is generated Sad but for small file it works ok
xComponent = null;
}
catch (System.Exception ex)
{
}
here is a description of the exception
"unoidl.com.sun.star.lang.DisposedException: URP_Bridge : disposed
(tid=3304) Unexpected connection closure
Server stack trace: \r\n\r\n\r\nException rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at unoidl.com.sun.star.lang.XComponent.dispose()"
Best regards
Nick
URP_Bridge Unexpected connection closure (C#)
Re: URP_Bridge Unexpected connection closure (C#)
You will probably find this question asked several times on this forum, OOoForum.org, and the issue tracker qa.openoffice.org . Can you ignore it? In my PyUNO application, I just ignore it. Otherwise, search these resources for a solution.
* Did you solve your problem? Do others a favor: Post the solution
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP
* Visit OpenOffice.org Ninja (blog) and OpenOffice.org Ninja Wiki for news, previews, troubleshooting, etc.
OOo 3.0.X on Fedora 9 + XP