Solved

c# 2010 wont continue running after code edit

Posted on 2014-02-26
6
749 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

688 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