S
sloan
Is there an official "bug report" location, to report a DotNet framework
bug?
I don't like to throw out the "bug in the framework" thing very often, but I
think I've done the homework on this one.
...
I've found an enum value that doesn't exist:
public enum MessageQueueErrorCode
It doesn't contain a value for
-1073741536
The condition where this would happen is ....
// register a handler ... OnPeekCompleted
_queue.BeginPeek();
private void OnPeekCompleted(object sender, PeekCompletedEventArgs e)
{
_queue.EndPeek(e.AsyncResult);
}
If the queue is empty when this code starts, it throws a
MessageQueueException exception.
with
MessageQueueErrorCode = to that number above.
I used this code to loop over the enum
foreach (string s in Enum.GetNames(typeof(MessageQueueErrorCode)))
{
string name = s;
MessageQueueErrorCode t = (MessageQueueErrorCode)
Enum.Parse(typeof(MessageQueueErrorCode),s);
int val = (int) t;
if (val==-1073741536)
{
string didIFindIt = "bingo";
}
}
and its not there.
If you google search it:
http://www.google.com/search?hl=en&lr=&q=1073741536+MessageQueueErrorCode&btnG=Search
You find lots of people mentioning it.
However, I haven't seen any
"Ahh, its a missing enum value"
And here is another "hint" that it is missing:
http://www.koders.com/csharp/fidE632059BF610D9D912C019A96DCF7A2DD76C847F.aspx
bug?
I don't like to throw out the "bug in the framework" thing very often, but I
think I've done the homework on this one.
...
I've found an enum value that doesn't exist:
public enum MessageQueueErrorCode
It doesn't contain a value for
-1073741536
The condition where this would happen is ....
// register a handler ... OnPeekCompleted
_queue.BeginPeek();
private void OnPeekCompleted(object sender, PeekCompletedEventArgs e)
{
_queue.EndPeek(e.AsyncResult);
}
If the queue is empty when this code starts, it throws a
MessageQueueException exception.
with
MessageQueueErrorCode = to that number above.
I used this code to loop over the enum
foreach (string s in Enum.GetNames(typeof(MessageQueueErrorCode)))
{
string name = s;
MessageQueueErrorCode t = (MessageQueueErrorCode)
Enum.Parse(typeof(MessageQueueErrorCode),s);
int val = (int) t;
if (val==-1073741536)
{
string didIFindIt = "bingo";
}
}
and its not there.
If you google search it:
http://www.google.com/search?hl=en&lr=&q=1073741536+MessageQueueErrorCode&btnG=Search
You find lots of people mentioning it.
However, I haven't seen any
"Ahh, its a missing enum value"
And here is another "hint" that it is missing:
http://www.koders.com/csharp/fidE632059BF610D9D912C019A96DCF7A2DD76C847F.aspx