[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 222
  • Last Modified:

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
0
DrDamnit
Asked:
DrDamnit
1 Solution
 
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
 
justchat_1Commented:
and dont jump out the window lol...
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
justchat_1Commented:
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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now