URP_Bridge Unexpected connection closure (C#)

The Application Programming Interface and the OASIS Open Document Format

URP_Bridge Unexpected connection closure (C#)

Postby wnick » Tue Apr 29, 2008 9:25 am


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



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

Posts: 1
Joined: Tue Apr 29, 2008 9:13 am

Re: URP_Bridge Unexpected connection closure (C#)

Postby AndrewZ » Sun Jun 01, 2008 6:18 pm

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
User avatar
Posts: 633
Joined: Mon Oct 08, 2007 1:25 am
Location: Colorado, USA

Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 1 guest