DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Erratic cursor when using F11 key in VB.net

  1. #1
    Join Date
    Nov 2005
    Posts
    3

    Erratic cursor when using F11 key in VB.net

    (Note: I mention a Do Loop here because that section of my code is primarily where i first noticed the problem. The code is actually several thousand lines long.)
    After setting a breakpoint in my VB.Net code (VS 2003.Net), then advancing through the code using the F11 key once execution stops there, the cursor seems to jump erratically through the code, sometimes jumping one line, then three or five lines, or seven, even jumping past the end of a Do Loop and into code past the loop and into code that it should not be in. It eventually ends up back inside of the Do Loop. I have an integer (i) that is set to a value of zero just before the Do line of code and that is supposed to increment by 1 just before the Loop line of code (to eventually end the loop). It is never incremented. The result is that as long as I keep pressing F11, the cursor continues to "hop" thru the code, never finishing. The integer variable i is never incremented past a value of zero, and the cursor never really follows the instructions of the code; that is, it never follows any "If" instructions or "Do While" instructions, etc.
    This is the first time I have ever seen this. Normally I can follow my code precisely where I have written it to go.
    Any comments? Has anyone ever seen anything like this before?

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    I have seen it before, when stepping through source code that didn't match my executable. Are you sure the code you're running was built from the source you're debugging?
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Nov 2005
    Posts
    3

    Looks like that was it

    Phil,
    That must have been it. I checked the Configuration Manager and under the Debug Active Solution Configuration, the Build check box was unchecked for some reason. I don't know how it got that way because I know it had been checked before (right up until this started happening - what a coincidence, huh?). I checked the date/time on the exe file in the bin folder and it was a week old, indicating that it was not being rebuilt when the program was running each time. Anyway, many thanks for the memory jog for suggesting where to look. It solved the problem.
    John

Similar Threads

  1. Key violation error
    By trixma in forum Database
    Replies: 2
    Last Post: 05-21-2005, 10:07 PM
  2. A moderate view.
    By Paul Mc in forum .NET
    Replies: 214
    Last Post: 06-01-2001, 07:27 AM
  3. array declarations in VB.NET
    By Bill McCarthy in forum .NET
    Replies: 14
    Last Post: 04-10-2001, 05:03 AM
  4. Why I like VB.NET
    By Tom Cabanski in forum .NET
    Replies: 74
    Last Post: 03-14-2001, 04:30 PM
  5. VB.NET: 3 points of view
    By David Kroll in forum .NET
    Replies: 33
    Last Post: 02-13-2001, 11:23 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center