mjohnson3091
Freshman
As this is my first post I'd like to say Hi to everyone first.
I have been playing at migrating or current multi-tier VB6 program to VB.Net. I used the migration wizard, which did a reasonable job, but also left me with some problems. Our VB6 application top level would spawn off clients which were ActiveX exe's. Upon migration the wizard suggested that the program should be converted to a DLL. I managed to get the program working with a single client, but the problem is, that when the object is created, it doesn't appear with it's own process ID and therefore it is handled differently. When I try to set the object to Nothing this works fine, but trying to instantiate it again gives me "Error 387 - Set not permitted". Is this something to do with it being a DLL and not an Active EXE?
I'm using the following code - this is cut down, but should give the idea
Any suggestions would be really appreciated.
Thanks in advance
Mark J.
I have been playing at migrating or current multi-tier VB6 program to VB.Net. I used the migration wizard, which did a reasonable job, but also left me with some problems. Our VB6 application top level would spawn off clients which were ActiveX exe's. Upon migration the wizard suggested that the program should be converted to a DLL. I managed to get the program working with a single client, but the problem is, that when the object is created, it doesn't appear with it's own process ID and therefore it is handled differently. When I try to set the object to Nothing this works fine, but trying to instantiate it again gives me "Error 387 - Set not permitted". Is this something to do with it being a DLL and not an Active EXE?
I'm using the following code - this is cut down, but should give the idea
Code:
Private WithEvents objSession1 As BECSessionManager.RFSession
'...Within the code (tcpserver Accept)
objSession1 = Nothing
objSession1 = New BECSessionManager.RFSession
' ...within the code (tcpserver Disconnect)
objsession1=Nothing
Any suggestions would be really appreciated.
Thanks in advance
Mark J.