日期:2014-05-17  浏览次数:21302 次

Microsoft Visual Studio 2010内部异常堆栈跟踪的结尾
RT
因为我的本本是4G内存的,换成win7 32bit 之后只能识别2.99G的内存。
所以用Ramdisk划出来2G用作存放系统临时文件、IE临时文件、虚拟内存。
但是用VS2010编译c文件(HelloWorld.c,你们懂的),出现如下错误:


错误 1 error MSB4018: “CL”任务意外失败。
System.TypeInitializationException: “Microsoft.Build.Utilities.FileTracker”的类型初始值设定项引发异常。 ---> System.NullReferenceException: 未将对象引用设置到对象的实例。
  在 Microsoft.Build.Utilities.FileTracker..cctor()
  --- 内部异常堆栈跟踪的结尾 ---
  在 Microsoft.Build.Utilities.FileTracker.GetTrackerPath(ExecutableType toolType, String rootPath)
  在 Microsoft.Build.CPPTasks.TrackedVCToolTask.TrackerExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
  在 Microsoft.Build.CPPTasks.CL.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
  在 Microsoft.Build.Utilities.ToolTask.Execute()
  在 Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
  在 Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
  在 Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets 147 6 123


郁闷,求高手解决。

------解决方案--------------------
我也出现了这个问题,用了ramdisk后,用VS2010编译任何文件都没法,求答案
------解决方案--------------------
把答案说出来 让大家学习下 
先谢谢了