Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Friends
When i tried to compile my project its show message like this.
What the issues please resolved...

Error 4 The build was aborted because of an internal failure.
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
at Microsoft.Build.BuildEngine.BuildItem..ctor(String itemName, ITaskItem taskItem)
at Microsoft.Build.BuildEngine.TaskEngine.GatherGeneratedTaskOutputs(TaskOutput taskOutputSpecification, String taskParameterName, String itemName, String propertyName, ITask task, ItemBucket bucket)
at Microsoft.Build.BuildEngine.TaskEngine.GatherTaskOutputs(ExecutionMode howToExecuteTask, ITask task, ItemBucket bucket)
at Microsoft.Build.BuildEngine.TaskEngine.ExecuteTask(ExecutionMode howToExecuteTask, Hashtable projectItemsAvailableToTask, BuildPropertyGroup projectPropertiesAvailableToTask, Boolean& taskClassWasFound)
at Microsoft.Build.BuildEngine.Target.ExecuteAllTasks(DependencyAnalysisResult howToBuild, Hashtable changedTargetInputs, Hashtable upToDateTargetInputs, ItemBucket bucket, ArrayList taskOutputItems, BuildPropertyGroup taskOutputProperties)
at Microsoft.Build.BuildEngine.Target.ExecuteAllTasks()
at Microsoft.Build.BuildEngine.Target.Build(IDictionary targetOutputs)
at Microsoft.Build.BuildEngine.Target.Build(IDictionary targetOutputs)
at Microsoft.Build.BuildEngine.Target.Build(IDictionary targetOutputs)
at Microsoft.Build.BuildEngine.Project.DoBuild(String[] targetNamesToBuild, IDictionary targetOutputs, Boolean fireProjectStartedFinishedEvents)
at Microsoft.Build.BuildEngine.Engine.BuildProject(Project project, String[] targetNames, IDictionary targetOutputs, BuildSettings buildFlags, Boolean fireProjectStartedFinishedEvents) E:\ProjectNameDir\ProjectName.vbproj

Thanks
Posted

The compiler simply doesn't haver enough memory to compile the project. This can have several reasons but the main solution is to provide more memory.
Did you disable/limit virtual memory (My Computer -> Manage -> Advanced System Settings -> Tab:Advanced -> Performance -> Tab: Advanced -> Virtual memory.
Be sure to have enough space free on the disk used by the swap file.

Have a look here (for vs6.0 but still applies)
http://msdn.microsoft.com/en-us/library/aa264522%28v=vs.60%29.aspx[^]

Good luck!
 
Share this answer
 
v2
Comments
shubham147 13-Dec-12 8:18am    
Thanks for Response
My computer configuration are 3GB RAM, 250GB HD, in C drive 8 GB free space with C2D Processor with 1.8GHz. At the time i run only one application. I think its enough to compile.
Thanks
fjdiewornncalwe 13-Dec-12 8:55am    
It might be time for you to get a bigger or 2nd hard drive. You'd think 8GB open would be plenty, but swap drives and virtual memory can eat that up in a heartbeat.
shubham147 13-Dec-12 10:06am    
IT IS SHOWING A NEW ERROR..
E.F. Nijboer 14-Dec-12 3:24am    
I added a link to my answer. Also, do you combine multiple classes in a single source file? Also, use generics (class templates) can demand a lot of memory. Try split up your sources in chunks that are more manageable.

Good luck!
Thanks Dears for your valuable solutions
I had tried to remove all object within obj directory and did solution clear and again rebuild it work successfully.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900