becuase of the heap size limitation of the Visual Studio which stands ... On a side note, this forum is suppose to be c++ only --- not OS ...
471,003Members|1,007OnlineSigninJoinHomePostsTopicsMembersFAQhome>topics>c/c++>questions
>
howtoincreaseheapsizeinvc++6.0environment
JoinBytestopostyourquestiontoacommunityof471,003softwaredevelopersanddataexperts.HowtoincreaseHEAPsizeinVC++6.0environmentnvjoglekar
HiAll
MyprogramneedsalotofmemoryandafterallocatingsomeusingNEW
statement,itreturnsNULLforanynewobjectcreated.Iguessthatis
becuaseoftheheapsizelimitationoftheVisualStudiowhichstands
at1MB.Ineedtoincreaseit.OneoptionIfoundwastoset
/HEAP:memoryintheLinkoptionsofprojectsetting.Buritdidn't
seemtowork.Iamgettingsameproblemagain.
Dowsanybodyhasaopinionaboutthis.
regards
Nikhil
Jul22'05
#1FollowPostReply36895PerryS.Morris
Nikhil,
LookattheWin32APIcallsVirtualAlloc()andVirtualFree().Usethese
insteadofnew/deleteforlargeblocksofmemory.
Onasidenote,thisforumissupposetobec++only---notOSdependent
orcompilerdependent.
Anyway,IhopethosetwoAPIcallswillhelpyou.;-)
Perry
"nvjoglekar"wroteinmessage
news:bc**************************@posting.google.com...HiAllMyprogramneedsalotofmemoryandafterallocatingsomeusingNEWstatement,itreturnsNULLforanynewobjectcreated.IguessthatisbecuaseoftheheapsizelimitationoftheVisualStudiowhichstandsat1MB.Ineedtoincreaseit.OneoptionIfoundwastoset/HEAP:memoryintheLinkoptionsofprojectsetting.Buritdidn'tseemtowork.Iamgettingsameproblemagain.Dowsanybodyhasaopinionaboutthis.regardsNikhil
Jul22'05
#2ChristopherBenson-Manica
nvjoglekarspokethus:MyprogramneedsalotofmemoryandafterallocatingsomeusingNEWstatement,itreturnsNULLforanynewobjectcreated.IguessthatisbecuaseoftheheapsizelimitationoftheVisualStudiowhichstandsat1MB.Ineedtoincreaseit.OneoptionIfoundwastoset/HEAP:memoryintheLinkoptionsofprojectsetting.Buritdidn'tseemtowork.Iamgettingsameproblemagain.Dowsanybodyhasaopinionaboutthis.
Ifyoudoindeedrequirealargerheap,youmustseekhelpelsewhere.http://www.slack.net/~shiva/welcome.txthttp://www.parashift.com/c++-faq-lite/
--
ChristopherBenson-Manica|I*should*knowwhatI'mtalkingabout-ifI
ataru(at)cyberspace.org|don't,Ineedtoknow.Flameswelcome.
Jul22'05
#3JohnCarson
"nvjoglekar"wroteinmessage
news:bc**************************@posting.google.comHiAllMyprogramneedsalotofmemoryandafterallocatingsomeusingNEWstatement,itreturnsNULLforanynewobjectcreated.IguessthatisbecuaseoftheheapsizelimitationoftheVisualStudiowhichstandsat1MB.Ineedtoincreaseit.OneoptionIfoundwastoset/HEAP:memoryintheLinkoptionsofprojectsetting.Buritdidn'tseemtowork.Iamgettingsameproblemagain.Dowsanybodyhasaopinionaboutthis.regardsNikhil
VC++specificquestionsareoff-topichere.Youshouldpostthemat
microsoft.public.vc.language
Iratherdoubt,however,thatyourproblemisreallyaVC++configuration
problem.Twopoints:
1.The1Mbdefaultheapsizeisjustaninitialvalue.Theheapisenlarged
asneeded(asatest,Ijustallocated100Mbwithoutaprobleminspiteof
usingthedefaultheapsettings).
2.NEWisnotpartoftheC++language.Theappropriatekeywordisnew
(lowercase).
Isuspectthatyourproblemisalanguageone,butitisimpossibletobe
morespecificwithoutseeingyourcode.Seeifyoucancreateacompileable
samplethatexhibitstheproblem.Ofcourse,theamountofmemoryavailable
onanysystemislimited,soitispossibletoexceedit.Butanormal
correctlywrittenprogramisunlikelytodoso.
--
JohnCarson
1.Toreplytoemailaddress,removedonald
2.Don'treplytoemailaddress(posthereinstead)
Jul22'05
#4ThisdiscussionthreadisclosedStartnewdiscussionReplieshavebeendisabledforthisdiscussion.SimilartopicsC/C++Stackvs.Heap
14posts
views
ThreadbyKevinGrigorenko|
lastpost:by
C/C++HowtoincreaseHEAPsizeinVC++6.0environment
3posts
views
Threadbynvjoglekar|
lastpost:by
C/C++Doesusing'new'and'delete'increaseexecutablesize?
1post
views
ThreadbyStefan|
lastpost:by
C/C++howtoincreaseheapsizeforaprocess
1post
views
Threadbynrhayyal|
lastpost:by
C/C++stackincreasedirectionandbig-endianorlittle-endia
3posts
views
Threadbygary|
lastpost:by
DB2DatabaseincreaseUDF_MEMandAPP_CTL_HEAP_SZsize
2posts
views
ThreadbyRalfGross|
lastpost:by
DB2Databaseusedpagesincreaseafterdeletingandloadingagain
5posts
views
ThreadbyOlafGschweng|
lastpost:by
C/C++Howtoincreasestackspace/heapspace
9posts
views
ThreadbyAjay|
lastpost:by
PythonPossibletosetcpythonheapsize?
11posts
views
ThreadbyAndyWatson|
lastpost:by
DB2DatabaseOutofprivatememoryheap
5posts
views
Threadbykumarmdb2|
lastpost:by
General10JavaScriptframeworksworthlearningin2022
3posts
views
ThreadbyMarkDoronin|
lastpost:by
Javascript16JavaInterviewQuestionsandAnswers
reply
views
Threadbysjain6|
lastpost:by
SecurityAnopensourcecontainersecuritydetectiontool
reply
views
ThreadbyTrc0g|
lastpost:by
MicrosoftAccess/VBAHowtoExportaLinkedTabletoExcel
reply
views
Threadbyanoble1|
lastpost:by
PythonClickniumAutomationSampleSolution-CustomerOnboarding
reply
views
Threadbyclicknium|
lastpost:by
PythonSlackAutomationSample-Scrapingcontactlistfromonechannel
reply
views
Threadbyautodeveloper|
lastpost:by
MicrosoftAccess/VBAMSAccess2000database
1post
views
Threadbybuchert1|
lastpost:by
PostgreSQLDatabaseLuceneconfusionaboutfirstandthirdstep?
1post
views
Threadbyshivajikobardan|
lastpost:by
JavascriptQuestionontherulesusingReactHooks?
1post
views
Threadbysamanthajade|
lastpost:by
ByusingBytes.comandit'sservices,youagreetoourPrivacyPolicyandTermsofUse.
Todisableorenableadvertisementsandanalyticstrackingpleasevisitthemanageads&trackingpage.