Visual C++ /HEAP Linker-Option -
i have trouble heap in program of mine. while googling way through internet find solutions came across page msdn describes linker options heap allocation don't understand.
the documentation says can set heapsize /heap.
i knew stack size fixed , makes sense me. thought heap variable in size. add more confusion found default value 1mb. have written lots of programs use more 1 mb of memory.
what /heap option then?
thanks
windows gives .exes (processes) memory giving them read/write acess pages of memory. c++ programmer, should left operating system, never messed with
/heap 1,000,000 means .exe starts 1,000,000 bytes worth of pages... start with. changing value shouldn't affect anything. windows automatically pages in memory. it's hint windows give process memory needs performance.
Comments
Post a Comment