• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1810
  • Last Modified:

Visual Basic Error 5003

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
alanl
Asked:
alanl
  • 3
  • 2
1 Solution
 
mrmickCommented:
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
 
alanlAuthor Commented:
The error number was really 50003 not 5003, but I don't think this will help much.
0
 
mrmickCommented:
I'm assuming you found what was causing it though, right?
0
 
alanlAuthor Commented:
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
 
mrmickCommented:
You're welcome.  Thank you.
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

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