Click here to Skip to main content
11,934,809 members (40,633 online)
Click here to Skip to main content
Add your own
alternative version


18 bookmarked

Remedy for fatal error C1190

, 8 May 2005
Rate this:
Please Sign up or sign in to vote.
Workaround for the Fatal Error C1190 Visual Studio 2003 IDE bug.


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!@!?!


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.


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!!


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


About the Author

Sylvester, Asil Gerard
Chief Technology Officer ICRISAT
India India
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionYour Article [modified] Pin
crouchie19986-Mar-07 8:26
membercrouchie19986-Mar-07 8:26 
GeneralPfew you saved my neck Pin
WillemM9-May-05 22:10
memberWillemM9-May-05 22:10 
GeneralDisregard the votes Pin
Stephane Rodriguez.9-May-05 2:23
memberStephane Rodriguez.9-May-05 2:23 
GeneralRe: Disregard the votes Pin
bevpet9-May-05 6:08
memberbevpet9-May-05 6: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.

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.151126.1 | Last Updated 9 May 2005
Article Copyright 2005 by Sylvester, Asil Gerard
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid