MessageManager fails to instantiate

I cannot instantiate a MessageManager when trying to do so from a DLL. I get 0xC0000005: Access violation writing location 0x0000000000000024

Any help or tips debugging this?