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

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
LVL 32
DrDamnitAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
justchat_1Connect With a Mentor Commented:
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
 
justchat_1Commented:
What does the code look like for Class_Initialize in the dll?
0
 
EDDYKTCommented:
make sure your dll's and ocx is binary compability.

from project properties->component tab
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
justchat_1Commented:
and dont jump out the window lol...
0
 
DrDamnitAuthor Commented:
There is nothing in the Class_Initialize.

Will try binary compatibility.
0
 
DrDamnitAuthor Commented:
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
 
clarkscottCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.