Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionPassword protection for files and folders Pin
amaneet16-Sep-06 22:41
amaneet16-Sep-06 22:41 
AnswerRe: Password protection for files and folders Pin
Christian Graus17-Sep-06 13:57
protectorChristian Graus17-Sep-06 13:57 
QuestionPassing COleDateTime to dialog class Pin
DanYELL16-Sep-06 18:29
DanYELL16-Sep-06 18:29 
QuestionPassing parameter help? Pin
eric_tran16-Sep-06 18:21
eric_tran16-Sep-06 18:21 
AnswerRe: Passing parameter help? Pin
prasad_som16-Sep-06 19:35
prasad_som16-Sep-06 19:35 
GeneralRe: Passing parameter help? Pin
eric_tran16-Sep-06 21:37
eric_tran16-Sep-06 21:37 
AnswerRe: Passing parameter help? Pin
prasad_som16-Sep-06 22:18
prasad_som16-Sep-06 22:18 
QuestionUnauthorized memory allocation - Possible VC2005 bug? [modified] Pin
Robert Buldoc16-Sep-06 15:10
Robert Buldoc16-Sep-06 15:10 
[EDITTED]
Got the answer in MSDN forum. It turns out I had a large global array, which I had defined earlier to test something and had forgotten about it! ah...bad programming practice!;P
[/EDITTED]

Hi,

I have a relatively small Visual C++ project using MFC which allocates
unusually hight amount of virtual memory as soon as the program
starts(roughly 280MB), even before hitting the internal MFC stuff. When I
debug them program in Visual Studio 2005 with a breakpoint at the beginning
of int _tmainCRTStartup(void) function in crt0.c Windows Task Manager shows
the following information:
Memory Usage: 5,620K
Peak Memory Usuage: 5,620K
Page Faults: 1,420
VM Size: 282,360 K
Paged Pool: 632K
NP Pool: 2K
Handles: 102
Threads: 1
GDI Object: 6

Running the program in release mode produces the same result. Also,
compiler/linker settings are almost set to default.

My question why the program allocates so much VM, before even its started
WinMain() function? Is it a Windows issue or Visual C++?

Any help appreciated!
- Rob



-- modified at 23:30 Saturday 16th September, 2006

AnswerRe: Unauthorized memory allocation - Possible VC2005 bug? Pin
Joe Woodbury16-Sep-06 15:39
professionalJoe Woodbury16-Sep-06 15:39 
GeneralRe: Unauthorized memory allocation - Possible VC2005 bug? Pin
Robert Buldoc16-Sep-06 15:41
Robert Buldoc16-Sep-06 15:41 
QuestionTransparent edit box Pin
fx920016-Sep-06 1:13
fx920016-Sep-06 1:13 
AnswerRe: Transparent edit box Pin
_AnsHUMAN_ 16-Sep-06 1:22
_AnsHUMAN_ 16-Sep-06 1:22 
GeneralRe: Transparent edit box Pin
fx920016-Sep-06 1:32
fx920016-Sep-06 1:32 
GeneralRe: Transparent edit box Pin
_AnsHUMAN_ 16-Sep-06 1:36
_AnsHUMAN_ 16-Sep-06 1:36 
GeneralRe: Transparent edit box Pin
fx920016-Sep-06 1:49
fx920016-Sep-06 1:49 
GeneralRe: Transparent edit box Pin
_AnsHUMAN_ 16-Sep-06 2:05
_AnsHUMAN_ 16-Sep-06 2:05 
GeneralRe: Transparent edit box Pin
Hamid_RT16-Sep-06 1:39
Hamid_RT16-Sep-06 1:39 
GeneralRe: Transparent edit box Pin
fx920016-Sep-06 1:51
fx920016-Sep-06 1:51 
AnswerRe: Transparent edit box Pin
Hamid_RT16-Sep-06 1:28
Hamid_RT16-Sep-06 1:28 
GeneralRe: Transparent edit box Pin
fx920016-Sep-06 1:38
fx920016-Sep-06 1:38 
QuestionTime Delay !!!! New To C++ Pin
Mark_Murphy16-Sep-06 1:04
Mark_Murphy16-Sep-06 1:04 
AnswerRe: Time Delay !!!! New To C++ Pin
_AnsHUMAN_ 16-Sep-06 1:18
_AnsHUMAN_ 16-Sep-06 1:18 
GeneralRe: Time Delay !!!! New To C++ Pin
Mark_Murphy16-Sep-06 1:31
Mark_Murphy16-Sep-06 1:31 
QuestionHow to avoid view flashing when resizing window? Pin
jipai16-Sep-06 0:53
jipai16-Sep-06 0:53 
AnswerRe: How to avoid view flashing when resizing window? Pin
prasad_som16-Sep-06 1:04
prasad_som16-Sep-06 1:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.