Problem in customeventhandler


In some packages I'm getting randomly and error that simple forces the application to exit without any control, after some debug I found a case where the profiler is being used without controlling if was setup.
After apply the fix the application start working perfectly without any error.
file "CustomEventHandler.cs"
    public override void OnCustomEvent(TaskHost taskHost, string eventName, string eventText, ref object[] arguments, string subComponent, ref bool fireAgain)
        // Here the custom event "OnPipelineRowSent" should be processed so that
        // we can keep track of how many rows are processed in the DataFlow            
        // what happen in we don't have a profiler configure ?! add the validation before call the profiler
        if (_profileDataFlow)
            _dataFlowProfileHandler(taskHost, eventName, eventText, arguments, subComponent);
        if ((_selectedEvents & PackageEvents.Custom) == PackageEvents.Custom)
            fireAgain = true;
            LogData("OnCustomEvent::" + eventName, taskHost, eventText);
            fireAgain = _profileDataFlow;
Closed Nov 28, 2009 at 3:08 PM by manowar
Fixed from version


manowar wrote Nov 28, 2009 at 3:07 PM

Hi Joao!

This bug has been fixed from version You can download and test the latest version (just released that also, has this problem fixed.

Thanks for the feedback!

wrote Nov 28, 2009 at 3:08 PM

wrote Feb 14, 2013 at 2:35 AM

wrote May 16, 2013 at 8:04 AM