"Duplicate declaration in current scope" during edit and continue

  • Thread starter Thread starter Greg Lovern
  • Start date Start date
G

Greg Lovern

Sometimes when I declare a new variable during edit and continue, I
get the error "Duplicate declaration in current scope", except that
there is no other declaration of the affected variable. The only
solution I've found is to stop the debugging session and restart.
Often that's no problem, but it can be annoying if I'm, say, deep into
a couple nested loops.

Is there a better workaround?


Thanks,

Greg
 
Greg Lovern used his keyboard to write :
Sometimes when I declare a new variable during edit and continue, I
get the error "Duplicate declaration in current scope", except that
there is no other declaration of the affected variable. The only
solution I've found is to stop the debugging session and restart.
Often that's no problem, but it can be annoying if I'm, say, deep into
a couple nested loops.

Is there a better workaround?


Thanks,

Greg

Can you show us the code so we can better help you?
 
Back
Top