Solved

ActiveX can't create object - which object?

Posted on 2008-06-19
19
399 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
  • 7
  • 7
  • 3
  • +2
19 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
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
Comment Utility
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 92

Expert Comment

by:Patrick Matthews
Comment Utility
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
 

Author Comment

by:pjsulin
Comment Utility
loading dll's is done before code is executed, so that does not help.
0
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
But it's a runtime error
0
 

Author Comment

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

Expert Comment

by:anmalaver
Comment Utility
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
Comment Utility
I have tried Dependency Walker and it does not tell me which dll failed to load.
0
 
LVL 4

Expert Comment

by:anmalaver
Comment Utility
Did you use it on the other PC?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 4

Expert Comment

by:anmalaver
Comment Utility
What version of VB are you using?
0
 

Author Comment

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

Expert Comment

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

Author Comment

by:pjsulin
Comment Utility
VB6 - Version 8176
0
 
LVL 4

Expert Comment

by:anmalaver
Comment Utility
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
Comment Utility
4) Did you register your control? How did you do it?
0
 

Author Comment

by:pjsulin
Comment Utility
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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

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…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

743 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now