Click to See Complete Forum and Search --> : Runtime error 50003


Tatanka
August 10th, 2001, 09:35 AM
Hi everybody

I constructs a .exe with several forms.
when i want to call some of the forms, a 'Runtime error 50003 Unexpected error' is returns.
for some other form, it works perfectly.
Why I have this error message for only some of the forms? What's the solution?

Thanks in advance.

Andrew R.
August 10th, 2001, 11:33 AM
Are you using VB 5?
Do those forms contain images?

Tatanka
August 10th, 2001, 06:06 PM
I use VB 5.0
I do not include image in these problematic forms. However, I have an image in the main form which works.

Tatanka
August 11th, 2001, 08:15 AM
it seems that error is related to updown controls: such control are present in forms that do not work and absent in those work.

program runs perfectly when i run it in VB but do not work when i launch exe

Andrew R.
August 13th, 2001, 05:34 PM
I've asked that because simple search in the MSDN by "50003" gave me this:

BUG: "Unexpected error" When Loading a GIF

SYMPTOMS
Loading a GIF file that does not specifically contain an Image Object into Visual Basic (via the PictureBox control for example), generates the run- time error 50003:


"Unexpected Error"


RESOLUTION
There are two main workarounds currently available:

Trap for and handle appropriately error 50003 (Unexpected error) in your Visual Basic application.
-or-

Ensure that images contained within a GIF file are included specifically as Image Objects and not contained within Application Blocks.