Script Error Message

Does any one know the reason I get this script error message. There are times it doesn't appear very few, 9 times out of 10 it pops up. How do I correct this?

SolidworksGeneral