How can I get rid of that error? I know that I have been debugging the COM locally by using start with full compile, but when I try to register the DLL on a different machine, I get that error. Any suggestions?
i'm debugging the same error. i have it registered with MTS and i still get it. this is the code i have in my dll for objcontext...
Implements ObjectControl
Private objContext As ObjectContext
Private Sub ObjectControl_Activate()
' Get a reference to the object's context here,
' so it can be used by any method that may be
' called during this activation of the object.
Set objContext = GetObjectContext()
End Sub
Private Function ObjectControl_CanBePooled() As Boolean
' This object should not be recycled,
' so return false.
ObjectControl_CanBePooled = False
End Function
Private Sub ObjectControl_DeActivate()
' Perform any necessary cleanup here.
Set objContext = Nothing
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.