locked
Visual Studio 2005 Crash when Mixed mode C++/CLI code debugged RRS feed

  • Question

  • The executable runs fine when debugger is not used. When the executable is started within the visual studio using Debug->"Start Debugging" the VS crashes with the following message.

    A fatal error has occurred and debugging needs to be terminated. For more details, please seethe Microsoft Help and Support web site. HRESULT=0x8013134d. ErrorCode=0x0

    Is there any setting that I am missing

    The following is the Project setting which links to a 3rd party c library.

    <?xml version="1.0" encoding="Windows-1252"?>
    <VisualStudioProject
     ProjectType="Visual C++"
     Version="8.00"
     Name="iEV"
     ProjectGUID="{FB5AB373-F667-437E-B577-740F24274CDC}"
     RootNamespace="iEV"
     Keyword="ManagedCProj"
     >
     <Platforms>
      <Platform
       Name="Win32"
      />
     </Platforms>
     <ToolFiles>
     </ToolFiles>
     <Configurations>
      <Configuration
       Name="Debug|Win32"
       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
       IntermediateDirectory="$(ConfigurationName)"
       ConfigurationType="1"
       CharacterSet="0"
       ManagedExtensions="1"
       >
       <Tool
        Name="VCPreBuildEventTool"
       />
       <Tool
        Name="VCCustomBuildTool"
       />
       <Tool
        Name="VCXMLDataGeneratorTool"
       />
       <Tool
        Name="VCWebServiceProxyGeneratorTool"
       />
       <Tool
        Name="VCMIDLTool"
       />
       <Tool
        Name="VCCLCompilerTool"
        UseUnicodeResponseFiles="false"
        Optimization="0"
        PreprocessorDefinitions="WIN32;_DEBUG"
        RuntimeLibrary="3"
        UsePrecompiledHeader="2"
        WarningLevel="3"
        DebugInformationFormat="3"
       />
       <Tool
        Name="VCManagedResourceCompilerTool"
       />
       <Tool
        Name="VCResourceCompilerTool"
       />
       <Tool
        Name="VCPreLinkEventTool"
       />
       <Tool
        Name="VCLinkerTool"
        UseUnicodeResponseFiles="false"
        AdditionalDependencies="ACSCL_x86.LIB $(NOINHERIT)"
        LinkIncremental="2"
        AdditionalLibraryDirectories="&quot;C:\ACS Projects\EV&quot;"
        GenerateDebugInformation="true"
        AssemblyDebug="1"
        SubSystem="2"
        EntryPointSymbol="main"
        TargetMachine="1"
       />
       <Tool
        Name="VCALinkTool"
       />
       <Tool
        Name="VCManifestTool"
       />
       <Tool
        Name="VCXDCMakeTool"
       />
       <Tool
        Name="VCBscMakeTool"
       />
       <Tool
        Name="VCFxCopTool"
       />
       <Tool
        Name="VCAppVerifierTool"
       />
       <Tool
        Name="VCWebDeploymentTool"
       />
       <Tool
        Name="VCPostBuildEventTool"
       />
      </Configuration>
      <Configuration
       Name="Release|Win32"
       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
       IntermediateDirectory="$(ConfigurationName)"
       ConfigurationType="1"
       CharacterSet="0"
       ManagedExtensions="1"
       WholeProgramOptimization="1"
       >
       <Tool
        Name="VCPreBuildEventTool"
       />
       <Tool
        Name="VCCustomBuildTool"
       />
       <Tool
        Name="VCXMLDataGeneratorTool"
       />
       <Tool
        Name="VCWebServiceProxyGeneratorTool"
       />
       <Tool
        Name="VCMIDLTool"
       />
       <Tool
        Name="VCCLCompilerTool"
        UseUnicodeResponseFiles="false"
        PreprocessorDefinitions="WIN32;NDEBUG"
        RuntimeLibrary="2"
        UsePrecompiledHeader="2"
        WarningLevel="3"
        DebugInformationFormat="3"
       />
       <Tool
        Name="VCManagedResourceCompilerTool"
       />
       <Tool
        Name="VCResourceCompilerTool"
       />
       <Tool
        Name="VCPreLinkEventTool"
       />
       <Tool
        Name="VCLinkerTool"
        UseUnicodeResponseFiles="false"
        AdditionalDependencies="ACSCL_x86.LIB $(NOINHERIT)"
        LinkIncremental="1"
        AdditionalLibraryDirectories="&quot;C:\ACS Projects\EV&quot;"
        GenerateDebugInformation="true"
        AssemblyDebug="1"
        SubSystem="2"
        EntryPointSymbol="main"
        TargetMachine="1"
       />
       <Tool
        Name="VCALinkTool"
       />
       <Tool
        Name="VCManifestTool"
       />
       <Tool
        Name="VCXDCMakeTool"
       />
       <Tool
        Name="VCBscMakeTool"
       />
       <Tool
        Name="VCFxCopTool"
       />
       <Tool
        Name="VCAppVerifierTool"
       />
       <Tool
        Name="VCWebDeploymentTool"
       />
       <Tool
        Name="VCPostBuildEventTool"
       />
      </Configuration>
     </Configurations>
     <References>
      <AssemblyReference
       RelativePath="System.dll"
       AssemblyName="System, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
      />
      <AssemblyReference
       RelativePath="System.Data.dll"
       AssemblyName="System.Data, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=x86"
      />
      <AssemblyReference
       RelativePath="System.Drawing.dll"
       AssemblyName="System.Drawing, Version=2.0.0.0, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"
      />
      <AssemblyReference
       RelativePath="System.Windows.Forms.dll"
       AssemblyName="System.Windows.Forms, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
      />
      <AssemblyReference
       RelativePath="System.XML.dll"
       AssemblyName="System.Xml, Version=2.0.0.0, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"
      />
     </References>
     <Files>
      <Filter
       Name="Source Files"
       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
       >
       <File
        RelativePath=".\AssemblyInfo.cpp"
        >
       </File>
       <File
        RelativePath=".\Convert.cpp"
        >
       </File>
       <File
        RelativePath=".\Helper.cpp"
        >
       </File>
       <File
        RelativePath=".\iEV.cpp"
        >
       </File>
       <File
        RelativePath=".\MainForm.cpp"
        >
       </File>
       <File
        RelativePath=".\stdafx.cpp"
        >
        <FileConfiguration
         Name="Debug|Win32"
         >
         <Tool
          Name="VCCLCompilerTool"
          UsePrecompiledHeader="1"
         />
        </FileConfiguration>
        <FileConfiguration
         Name="Release|Win32"
         >
         <Tool
          Name="VCCLCompilerTool"
          UsePrecompiledHeader="1"
         />
        </FileConfiguration>
       </File>
      </Filter>
      <Filter
       Name="Header Files"
       Filter="h;hpp;hxx;hm;inl;inc;xsd"
       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
       >
       <File
        RelativePath=".\ACSC.h"
        >
       </File>
       <File
        RelativePath=".\Convert.h"
        >
       </File>
       <File
        RelativePath=".\Helper.h"
        >
       </File>
       <File
        RelativePath=".\MainForm.h"
        FileType="3"
        >
        <File
         RelativePath=".\MainForm.resX"
         SubType="Designer"
         >
        </File>
       </File>
       <File
        RelativePath=".\resource.h"
        >
       </File>
       <File
        RelativePath=".\stdafx.h"
        >
       </File>
       <File
        RelativePath=".\Store.h"
        >
       </File>
      </Filter>
      <Filter
       Name="Resource Files"
       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
       >
       <File
        RelativePath=".\app.ico"
        >
       </File>
       <File
        RelativePath=".\app.rc"
        >
       </File>
      </Filter>
      <File
       RelativePath=".\ReadMe.txt"
       >
      </File>
     </Files>
     <Globals>
     </Globals>
    </VisualStudioProject>

     

    Thursday, March 10, 2011 2:04 AM

Answers

  • Is this the 64 bit CLR?  I ask because of this post.  The error code you posted appears to be CORDBG_E_INTEROP_NOT_SUPPORTED.

    Ryan

    • Marked as answer by Victor_Chen Thursday, March 17, 2011 8:50 AM
    Thursday, March 10, 2011 2:33 AM