Solved

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

Posted on 2006-07-13
7
200 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
ID: 17104696
What does the code look like for Class_Initialize in the dll?
0
 
LVL 26

Expert Comment

by:EDDYKT
ID: 17105255
make sure your dll's and ocx is binary compability.

from project properties->component tab
0
 
LVL 9

Expert Comment

by:justchat_1
ID: 17105316
and dont jump out the window lol...
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 32

Author Comment

by:DrDamnit
ID: 17105832
There is nothing in the Class_Initialize.

Will try binary compatibility.
0
 
LVL 32

Author Comment

by:DrDamnit
ID: 17105837
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
ID: 17107357
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
ID: 17108434
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
VB 6.0 printer how to align 6 67
Computer crashes, following error message in event manager 5 238
Excel - Save a copy of work book 13 89
VB6 ListBox Question 4 48
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

839 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