Click here to Skip to main content
16,016,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Structs: on heap or stack? Pin
Joaquín M López Muñoz22-May-02 4:23
Joaquín M López Muñoz22-May-02 4:23 
GeneralRe: Structs: on heap or stack? Pin
Anton A. Loukine22-May-02 6:31
Anton A. Loukine22-May-02 6:31 
GeneralRe: Structs: on heap or stack? Pin
Joaquín M López Muñoz22-May-02 6:44
Joaquín M López Muñoz22-May-02 6:44 
GeneralOwner draw help please. Pin
cycosi22-May-02 3:39
cycosi22-May-02 3:39 
GeneralRe: Owner draw help please. Pin
Roger Allen22-May-02 6:26
Roger Allen22-May-02 6:26 
GeneralRe: Owner draw help please. Pin
cycosi22-May-02 20:48
cycosi22-May-02 20:48 
GeneralRe: Owner draw help please. Pin
cycosi22-May-02 23:08
cycosi22-May-02 23:08 
GeneralMemory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 3:24
Mike Osbahr22-May-02 3:24 
First I would like to thank all of you who have made suggestions about this problem you've been a big help. Second I apologize if reposting a topic is considered bad form, but its difficult to find a thread after a couple of days on this forum.

This problem is more bizarre than I had originally thought. As stated before, if the app is run in debug its fine. If the debug .EXE runs outside of debug the app memory usage appears to grow linearly with time. The release .EXE, which I have now built and tested, does the same thing.

Now I've found a new twist...

Following a suggestion from Mike Nordell, I was setting up PerfMon this morning to look at exactly how memory was being used. Unexpectedly while doing this the memory used by the app dropped from 27MB to 17MB. After watching PerfMon for several minutes and wondering about the memory drop I decided to minimize the app then restore it. The memory again dropped. This time to about the original starting value.

If this is a destructor issue how does a minimize/restore change things? Does debug perform some type of clean-up that the OS waits for user interaction to trigger? This isn't Java and I wrote the app to take care of itself, so what gives?

>>>-----> MikeO
GeneralRe: Memory: debug vs. real world (3) Pin
Tim Smith22-May-02 5:00
Tim Smith22-May-02 5:00 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 5:54
Mike Osbahr22-May-02 5:54 
GeneralRe: Memory: debug vs. real world (3) Pin
Tim Smith22-May-02 7:39
Tim Smith22-May-02 7:39 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Osbahr22-May-02 9:39
Mike Osbahr22-May-02 9:39 
GeneralRe: Memory: debug vs. real world (3) Pin
Mike Nordell23-May-02 3:48
Mike Nordell23-May-02 3:48 
GeneralCDialog Pin
Zizilamoroso22-May-02 3:06
Zizilamoroso22-May-02 3:06 
GeneralRe: CDialog Pin
Martin Ziacek22-May-02 3:29
Martin Ziacek22-May-02 3:29 
GeneralRe: CDialog Pin
Zizilamoroso22-May-02 3:28
Zizilamoroso22-May-02 3:28 
GeneralRe: CDialog Pin
Zizilamoroso22-May-02 3:29
Zizilamoroso22-May-02 3:29 
GeneralRe: CDialog Pin
Martin Ziacek22-May-02 3:47
Martin Ziacek22-May-02 3:47 
GeneralRe: CDialog Pin
Nish Nishant22-May-02 3:31
sitebuilderNish Nishant22-May-02 3:31 
QuestionFindNextFile() ??? Pin
GoLa22-May-02 3:07
GoLa22-May-02 3:07 
AnswerRe: FindNextFile() ??? Pin
KarstenK22-May-02 3:14
mveKarstenK22-May-02 3:14 
GeneralRe: FindNextFile() ??? Pin
GoLa22-May-02 3:17
GoLa22-May-02 3:17 
GeneralRe: FindNextFile() ??? Pin
Mike Osbahr22-May-02 3:39
Mike Osbahr22-May-02 3:39 
GeneralRe: FindNextFile() ??? Pin
Carlos Antollini22-May-02 3:52
Carlos Antollini22-May-02 3:52 
GeneralRe: FindNextFile() ??? Pin
Mike Osbahr22-May-02 4:27
Mike Osbahr22-May-02 4:27 

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.