Hi,
I'm working on incorporating MsgConnect into a Unicode COM object.
I've built out MC_VC_Full, setting char set to Unicode.
This compiled/linked into my project properly, and worked with SOCKET Transport communication.
However, when I tried to use MMF transport, it threw an access exception on line (522) of MCMMF.cpp:
RFreeMutex = CreateMutex((LPSECURITY_ATTRIBUTES) MUTEX_ALL_ACCESS, false, w);

All my Queue Name, Messenger names were tranferred from TCHAR to CHAR using wcstombs. If I compile MsgConnect with char set to Multi-Byte, MMF works fine.

The only reason Unicode is an issue, is that GetErrorMessage returns TCHAR, which in my Unicode app is defined as wchar, but the MsgConnect library is, by default, compiled so that GetErrorMessage returns char. I'd hoped to resolve this by compiling MsgConnect for full Unicode support.

Any ideas what could be causing this crash/exception in MMF Transport?

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.