i am creating a custom component and want to give the user a breakpoint or 3. in AcceptBreakpointManager I say
this._bpm = BreakpointManager
_bpm.CreateBreakpointTarget(1,"You hit #1");
_bpm.CreateBreakpointTarget(2,"You hit #2");
It was my understanding that I would be able to see these breakpoint descriptions in the list of breakpoints for my custom task. I cannot. All i see is OnCustomEvent which unless I have missed something does not tell me which breakpoint was hit.
In Execute() I check to see if the breakpoint is enabled (checked) and go from there
Did I miss something?
Allan
Allan, this looks right to me. I'm assuming _bmp is valid when you call it? Are you using the breakPointMgr that's getting passed in as a parameter?
K
|||Hey Kirk.Yeh _bpm is a BreakpointManager at the class level and would seen to be valid. breakpointManager is the value passed in to the method.
Ok So i just figured why it does not work.
I had removed the interface IDTSBreakpointSite from my task. Now i have added this back it works.
Once thing though. In BOL it says that IDTSAcceptBreakpointSite.AcceptBreakpointManager is called by the runtime and not used in code. BOL then goes on to give an example (I have always overriden this method also).
To what does BOL when it says "not used in code" refer?
Thanks Kirk.
Allan
|||"I had removed the interface IDTSBreakpointSite from my task."
Yep, gotta have that or the TaskHost won't forward the calls.
"To what does BOL when it says "not used in code" refer?"
I have no idea what that means. It might mean that the task itself should not call that function, which is true. But, I dunno for sure what, "Not used in code" means.
No comments:
Post a Comment