SolidWorks 2014 - Error while stopping record of a macro

  When I click to stop recording of a macro (black square icon), the following error occurs:

   Can anyone help me to solve this problem?

SolidworksApi macros