VB6 IDE crashes when reference local DLL that uses a remote MTS DLL 
Author Message
 VB6 IDE crashes when reference local DLL that uses a remote MTS DLL

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



Sun, 14 Jul 2002 03:00:00 GMT  
 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




Tue, 16 Jul 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. 1 of 2 Apps crashes when accessing remote MTS DLL

2. BUG: VB.NET compiler crashes itself or the IDE, when referencing C# DLL

3. VB6 EXE crash, with IDE OK. Event sink in VM60.dll

4. XMLDOM-using DLL only works when referenced in IDE

5. VB6 crashes when using user created ocx and dll

6. VB6 crashes when using user created ocx and dll

7. IDE Crashes wth page fault in jscript.dll

8. VB6 IDE Crashes When Using Internet Functions?

9. IDE crash with Kernel32.dll Error

10. DLL crashes VB IDE

11. VB IDE crashes when I call a DLL

12. Erase a dll reference by MTS

 

 
Powered by phpBB® Forum Software