VB5 Error 50003 - Unknown Error 
Author Message
 VB5 Error 50003 - Unknown Error

I have a VB5 project with MDI forms. I am developing on NT 4.0W SP3. I had
the project running on Win95 and NT4.0 workstations. I spent several weeks
making modifications. I completed and it works fine only on my workstation.
When the other workstations loaded the new application, they click on a
toolbar button to open a customer profile form, it gives the message 50003
- Unknown Error. I have attempted some tracing, and it occurs after the
Load command in the main form, but before the load event in the sub form.

Does anyone have a suggestion about where to proceed?

Thanks.



Sat, 21 Apr 2001 03:00:00 GMT  
 VB5 Error 50003 - Unknown Error
This is a known bug in VB5.

SYMPTOMS

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

   "Unexpected Error"

CAUSE
Visual Basic 5.0 does not support GIFs that include images that are
contained within Application Blocks. The Image Object must be included in
the GIF as a separate Image Object.

RESOLUTION
Use one of the following methods to work around this problem:

Use Error Handling to trap for and handle appropriately error 50003
(unexpected error) in your Visual Basic application. For more information,
search for the Help topic "Designing an Error Handler" in the Microsoft
Visual Basic 6.0 Online Documentation.
Ensure that images contained within a GIF file are included specifically as
Image Objects and not contained within Application Blocks.

What all this basically means is don't load a picture with the loadpicture
method; instead, assign the graphic at design time.

Quote:

>I have a VB5 project with MDI forms. I am developing on NT 4.0W SP3. I had
>the project running on Win95 and NT4.0 workstations. I spent several weeks
>making modifications. I completed and it works fine only on my workstation.
>When the other workstations loaded the new application, they click on a
>toolbar button to open a customer profile form, it gives the message 50003
>- Unknown Error. I have attempted some tracing, and it occurs after the
>Load command in the main form, but before the load event in the sub form.

>Does anyone have a suggestion about where to proceed?

>Thanks.



Sat, 21 Apr 2001 03:00:00 GMT  
 VB5 Error 50003 - Unknown Error
The 50003 error is a real pip, ain't it?  It has several possible causes.
The only documented one I know about has something to do with gif files.
More often, it's caused by having mismatched/out-of-date system files.

The OLE*.DLL files are the first suspects.  Check the versions on the bad
machines vs. the good ones.  Try downloading OADIST.EXE from the MS
website: it doesn't install the _latest_ versions, but at least it's a
matched set!

Also watch out for Comcat.dll version 5.0.  This seems to break many
systems.  Going back to v4.71 generally seems to make things OK again.

VB5 ships with DAO350.DLL version 3.50.3602.0 which is used for some
database access.

If you install VB6 or Visual Interdev 6 on your machine, you will be
upgraded to version 3.51.1608.0.   This version requires EXPSRV.DLL which
the earlier version does not.

If you use the VB5 application wizard it will distribute the 3.51 version
but NOT the EXPSRV.DLL file.  When installed on another machine without VB6
or VI6, the DAO350.DLL is overwritten with version 3.51 but they do not get
the EXPSRV.DLL.  Now they may get error 50003 for this application and the
same or other errors for many existing applications using DAO350.DLL.

Good luck: this one can be tough!

Jim Deutch
MS Dev MVP



Quote:
> I have a VB5 project with MDI forms. I am developing on NT 4.0W SP3. I
had
> the project running on Win95 and NT4.0 workstations. I spent several
weeks
> making modifications. I completed and it works fine only on my
workstation.
> When the other workstations loaded the new application, they click on a
> toolbar button to open a customer profile form, it gives the message
50003
> - Unknown Error. I have attempted some tracing, and it occurs after the
> Load command in the main form, but before the load event in the sub form.

> Does anyone have a suggestion about where to proceed?

> Thanks.



Sat, 21 Apr 2001 03:00:00 GMT  
 VB5 Error 50003 - Unknown Error
Thanks for the responses.

It appears in this case that the use of the load picture was doing it. When
I put them in at design time, the problem went away.

Thanks again



Quote:
> I have a VB5 project with MDI forms. I am developing on NT 4.0W SP3. I
had
> the project running on Win95 and NT4.0 workstations. I spent several
weeks
> making modifications. I completed and it works fine only on my
workstation.
> When the other workstations loaded the new application, they click on a
> toolbar button to open a customer profile form, it gives the message
50003
> - Unknown Error. I have attempted some tracing, and it occurs after the
> Load command in the main form, but before the load event in the sub form.

> Does anyone have a suggestion about where to proceed?

> Thanks.



Sun, 22 Apr 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. VB5 and error 50003

2. VB5/Win98 problem run time error 50003

3. Error 50003 in VB5 !!

4. Unexpected error (Code 50003) in VB5.

5. VB5 50003 Unexpected Error

6. Help with vb5 50003 error

7. HELP - Error 50003 - VB5, Win 95, Win 98, Win NT

8. VB5 50003 Unexpected Error

9. Error 50003 in VB5 accessing CR5

10. HELP - Error 50003 - VB5, Win 95, Win 98, Win NT

11. HELP - Error 50003 - VB5, Win 95, Win 98, Win NT

12. VB5 50003 Unexpected Error

 

 
Powered by phpBB® Forum Software