BUG: MSMQQueue.Receive Fails with MQ_ERROR_INVALID_PARAMETER (0xC00E0006)ID: Q236151
|
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.
Microsoft Message Queue Server prematurely unloads Mtxdm.dll.
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:
HMODULE hModuleMTXDM;
// Program execution begins
hModuleMTXDM = LoadLibrary(_T("mtxdm.dll"));<BR/>
.
.
.
// Program execution ends
FreeLibrary(hModuleMTXDM);
Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Public Declare Function FreeLibrary Lib "kernel32" Alias "FreeLibrary" (ByVal hLibModule As Long) As Long
Dim hModuleMTXDM as Long
hModuleMTXDM = LoadLibary("mtxdm.dll")
FreeLibrary(hModuleMTXDM)
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