Solidworks 2010 (32 bit) errors on exit with add-in loaded

I have an add-in for sw 2010 (SP 5.0) that has been running fine for quite some time, and now on a new machine - XP 32 when you exit SW you get a dialog "Memory could not be read", and has different captions on the dialogs - examples below. If you unload the add-in no error. This same add-in built for 2009 and 2011 runs fine without error in those enviroments so I am at a loss as to why this would suddenly appear - Any ideas? Thanks in Advance...

SolidworksApi macros