Results 1 to 18 of 18

Thread: Err.Raise 40040 Bug from MS

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Err.Raise 40040 Bug from MS

    BUG: Err.Raise 40040 Stores the Err.Number as 440

    SYMPTOMS
    When the statement Err.Raise 40040 is executed, the value of Err.Number is set to 440.

    RESOLUTION
    Do not use the user defined error 40040.

    STATUS
    Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

    MORE INFORMATION
    If you raise the error code 40040 (=&H9C68) using the Err.Raise method, Visual Basic sets the value of Err.Number to 440. The Err.Description and other properties of the Err object are set correctly.

    Steps to Reproduce Behavior
    1. Create a Visual Basic Standard EXE project. Form1 is created by default.
    2. Paste the following code in the General Declarations section of Form1:
    VB Code:
    1. Private Sub Form_Load()
    2.    On Error Resume Next
    3.    Err.Raise 40040
    4.    MsgBox Err.Number & ": " & Err.Description ' will display 440
    5.    Err.Clear ' Clear the error for the next Raise method
    6.    Err.Raise 440
    7.    MsgBox Err.Number & ": " & Err.Description
    8. End Sub
    3. Run the program. A message box with the error number and description raised for 40040 will be displayed.
    4. Click OK and a message box with the error number and description raised for 440 will be displayed.

    APPLIES TO
    • Microsoft Visual Basic 5.0 Learning Edition
    • Microsoft Visual Basic 6.0 Learning Edition
    • Microsoft Visual Basic 5.0 Professional Edition
    • Microsoft Visual Basic 6.0 Professional Edition
    • Microsoft Visual Basic 5.0 Enterprise Edition
    • Microsoft Visual Basic 6.0 Enterprise Edition

    Keywords: kbbug KB216547

    URL: http://support.microsoft.com/default...b;en-us;216547

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: Err.Raise 40040 Bug from MS

    Thanks,


    Can you rub my back now?

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Err.Raise 40040 Bug from MS

    Scientists have determined that all potatoes today originated from a "mother" potato species in Peru about 7000 years ago. The Adam and Eve of all potatoes.

    http://uk.news.yahoo.com/04102005/34...-potatoes.html

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by NoteMe
    Thanks,


    Can you rub my back now?
    ::rubs noteme's back::

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Err.Raise 40040 Bug from MS

    I searched, but couldn't find the original question: Q216547

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by dglienna
    I searched, but couldn't find the original question: Q216547
    I went to MSDN KB and was looking for a list of error codes but of course did not find any, then found this article and thought I should post it here. Just in case anyone didn't know -- I know I didn't.

  7. #7
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Err.Raise 40040 Bug from MS

    Wigii woggodee DOOOOOOOO
    Life is one big rock tune

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Err.Raise 40040 Bug from MS

    Was it dated April 1, by any chance?

  9. #9

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by dglienna
    Was it dated April 1, by any chance?
    Article ID : 216547
    Last Review : May 12, 2003
    Revision : 1.0

  10. #10
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Err.Raise 40040 Bug from MS

    No, it was definately dated April 1.

  11. #11

    Thread Starter
    PowerPoster
    Join Date
    Apr 2005
    Location
    Debug.Print
    Posts
    3,885

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by programmer_boy
    No, it was definately dated April 1.
    Didnt find that date anywhere on the article.

  12. #12
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Err.Raise 40040 Bug from MS

    Shouldn't this thread be in the General PC or Classic VB forums? Then it may be taken a bit seriously...

    Wajawoo blaerad eoch
    Life is one big rock tune

  13. #13
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by Valleysboy1978
    Wajawoo blaerad eoch
    Who told you that? It's a lie!

  14. #14
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Err.Raise 40040 Bug from MS

    Bluteow nah sertars walalala
    Life is one big rock tune

  15. #15
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Err.Raise 40040 Bug from MS

    Ewoa hebrezieos aasket afja!

  16. #16
    Fanatic Member Valleysboy1978's Avatar
    Join Date
    Nov 2004
    Location
    Planet Xeoroaniar CC Posts:1,928,453,459,361
    Posts
    770

    Re: Err.Raise 40040 Bug from MS

    Wakar nah chearwa eh mweat arr naratai
    Life is one big rock tune

  17. #17
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Err.Raise 40040 Bug from MS

    Ekky-ekky-ekky-ekky-z'Bang, zoom-Boing, z'nourrrwringmm.

    You must find me a shrubbery!

  18. #18
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Err.Raise 40040 Bug from MS

    Quote Originally Posted by mendhak
    Ekky-ekky-ekky-ekky-z'Bang, zoom-Boing, z'nourrrwringmm.

    You must find me a shrubbery!
    Are you a knight who, until recently, said Ni!?

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