Solved

ActiveX can't create object - which object?

Posted on 2008-06-19
19
417 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 92

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 92

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
Independent Software Vendors: 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 92

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 500 total points
ID: 21826517
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

734 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