Re: Stepping through the IDE
Sorry to be a bore, but is it only me that's experiencing/experienced this?
I may try and package up the source and attach it so one of you considerate souls can confirm the failure for me. ;)
Re: Stepping through the IDE
Did you create the Eventhandler for the Aftercheck Event?
Code:
this.treeView1.AfterCheck += new System.Windows.Forms.TreeViewEventHandler(this.treeView1_AfterCheck);
Re: Stepping through the IDE
Yes. As I said, the code runs... my point is when I single step through it, the stepping doesn't go to the code.
Re: Stepping through the IDE
It is probably because a delegate is a method instance and so you are not actually executing the method itself, but an instance of it. Logical, but it should step through it anyway. VC# 2005 (Express) does, so it may have been an issue with 2003 that was fixed in '05.
Re: Stepping through the IDE
If you're right, it's a very big issue as far as debugging is concerned. :S It's still an executed area of code whether it be part of an instance or class. :(
Re: Stepping through the IDE
Can you zip and post the project?
1 Attachment(s)
Re: Stepping through the IDE
Re: Stepping through the IDE
It steps through the handler fine, but you have to place a breakpoint on the first line. It seems that '03 only steps through the current method.
Re: Stepping through the IDE
Ugh!
Yeah, I noticed it was ok when I put a breakpoint there... but assumed I could step through the whole execution path once broken at a point.
That's really sucky, especially when dealing with handlers that may not have an immediately identifiable execution path. :(
At least it's not just me.