
VB6 IDE crashes when reference local DLL that uses a remote MTS DLL
You can try move the remote DLL to the local machine. You have to add a
wrapper function like this to instantiate the object in your DLL.
Private Function CreateInstance(ProgID As String) As Object
dim m_objcontext As MTxAS.ObjectContext
Set m_objcontext = GetObjectContext
If Not m_objcontext Is Nothing Then
Set CreateInstance = m_objcontext.CreateInstance(ProgID)
Else
Set CreateInstance = CreateObject(ProgID)
End If
End Function
Quote:
> I have an application that when debugging crashes the VB6 IDE when it
calls
> a local ActiveX DLL that is attempting to invoke a remote MTS ActiveX DLL.
> If I run the compiled version of my program, everything works fine. So if
I
> want to debug the main app, I have to load the local DLL and remote MTS
DLL
> projects in the active VB project group. Does anyone have any suggestions
> on how to get around this?
> Mike Rohan