BUG: MSMQQueue.Receive Fails with MQ_ERROR_INVALID_PARAMETER (0xC00E0006)

ID: Q236151


The information in this article applies to:


SYMPTOMS

With Microsoft Message Queue Server (MSMQ), there is an intermittent failure of MSMQQueue.Receive where eventually Receive fails with MQ_ERROR_INVALID_PARAMETER (0xC00E0006). The error message would look like the following:

An invalid parameter passed to a function.


CAUSE

Microsoft Message Queue Server prematurely unloads Mtxdm.dll.


RESOLUTION

Explicitly call the LoadLibrary API function for Mtxdm.dll when your program begins execution. Keep a reference to this library in your code and free this reference with FreeLibrary API function when your program ends. This will keep the DLL loaded in memory. To do this, complete the following steps:

Also, you can keep the reference to the DLL and just exit from your application. This will unload any libraries that were loaded in your process space.


STATUS

Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.

Additional query words:


Keywords          : kbMSMQ kbMSMQ100bug kbDSupport 
Version           : winnt:1.0
Platform          : winnt 
Issue type        : kbbug 

Last Reviewed: July 14, 1999