|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Bug Log for Microsoft // Missing Enum Value in Frameworkbug? 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 >Is there an official "bug report" location, to report a DotNet framework
http://connect.microsoft.com/VisualStudio/feedback/
>bug? Mattias -- Mattias Sjögren [C# MVP] mattias @ mvps.org http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com Please reply only to the newsgroup. Thanks.
Show quote "Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message news:OYsMg722GHA.4632@TK2MSFTNGP03.phx.gbl... > >Is there an official "bug report" location, to report a DotNet framework > >bug? > > http://connect.microsoft.com/VisualStudio/feedback/ > > > Mattias > > -- > Mattias Sjögren [C# MVP] mattias @ mvps.org > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com > Please reply only to the newsgroup. See
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=206533 Show quote "Mattias Sjögren" <mattias.dont.want.spam@mvps.org> wrote in message news:OYsMg722GHA.4632@TK2MSFTNGP03.phx.gbl... > >Is there an official "bug report" location, to report a DotNet framework > >bug? > > http://connect.microsoft.com/VisualStudio/feedback/ > > > Mattias > > -- > Mattias Sjögren [C# MVP] mattias @ mvps.org > http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com > Please reply only to the newsgroup. "sloan" <sl***@ipass.net> wrote in message FYI:news:eZ8yEX$2GHA.4524@TK2MSFTNGP06.phx.gbl... > > See > https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=206533 Error code -1073741536 is 0xC0000120 in hex - that's STATUS_CANCELLED (message text "The I/O request was cancelled"). From the MSMQ documentation, that error should not be returned, so I'm suspicious that the real problem in this case is not that the enum is missing a value, but that an inappropriate error code is being returned by .NET. -cd |
|||||||||||||||||||||||