Avatar of cycledude
cycledudeFlag for United Kingdom of Great Britain and Northern Ireland asked on

c# 2010 wont continue running after code edit

Hi

All has been fine for a long time... I could stop my application at a point, have a look at the code, change a bit, then click the 'play' button and it would continue...


I recently added a reference to DAO, so that I could perform a 'compact and repair' on the system Access Database from my application.

since adding this reference, any edits I make at runtime, I am now forced to stop the application and re-start... which is driving me bonkers...

ANy idea how I can get it back to normal?
C#

Avatar of undefined
Last Comment
cycledude

8/22/2022 - Mon
Melih SARICA

VS2010 Menu->Tools->Options

under Debugging->Edit and Continue, enable edit and continue
ASKER
cycledude

thanks, just checked and it is set to do so.

the message I get is:

"edits were made which cannot be compiled.  Execution cannot continue until the compile errors are fixed"

I get this every time I edit anything at runtime... even though there are no errors.
Melih SARICA

DAO is a com object not an .net DLL.

It happens when non .net assemby is added as i remember.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER
cycledude

doh... so no way around it without removing the dao?
ASKER CERTIFIED SOLUTION
Melih SARICA

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
cycledude

thanks...