Exception NmLibrary::CmLibraryError

When I call ImToolkitFactory::CreateInstance I am getting exception NmLibrary::CmLibraryError according to the debugger. But this is not in any header file so I can’t catch to to examine it further.

Some additional information. This is the same code as the MediaLiveServiceJPEG_cpp example except for the following differences:

  1. Instead of a console app, it has been turned into a DLL

  2. This DLL is loaded at runtime using LoadLibrary.

I suspect 2) may have something to do with the problem.

I suspect so too.

There is a number of the dlls in the bin folder ([C:\Program](file:C:/Program) Files\Milestone\MIPSDK\Bin) that needs to be present.