vb.net - System.OutOfMemoryException error while building Wix Project -


i have visual studio 2012 installed wix 3.9.1208.0 installed it. trying create bootstrapper taking bootstrapper project. here code in bundle.wxs.

<?xml version="1.0" encoding="utf-8"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/balextension"> <bundle iconsourcefile="d:\logo.png"  copyright="2015@company name"  name="product name" version="1.0.0.0" manufacturer="company name" upgradecode="ef645195-36e9-4b99-8374-86f8445714d8"> <bootstrapperapplicationref id="wixstandardbootstrapperapplication.rtflicense">       <bal:wixstandardbootstrapperapplication         licensefile="d:\license.rtf"         showversion="yes"         />     </bootstrapperapplicationref>      <chain>   <exepackage id="framework" name="microsoft .net framework 4.5.1 setup" cache="no" compressed="yes" permachine="yes" permanent="yes" vital="yes" installcommand="/q" sourcefile="d:\ndp451-kb2858728-x86-x64-allos-enu.exe"/>   <exepackage id="sqlcompact" name="microsoft sql compact 4.0 setup" cache="no" compressed="yes" permachine="yes" permanent="yes" vital="yes" installcommand="/q" sourcefile="d:\ssceruntime_x86-enu.exe"/>    <msipackage id="crruntime" name="crystal report runtime" cache="no" compressed="yes" permanent="yes" sourcefile="d:\crruntime_32bit_13_0_13.msi" vital="yes" />   </chain> </bundle> 

whenever try build bootstrapper project, getting error exception of type 'system.outofmemoryexception' thrown , in file light.exe , build fails.

i have core i3 processor , 4gb of ram , while building project, vs using 2gb of ram , system goes partially unresponsive until close visual studio. stopping build process doesn't release acquired memory.

can me out ?

unfortunately, think comes down computer not being able handle visual studio trying do. ran same issue, went away when getting new computer more ram.

explanation

the reason it's quitting before ram used individual processes wants allocate specific amount of memory when starts (when you're doing build, lot of processes start up, asking memory) when there not enough memory allocate request, system throws exception.

and may not see memory used @ time of error message because request larger had available, didn't allocate memory, still available.

(you can take @ msdn see how computer allocates memory.)

and "stopping build" after exception doesn't necessary "stop build." number of process started when started build still running.

as rule-of-thumb, whenever out of memory exception, need close , reopen application. not behave until do.

it's worth noting, if you're running 32-bit, 3gb of ram can accessed.

here's picture of old 32-bit 4gb computer project open in visual studio. notice available memory 827 mb.

enter image description here

now imagine processes going try grab more memory when build project.

for me going 4gb of ram 32-bit processor 16gb of ram 64-bit processor resolved performance , memory issues.


Comments