"Duplicate declaration in current scope" during edit and continue

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
 
G

GS

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top