Results 1 to 6 of 6

Thread: Error Codes

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2007
    Location
    Riverton, WY
    Posts
    36

    Error Codes

    Is there anywhere one can go to find a list of all the error codes and what they signify?

    I think it'd be very useful for coding in error handling.

  2. #2
    Learning .Net danasegarane's Avatar
    Join Date
    Aug 2004
    Location
    VBForums
    Posts
    5,853

    Re: Error Codes

    Please mark you thread resolved using the Thread Tools as shown

  3. #3
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Re: Error Codes

    Just to clarify, do you mean normal errors or automation errors?
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

  4. #4

    Thread Starter
    Member
    Join Date
    Jan 2007
    Location
    Riverton, WY
    Posts
    36

    Re: Error Codes

    Err, no idea. What's the difference?

    I was thinking of... like... when trying to open a file that's not there, it throws you an error? You have to catch it and then do something with it, right?

    But what if there's an error that pops up when trying to do something WinSock, but you don't know what's wrong? Wouldn't the error code help? And being able to catch that error code could allow you to work around it.

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Error Codes

    Quote Originally Posted by CyberInfantry
    But what if there's an error that pops up when trying to do something WinSock, but you don't know what's wrong? Wouldn't the error code help? And being able to catch that error code could allow you to work around it.
    If you get a coding error it should pop up in a message box with a error number and error description.

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Error Codes

    danasegarane, your link is not relevant to VB.

    The list of errors can be found in VB's help, under the title of "Trappable Errors in Visual Basic" (online version), however unless you know exactly what the issue is (and how to correct it in that situation) simply showing the message is the best thing you can do.

    For more info (including several good MS articles), see this FAQ thread.

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