an Api call exited abnormally

While saving the assembly the error message shows 'an API call exited abnormally'

how to resolve it.

can anybody have a solution.

Regards,

Vijay kumar.

SolidworksApi macros