|
-
Oct 5th, 2005, 01:05 PM
#1
Thread Starter
PowerPoster
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:
Private Sub Form_Load()
On Error Resume Next
Err.Raise 40040
MsgBox Err.Number & ": " & Err.Description ' will display 440
Err.Clear ' Clear the error for the next Raise method
Err.Raise 440
MsgBox Err.Number & ": " & Err.Description
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
-
Oct 5th, 2005, 01:08 PM
#2
Re: Err.Raise 40040 Bug from MS
Thanks,
Can you rub my back now?
-
Oct 5th, 2005, 05:16 PM
#3
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
-
Oct 5th, 2005, 05:35 PM
#4
Thread Starter
PowerPoster
Re: Err.Raise 40040 Bug from MS
 Originally Posted by NoteMe
Thanks,
Can you rub my back now?
::rubs noteme's back::
-
Oct 5th, 2005, 09:19 PM
#5
Re: Err.Raise 40040 Bug from MS
I searched, but couldn't find the original question: Q216547
-
Oct 6th, 2005, 02:29 AM
#6
Thread Starter
PowerPoster
Re: Err.Raise 40040 Bug from MS
 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.
-
Oct 6th, 2005, 03:22 AM
#7
Fanatic Member
Re: Err.Raise 40040 Bug from MS
 Life is one big rock tune 
-
Oct 6th, 2005, 03:27 AM
#8
Re: Err.Raise 40040 Bug from MS
Was it dated April 1, by any chance?
-
Oct 6th, 2005, 04:58 AM
#9
Thread Starter
PowerPoster
Re: Err.Raise 40040 Bug from MS
 Originally Posted by dglienna
Was it dated April 1, by any chance?
Article ID : 216547
Last Review : May 12, 2003
Revision : 1.0
-
Oct 6th, 2005, 06:13 AM
#10
Banned
Re: Err.Raise 40040 Bug from MS
No, it was definately dated April 1.
-
Oct 6th, 2005, 06:52 AM
#11
Thread Starter
PowerPoster
Re: Err.Raise 40040 Bug from MS
 Originally Posted by programmer_boy
No, it was definately dated April 1.
Didnt find that date anywhere on the article.
-
Oct 6th, 2005, 08:17 AM
#12
Fanatic Member
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 
-
Oct 6th, 2005, 08:19 AM
#13
Banned
Re: Err.Raise 40040 Bug from MS
 Originally Posted by Valleysboy1978
Wajawoo blaerad eoch
Who told you that? It's a lie!
-
Oct 6th, 2005, 08:33 AM
#14
Fanatic Member
Re: Err.Raise 40040 Bug from MS
Bluteow nah sertars walalala
 Life is one big rock tune 
-
Oct 6th, 2005, 08:37 AM
#15
Banned
Re: Err.Raise 40040 Bug from MS
Ewoa hebrezieos aasket afja!
-
Oct 6th, 2005, 08:56 AM
#16
Fanatic Member
Re: Err.Raise 40040 Bug from MS
Wakar nah chearwa eh mweat arr naratai
 Life is one big rock tune 
-
Oct 6th, 2005, 01:28 PM
#17
Re: Err.Raise 40040 Bug from MS
Ekky-ekky-ekky-ekky-z'Bang, zoom-Boing, z'nourrrwringmm.
You must find me a shrubbery!
-
Oct 7th, 2005, 04:23 AM
#18
Banned
Re: Err.Raise 40040 Bug from MS
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|