Using the Collada DOM API from a Managed C++ DLL

Hello,

I am trying to use the C++ DOM API from a mixed clr DLL (managed cpp)(.net 2.0, MS Visual Studio 2005) and get an exception (with no real useful info) when I run my app, if I instantiate a DAE() object - for e.g.

//in DLL
public ref class daeImport
{
public:
void Init(void)
{
DAE* pDAE = new DAE();
}
};

Has anyone implemented a collada importer using the C++ DOM API from a managed cpp dll before? I feel I am missing something simple here…

Thanks!
Vn

Found the problem - Dynamically linking to the DOM works fine. Statically linking causes those horrible exceptions.

Thanks!
Vn