CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2001
    Posts
    11

    Runtime error 50003

    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.


  2. #2
    Join Date
    Aug 2000
    Location
    Ottawa, Canada
    Posts
    469

    Re: Runtime error 50003

    Are you using VB 5?
    Do those forms contain images?


  3. #3
    Join Date
    Jan 2001
    Posts
    11

    Re: Runtime error 50003

    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.


  4. #4
    Join Date
    Jan 2001
    Posts
    11

    Precisions Runtime error 50003

    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


  5. #5
    Join Date
    Aug 2000
    Location
    Ottawa, Canada
    Posts
    469

    Re: Runtime error 50003

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured