Hello,

I' working with VB.Net and C# and try to connect to OOo 2.0 Beta. With the
"old" 1.1.4 it works fine. In my project I have references to the new
uno-cli, but I haven't changed the source code. I use the method as
described in the uno-cli manual for .Net. Here's the code, taken from this
manual:

'Create a service manager of the remote office
Dim ht As Hashtable = New Hashtable()
ht.Add("SYSBINDIR", args(0))
Dim xLocalContext As XComponentContext
xLocalContext = Bootstrap.defaultBootstrap_InitialComponentContext( _
    args(0) & "/uno.ini", ht.GetEnumerator())
        
Dim xURLResolver As XUnoUrlResolver 
xURLResolver = DirectCast(xLocalContext.getServiceManager(). _
    createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", _
            xLocalContext), XUnoUrlResolver)
        
Dim xRemoteContext As XComponentContext 
xRemoteContext = DirectCast(xURLResolver.resolve( _
        
"uno:socket,host=localhost,port=8100;urp;StarOffice.ComponentContext"), _
        XComponentContext)

Dim xRemoteFactory As XMultiServiceFactory 
xRemoteFactory = DirectCast(xRemoteContext.getServiceManager(), _
    XMultiServiceFactory)

At this point I'll get a StackOverflowException now. Is something different
with the new version? 

Second question, is there any possibility to get more info about OOo and
.Net, examples, docs etc.? Until now it's not really fun to program OOo with
.Net because it takes too much time to get information, and that makes
software development a bit to cost intensive.

Thanks in advance

Frank Schmidt

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

Reply via email to