My Addin reults in crashing in SW2013

Hi,

I upgraded my addin(used to create custom revolve cut features in a rectangular block, with color shading) to sw 2013.  while using the command SW 2013 crashes a lot. My adding works fine in sw 2012.

Log file says :  "Access Violation at 6e2d1240 (virtual address 00000068), attempt to write to memory"

Every crash gives me the same virtual address 00000068 and this msg.

What could be the reason? Please help me to resolve this crashing in sw 2013.

Attached is the log file for the reference.

Thanks and Regards,

Manish

SolidworksApi macros