Click here to Skip to main content
Click here to Skip to main content

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.

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

About the Author

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

Comments and Discussions

 
QuestionYour Article [modified] Pinmembercrouchie19986-Mar-07 7:26 
GeneralPfew you saved my neck PinmemberWillemM9-May-05 21:10 
GeneralDisregard the votes PinmemberStephane Rodriguez.9-May-05 1:23 
GeneralRe: Disregard the votes Pinmemberbevpet9-May-05 5:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web01 | 2.8.140709.1 | Last Updated 9 May 2005
Article Copyright 2005 by Sylvester, Asil Gerard
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid