Solved

Application-defined or object-defined error - I will jump out the window.

Posted on 2006-07-13
7
195 Views
Last Modified: 2010-04-30
Please save me from jumping out the window!

I have a Project Group that has 2 dlls, 1 ocx, and 1 exe.

Ctrl-F5 runs the group just fine. No problems.

When I compile, and install on my own machine (the same as the developing machine) or a testing machine I get two errors:

1. Type Mismatch

followed immediately by:

2. Application-defined or object-defined error Error 599999 (give or take a '9')

So, I compiled the whole group, and just opened up the exe project, and did a Ctlr-F5. Turns out the problem has to do with one of the Dlls (wme.dll) on this line of modMain.bas:

set x = new wme.engine '(x is defined as public in the module)

Question: How do I debug that Dll? In the group and on its own it works just fine
0
Comment
Question by:DrDamnit
7 Comments
 
LVL 9

Expert Comment

by:justchat_1
Comment Utility
What does the code look like for Class_Initialize in the dll?
0
 
LVL 26

Expert Comment

by:EDDYKT
Comment Utility
make sure your dll's and ocx is binary compability.

from project properties->component tab
0
 
LVL 9

Expert Comment

by:justchat_1
Comment Utility
and dont jump out the window lol...
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 32

Author Comment

by:DrDamnit
Comment Utility
There is nothing in the Class_Initialize.

Will try binary compatibility.
0
 
LVL 32

Author Comment

by:DrDamnit
Comment Utility
I am also compiling from a network drive. Project is located at \\server\user\vbcode\category\name. Could that have something to do with it?
0
 
LVL 20

Expert Comment

by:clarkscott
Comment Utility
What is the X type of variable?
Type mismatch usually refers to a confusion in variable types (passing an integer when expection a single, etc.)

If using VB.NET - doesn't like VARIANTS.

Scott C
0
 
LVL 9

Accepted Solution

by:
justchat_1 earned 500 total points
Comment Utility
If there is no class initialize in the dll then it has to be an error in your declaration (if it is correctly compiled &  registered)...
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…

763 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

8 Experts available now in Live!

Get 1:1 Help Now