Solved

c# 2010 wont continue running after code edit

Posted on 2014-02-26
6
680 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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
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…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

760 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now