I have a big problem with solidworks events.

Hi,

i'm develop a Solidworks add-in, and i'm at the end.

However, i have the following problem.

I'm often aborted solidworks

I'm using SolidWorks 2007 and VisualStudio 2008

The plug-in, works as follows.

Step 1 - Open a document type .Sldprt.

Step 2-  Insert several blocks in the piece, then with this part creates a drawing.

Step 3 - Once completed close the drawing,

Step 4 -  Then close the part. Now is when SolidWorks aborted.

When i close the part, I get the following message.

I think the problem is in the events, but I can not say because I can not see where it failed.

I have put my code "Try Catch" in all functions.

Any Ideas?

As I can know where the error?

Thanks

Best Regards.

Alvaro.

SolidworksApi macros