CreateLine Fails

I have an add-in which works okay on multiple systems. At a remote site, there are several systems running SolidWorks 2013. On these systems, the add-in fails. We have tracked the problem down to CreateLine failing. We have never seen this before. Does anyone know what could cause it to happen?

SolidworksApi macros