Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Studio
  4. VS2003 - Selection cleared when debugging. Oddity/Bug?

VS2003 - Selection cleared when debugging. Oddity/Bug?

Scheduled Pinned Locked Moved Visual Studio
debugginghelpquestionannouncement
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alsvha
    wrote on last edited by
    #1

    Hi all. To make a long story short: I have a user control (Parent) with another user control (Child) on it. The Child-control consist of some ListBoxes which update each other on selections. The Parent-control consists of a lot of stuff, amongst other things some buttons which are ment to get the Child-control's selections and do some stuff with it - so far so good. When pressing the buttons I then access the Child-control and the relevant ListBox and extract the selectedValue from this ListBox. However, I have noticed when I debug - set a break point - in my Parent-control, it will remove the the selection in the listboxes placed on the child-control. This means that after my breakpoint in my Parent-Control, the Child-Controls listbox have been had its selection cleared, and thus I can't extract the selectedValue (for instance). And also after the page is fully rendered, the selection is also not noticable on the page anymore - every trace of this selection has been removed. When I do not set this break point, everything runs fine and my selection is still kept intact, and I can extract the selectedValue. I tested it, and it didn't matter where I set this breakpoint in my Parent-Control. The selection was cleared for all code being run after my breakpoint, and including the break point. If I placed the breakpoint in PageLoad, Button Clicked event and PreRender - the result was the same. Selection was cleared afterwards and including the line with the break. Have anybody heard of something similar? Have I broken something - or have I stumpled upon a bug of sorts? --------------------------- 127.0.0.1 - Sweet 127.0.0.1

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups