Please attach the example which causes the error.
There is no reason to performing special initialization for an ActiveX-DLL because it's initialized automatically.