Peter-
I banged my head against a similar problem -- it wasn't UniObjects, but involved third-party DLL's. In short, everything worked fine until I tried to use it in the context of a web service. I don't know why or what the workaround is, but the problem is that ASP.NET doesn't play well with old-school elements like this. I'll bet your code would work just fine if it was all compiled in .Net -- even though it should work as is.

Sorry I don't have a better answer.

Best,
David Beahm


U2 Users Digest wrote:
Date: Mon, 5 Sep 2005 16:25:27 +0100 From: "Welsh, Peter" <[EMAIL PROTECTED]>
Subject: [U2] Problems with UniObjects and .NET Service

This is a bit of a strange one and I apologise for such a convoluted bit of
programming.

I am writing a Windows Service in VB.NET.
I know the best way to get at my data is through UniObjects.
I am using UniData 5.1 (on DGUX).
I have written a small DLL in VB6 that uses UniObjects to do the data
manipulation I need.
The method is passed the connection parameters and various properties are
set to string values looked up from our UniData server.

It works like a dream when calling the DLL from within a VB6 form.
It works like a dream when calling the DLL from a VB.NET form.
It freezes up when calling the DLL from within a VB.NET Service.

The code:
Dim udMain As UDTFakeObject.UniDataSessionClass
runs quite happily but

udMain = New UDTFakeObjector.UniDataSessionClass
causes it to freeze. No errors raised. Not particularly high processor
utilisation or anything out of the ordinary. It just does not continue on to
execution of the next line.

If I copy and paste the same code into a Forms Application it works quite
happily.

The Initialise event on the UDTFakeObjector.UniDataSessionClass simply
creates an instance of an Uvoaif

I have tried having the service run as LocalSystem, Local Administrator, and
as myself but changing user makes no difference.

I am getting really frustrated here so any ideas that anyone may have will
be very gratefully received.

Many thanks in advance,

Peter Welsh
Senior IT Development Officer
NHS Argyll & Clyde
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to