Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VB6 debugger does not work anymore? (errors 430 and 0x80004002)

24 views
Skip to first unread message

Andrei Suvorov

unread,
Nov 17, 2009, 2:50:50 PM11/17/09
to
Hello!

Could someone help me with problem of running very simple debugging case
with VB6 described below?

My OS: WinXP Proffesional Version 2002 Service Pack 3

I have VB6 ActiveX DLL project "Project1" containing "Class1" with only
"get" property "MyName" returning static data.

With no problem, I instantiate this class and read it's property "MyName"
when it's *not* run under VB6 debugger in any way. E.g. from another VB6
project debugged in different VB6 instance, or from ran or debugged VC++ 6.0
code.

But,
A big problem comes when I try to debug my primitive ActiveX DLL in VB6
using "Wait for component to be created" or "Run executable" options!

On attempt to instantiate Project1.Class1 which is running under debugger
I'm getting errors:
- from caller in another VB6 instance - "430 - Class doesn't support
Automation or does not support expected interface"
- from VC++ caller - CoCreateInstance on Project1.Class1 succeeds, but
further QueryInterface for _Class1 returns 0x80004002 (E_NO_INTERFACE),
, though when Project1.Class1 is *not* under VB6 debugger everything passes
OK.

If I further add Class_Initialize and Class_Terminate handlers to
Project1.Class1, I can see that in VB6 debugging failure cases the class is
instantiated, but gets terminated imediately.

Can someone give me ideas on how to fix that?

Regards,
Andrei Suvorov.


Andrei Suvorov

unread,
Nov 17, 2009, 3:30:04 PM11/17/09
to
Advise from Ralph for setting up the binary compatibility in Project1
correctly (there was Project compatibility before) was helpful and
eliminated all problems.

Regards,
Andrei Suvorov.

"Andrei Suvorov" <andrei...@gmail.com> wrote in message
news:erhRF97Z...@TK2MSFTNGP02.phx.gbl...

0 new messages