CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    123

    /heap: linker option

    I want to allocate the heap size in Visual C++ using Project > Settings > Link tab. It seems like it is only possible to allocate the stack size using this screen. There should be a way to add /heap: as a linker option but it alludes me. I know this question was asked a long time ago but there was no response.

  2. #2
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

    Re: /heap: linker option

    You add linker options in the "Project Options" entry box under the link settings (same for cl options under the C/C++ tab)

    You can also use editbin.exe for setting the heap size.

    And I should add you can also #pragma it in

    #pragma comment(linker,"/HEAP:reservesize,commitsize")
    Last edited by Mick; October 13th, 2004 at 04:01 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured