Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Memory setting for MFC project

Memory setting for MFC project

Scheduled Pinned Locked Moved C / C++ / MFC
c++debuggingperformancehelptutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    zeus_master
    wrote on last edited by
    #1

    How to enlarge/set the memory for a MFC project in VC6 platform? In my MDI project, I set several dialogs , and some controls(such as check box) after I add variable for each MFC control, successed in compiler no matter debug or release mode, then execute it and error occurs. if delete some variable of the MFC controls, it might be ok. I debuged the project, the error message "memory is not enough" is occurs in system function LRESULT AFXAPI AfxCallWndProc(CWnd* pWnd, HWND hWnd, UINT nMsg, WPARAM wParam = 0, LPARAM lParam = 0)

    M 1 Reply Last reply
    0
    • Z zeus_master

      How to enlarge/set the memory for a MFC project in VC6 platform? In my MDI project, I set several dialogs , and some controls(such as check box) after I add variable for each MFC control, successed in compiler no matter debug or release mode, then execute it and error occurs. if delete some variable of the MFC controls, it might be ok. I debuged the project, the error message "memory is not enough" is occurs in system function LRESULT AFXAPI AfxCallWndProc(CWnd* pWnd, HWND hWnd, UINT nMsg, WPARAM wParam = 0, LPARAM lParam = 0)

      M Offline
      M Offline
      Milton Karimbekallil
      wrote on last edited by
      #2

      Well you can enable /LARGEADDRESSAWARE option by setting this under Project Properties --> Configuration Properties --> Linker --> System --> Enabl Large Aaddress. For this to work , you have to set /3GB option in the boot.ini file as well in an xp/2003 OS. This option will enable your application to use 3gb of memory insted of the default 2GB. cheers...milton kb.

      Z 1 Reply Last reply
      0
      • M Milton Karimbekallil

        Well you can enable /LARGEADDRESSAWARE option by setting this under Project Properties --> Configuration Properties --> Linker --> System --> Enabl Large Aaddress. For this to work , you have to set /3GB option in the boot.ini file as well in an xp/2003 OS. This option will enable your application to use 3gb of memory insted of the default 2GB. cheers...milton kb.

        Z Offline
        Z Offline
        zeus_master
        wrote on last edited by
        #3

        it was impossible that my project would use over 10KB memory...... if I delete the debug folder, and rebuild the project, it seems ok, if I continue to add some class or variable for MFC controls, the error occurs again. some times the error is "Assert" some times is other.....

        M 1 Reply Last reply
        0
        • Z zeus_master

          it was impossible that my project would use over 10KB memory...... if I delete the debug folder, and rebuild the project, it seems ok, if I continue to add some class or variable for MFC controls, the error occurs again. some times the error is "Assert" some times is other.....

          M Offline
          M Offline
          Milton Karimbekallil
          wrote on last edited by
          #4

          It seems like insifficiant disk space. may be ie why it works when u delete the debug folder it is working. make some more free space in the disk and give more room for virtual memory and paging on the harddisk. cheers...milton kb.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups