Click here to Skip to main content
15,881,709 members
Articles / Operating Systems / Windows
Article

Remedy for fatal error C1190

Rate me:
Please Sign up or sign in to vote.
4.59/5 (20 votes)
8 May 2005 50.2K   18   4
Workaround for the Fatal Error C1190 Visual Studio 2003 IDE bug.

Introduction

Most of us would have encountered this error while trying to create a solution using Visual Studio 2003 which contains both managed and unmanaged code.

In my case, I was doing an .NET Interop. My solution contained an existing C/C++ project which interops with a C# project. When I set the 'use managed extensions' in the C/C++ project properties (enables the /clr option) in the pre-.NET project, I encountered the fatal error C1190.

The remedy is to set the properties for code generation -> Runtime Library to Multi-threaded Debug (/MTd) and save and compile the whole project again....but again the error creeps up!@!?!

Remedy

This is a bug in the Visual Studio 2003 IDE. What happens is that the change do not get registered for all the files in your project. So one option is to click on the properties of each .cpp file in your project and to set it to /MTd.

(OR)

Close your solution, edit your <projectname>.vcproj in Notepad and search for BasicRuntimeChecks="3" or whatever and replace it with BasicRuntimeChecks="0". Save, then open your project and try compiling.

Happy CSharping!!

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Chief Technology Officer ICRISAT
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
QuestionYour Article [modified] Pin
crouchie046-Mar-07 7:26
crouchie046-Mar-07 7:26 
GeneralPfew you saved my neck Pin
WillemM9-May-05 21:10
WillemM9-May-05 21:10 
GeneralDisregard the votes Pin
Stephane Rodriguez.9-May-05 1:23
Stephane Rodriguez.9-May-05 1:23 
GeneralRe: Disregard the votes Pin
bevpet9-May-05 5:08
bevpet9-May-05 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.