Click here to Skip to main content
Sign Up to vote bad
good
See more: 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
 
Thanks
Posted 13 Dec '12 - 1:35


2 solutions

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!
  Permalink  
Comments
shubham147 - 13 Dec '12 - 8:18
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
Marcus Kramer - 13 Dec '12 - 8:55
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:06
IT IS SHOWING A NEW ERROR..
E.F. Nijboer - 14 Dec '12 - 3:24
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.
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 369
1 OriginalGriff 190
2 Tadit Dash 168
3 CPallini 163
4 Aarti Meswania 153
0 Sergey Alexandrovich Kryukov 10,169
1 OriginalGriff 7,749
2 CPallini 4,181
3 Rohan Leuva 3,482
4 Maciej Los 3,089


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