Solved

Visual Basic Error 5003

Posted on 1997-11-20
5
1,524 Views
Last Modified: 2013-11-25
I created a VB5 application that runs fine on one computer, but got (unexpected error 5003) on another as soon as the application was started.  The application does not use any extra components except for msvbvm50.dll.  What can cause this error?
0
Comment
Question by:alanl
  • 3
  • 2
5 Comments
 
LVL 8

Accepted Solution

by:
mrmick earned 200 total points
ID: 1441780
A statement like:

err.Raise 5003,"AnyObject","Outside VB's defined errors, to bad someone isn't giving more info here!"

In the first procedure that's being place the following:
Msgbox "It made it to Sub Main"
At the end of that procedure place one like this:
MsgBox "Exiting Sub Main"

Compile and test.  Sometimes this is the only way.  Using this method, you can narrow it down to the line.  Once you do, comment with the line, then if you can't figure out what's wrong with it, post it in a comment here.

mrmick
0
 

Author Comment

by:alanl
ID: 1441781
The error number was really 50003 not 5003, but I don't think this will help much.
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1441782
I'm assuming you found what was causing it though, right?
0
 

Author Comment

by:alanl
ID: 1441783
Problem: "Run-time error 50003" or "System error &H800040005".
Cause: Computer has an outdated comctl32.ocx file.
Thanks for your help mrmick... I found this info at
http://www.cobb.com/m_ivb/
0
 
LVL 8

Expert Comment

by:mrmick
ID: 1441784
You're welcome.  Thank you.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

762 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

20 Experts available now in Live!

Get 1:1 Help Now