The SolidWorks features are not working?

The SolidWorks features are not working when there are multiple configurations and multiple bodies. 

In my add-in I am using temporary bodies.  When the add-in to SolidWorks switching happening frequently the SolidWorks crashes (Not getting closed). Only the features are not working. The feature symbols get black in color and not working conditions. The image is attached here.

What could be possible reasons?

Thanks in advance.

SolidworksApi/macros