Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ActiveX can't create object - which object?

Posted on 2008-06-19
19
Medium Priority
?
422 Views
Last Modified: 2013-11-18
Runtime error 429 - Activex can't create object

Why does this error not display which object, either by name or guid?  How can I make it display some useful error information?

0
Comment
Question by:pjsulin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 7
  • 3
  • +2
19 Comments
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 21825624
Hello pjsulin,

If you run it from the VBIDE, does it run successfully?  If not, what line does the debugger jump to?

Does the exe fail on all computers?  For all users?

Regards,

Patrick
0
 

Author Comment

by:pjsulin
ID: 21825696
It runs fine from the ide, the problem is installing on one computer.  All the references should be good, I'm using Visual Build Pro to ensure that all dll's are built together and the install is done through a batch file.  My question is more in regards to troubleshooting this problem in general than this problem in particular.  I know that a dll is somehow out of synch, that is why I use Visual Build Pro and a batch file to unregister, delete, copy and re-register all the dll's.
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 21825735
Try inserting a ton of MsgBox's in the code to indicate where you are in the program, or better yet
trap errors with an error handler to get a better fix on where it's breaking down.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:pjsulin
ID: 21825775
loading dll's is done before code is executed, so that does not help.
0
 
LVL 93

Expert Comment

by:Patrick Matthews
ID: 21825794
But it's a runtime error
0
 

Author Comment

by:pjsulin
ID: 21825821
yes it is a runtime error, but how do you write code that runs before dll loading?
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21825872
Hi

Maybe it can be useful:
Look for Dependency walker (Depends.exe) on your VStudio folder and execute it on the PC you're using the control. It will tell you if any dll or reference is missing.

Try it, it is very useful.
0
 

Author Comment

by:pjsulin
ID: 21825911
I have tried Dependency Walker and it does not tell me which dll failed to load.
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21825929
Did you use it on the other PC?
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21825934
What version of VB are you using?
0
 

Author Comment

by:pjsulin
ID: 21825944
I have it installed on every machine. What "other" machine are you referring to?
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21825952
The machine that is not working on...
What version of VB IDE are you using?
0
 

Author Comment

by:pjsulin
ID: 21825970
VB6 - Version 8176
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21826060
1)Look for the .Net framework on the other machines, it's possible that it is in conflict with your dlls, or that install overwrites your DLLs...

2)You should check the version of the DLLs you see in Dependency walker in the other machines.

3)Try creating an installer from VB6 to overwrite and register the DLLs that you need
0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21826071
4) Did you register your control? How did you do it?
0
 

Author Comment

by:pjsulin
ID: 21826187
Let me start this over, after addressing the last comments and correcting one of my own.

anmalaver, please read the previous comments before posting.  I use a batch file which, unregisters, deletes, copies the new dlls (every one of them), and then registers them.  So I know that they are all the same and registered.  This I stated in my second posting.

I stated earlier that error handling code would not work because the error is thrown when the dll is loaded.  This is not true, the error happens when the object is created.  

What I'm asking for is a way to make the vb error more informative.  All of my newer code has extensive error handling, but the older code I adopted does not.  I do not want to go back and add error handling code to the 15 vb libraries that my systems use.

I will restate the original question:

Why does this error not display which object, either by name or guid?  How can I make it display some useful error information?



0
 
LVL 4

Expert Comment

by:anmalaver
ID: 21826224
I think you should see the entries in the registry for your DLLs to ensure that there is only one DLL registered.

See this, if you haven't...
http://www.vbaccelerator.com/insprob.htm

Bye
0
 
LVL 2

Expert Comment

by:team2005
ID: 21826241
Hi

This code vil give you more information on the error

First you must have this line of code, at the top of the sub or function.

On error goto errormess

---

--

errormess :
      Msgbox "Error : " & Error(Err.description)

This wil give you a complete description on a error


0
 
LVL 7

Accepted Solution

by:
TRobinJames earned 2000 total points
ID: 21826517
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question