Solid Works exits prematurely

Hi.

I recently wrote a program (C++) to interface with SolidWorks API to extract and/or update the

equations corresponding to the active model. Though extraction works fine using the IEquationMgr,

the 'Add2' functionality does not seem to update the contents. I do perform an "EditSketch"

operation after attempting an "Add". Instead of updating the contents, Solid Works just does not

start-up (even from start menu or clicking on the executable). Further, if I click on a ".sldprt" file

to open up using Solid Works, I invariably keep getting "Windows cannot locate file" error.

Could anyone please suggest how I may get over this issue?

Thanks,

Sandeep

SolidworksApi macros