Author: jschell | Posted on: 6/8/2008 8:13:12 PM | Views : 274

MSMQ in C# (Net 2.0) in XP Windows throws a wrong exception when threads are used to create the message queue and when Async is in use.

 

Testing would suggest that it doesn't impact messaging handling after the exception occurs.

 

I term the exception as wrong because it is a MessageQueueException however the MessageQueueErrorCode does not have a valid value nor is a text message provided.

 

The output of running the code is below. 

 

The output represents two tests.  The first opens the queue normally and the second opens the queue within a thread which then terminates.  The second provides the wrong exception.

 

In the second note that the enumeration is reported as an integer value (actually seems to be a rather consistent value as well) rather than ...

Go to the complete details ...