Declare DLL call caused an exception. (Error 2027)

The parameters passed to a DLL caused an exception in the DLL.

Make sure that you pass all the necessary parameters to the DLL and that the parameters are of the proper type.