Rebuild Errors with add-in

Hi all,

I've got program that pulls information about a model from adatabase to help with consistency for all of the callouts ondrawings and BOM's. Well when the addin has done it's work I have aline of code that just calls the model to rebuild itself. If thishappens the program runs just fine when stepping through it indebug but once the program is done and ready to turn control backover to the user it causes Solidworks to crash. When i comment outthat command the program works fine and solidworks doesn't crash.Unfortunately one of the parts that the program works with has tosuppress a feature from time to time, and since that causes andautomatic rebuild the Solidworks always crashes when the addin isdone if that part is being used.

The rebuild command im using is
part.ForceRebuild3(false)

where part is the active doc in solidworks

I've tried using the other rebuilds and they don't cause Solidworksto crash but they also don't rebuild the model either.

What is causing the problem with the solidworks addin when the fileis being rebuilt. I'm just using the addin template that wasavailable from solidworks.SolidworksApi macros