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
Avatar of Melih SARICA
Melih SARICA
Flag of Türkiye image

VS2010 Menu->Tools->Options

under Debugging->Edit and Continue, enable edit and continue
Avatar of cycledude
cycledude
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

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.
Avatar of Melih SARICA
Melih SARICA
Flag of Türkiye image

DAO is a com object not an .net DLL.

It happens when non .net assemby is added as i remember.
Avatar of cycledude
cycledude
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

doh... so no way around it without removing the dao?
ASKER CERTIFIED SOLUTION
Avatar of Melih SARICA
Melih SARICA
Flag of Türkiye image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of cycledude
cycledude
Flag of United Kingdom of Great Britain and Northern Ireland image

ASKER

thanks...
C#
C#

C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).

98K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo