Memory setting for MFC project
-
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)
-
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)
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.
-
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.
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.....
-
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.....
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.