Solved

c# 2010 wont continue running after code edit

Posted on 2014-02-26
6
714 Views
Last Modified: 2014-03-03
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?
0
Comment
Question by:cycledude
  • 3
  • 3
6 Comments
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39888509
VS2010 Menu->Tools->Options

under Debugging->Edit and Continue, enable edit and continue
0
 

Author Comment

by:cycledude
ID: 39888522
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.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 39888576
DAO is a com object not an .net DLL.

It happens when non .net assemby is added as i remember.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:cycledude
ID: 39888627
doh... so no way around it without removing the dao?
0
 
LVL 19

Accepted Solution

by:
Melih SARICA earned 500 total points
ID: 39889072
i guess no way
0
 

Author Closing Comment

by:cycledude
ID: 39902538
thanks...
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question