Click here to Skip to main content
11,922,641 members (57,060 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
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

Posted 13-Dec-12 2:35am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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)[^]

Good luck!
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.
Marcus Kramer 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
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!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100