Well, if it happens when you open System Preferences, obviously something is corrupted with your preferences. Have you recently installed any new software, especially one that installed a new Preference Pane? If so, try uninstalling it. If you log in with a test or other user account, do you still have the problem?
Steve