Click here to Skip to main content
11,701,948 members (63,438 online)
Rate this: bad
good
Please Sign up or sign in to vote.
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:35am
Rate this: bad
good
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)
http://msdn.microsoft.com/en-us/library/aa264522%28v=vs.60%29.aspx[^]

Good luck!
  Permalink  
v2
Comments
shubham147 at 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
Marcus Kramer at 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 at 13-Dec-12 10:06am
   
IT IS SHOWING A NEW ERROR..
E.F. Nijboer at 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
good
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.
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 314
1 Sergey Alexandrovich Kryukov 310
2 Maciej Los 300
3 Mika Wendelius 119
4 So_Keeee 100
0 OriginalGriff 8,324
1 Sergey Alexandrovich Kryukov 7,422
2 CPallini 4,912
3 Maciej Los 4,196
4 Mika Wendelius 3,556


Advertise | Privacy | Mobile
Web02 | 2.8.150819.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