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/
