Source Insight will ignore event handlers in any file that is modified and unsaved. Therefore, if you are editing an event handler source file, Source Insight will not try to execute the handler while you are editing it! Once you are done with the editing, save the file. Source Insight will once again execute the handlers when the file is saved.