Click here to Skip to main content
15,898,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Heap memory error? Pin
Chris Losinger14-May-02 3:35
professionalChris Losinger14-May-02 3:35 
AnswerRe: Heap memory error? Pin
Maxwell Chen14-May-02 3:35
Maxwell Chen14-May-02 3:35 
AnswerRe: Heap memory error? Pin
James R. Twine14-May-02 5:08
James R. Twine14-May-02 5:08 
GeneralJPEG Question Pin
AJ12314-May-02 3:18
AJ12314-May-02 3:18 
GeneralRe: JPEG Question Pin
Chris Losinger14-May-02 3:33
professionalChris Losinger14-May-02 3:33 
GeneralRe: JPEG Question Pin
Jon Hulatt14-May-02 4:17
Jon Hulatt14-May-02 4:17 
GeneralRe: JPEG Question Pin
Chris Losinger14-May-02 4:31
professionalChris Losinger14-May-02 4:31 
GeneralMemory: Debug vs. real world Pin
Mike Osbahr14-May-02 3:05
Mike Osbahr14-May-02 3:05 
I have an MFC application that appears to have a memory leak.

I read the article "Catching Memory Leaks" and placed the code in my application. Also used the MS example code to add some additional checkpoints inside the main loop of the program. The code executed inside the debugger for over 24 hours. There were no leaks detected. The memory usage reported by Task Manager was almost constant.

However, I took the same debug .EXE file and executed it on a Windows XP platform. After 24 hours the memory usage, as reported by Task Manager, increased by about 30MB and continued to increase the longer the program ran.

The program uses the GetBufferSetLength and ReleaseBuffer functions which are my primary suspects. The documentation for ReleaseBuffer is a bit cryptic. The CString to which they are applied though is declared in an OnTimer routine and definitely goes out of scope each pass.

Any ideas what I should try next? The biggest problem is not being able to do much in the way of diagnostics on the target system.

TIA...

>>>-----> MikeO
GeneralRe: Memory: Debug vs. real world Pin
Roger Allen14-May-02 3:57
Roger Allen14-May-02 3:57 
GeneralRe: Memory: Debug vs. real world Pin
Mike Osbahr15-May-02 2:11
Mike Osbahr15-May-02 2:11 
GeneralRe: Memory: Debug vs. real world Pin
Mike Osbahr20-May-02 3:04
Mike Osbahr20-May-02 3:04 
QuestionHow to get MODEMDEVCAPS by calling GetCommProperties ? Pin
koteswara14-May-02 3:09
koteswara14-May-02 3:09 
GeneralCTreeCtrl Pin
Karavaev Denis14-May-02 2:50
Karavaev Denis14-May-02 2:50 
GeneralRe: CTreeCtrl Pin
14-May-02 3:12
suss14-May-02 3:12 
GeneralRe: CTreeCtrl Pin
Prem Kumar14-May-02 3:14
Prem Kumar14-May-02 3:14 
GeneralRe: CTreeCtrl Pin
Karavaev Denis14-May-02 3:47
Karavaev Denis14-May-02 3:47 
GeneralOpen Souce code !! Pin
Leesen14-May-02 2:44
Leesen14-May-02 2:44 
GeneralRe: Open Souce code !! Pin
Mike Osbahr14-May-02 3:12
Mike Osbahr14-May-02 3:12 
GeneralRe: Open Souce code !! Pin
Leesen14-May-02 4:05
Leesen14-May-02 4:05 
GeneralClassView lost. Pin
Hans Ruck14-May-02 2:29
Hans Ruck14-May-02 2:29 
GeneralRe: ClassView lost. Pin
Oleksandr Kucherenko14-May-02 2:37
Oleksandr Kucherenko14-May-02 2:37 
GeneralRe: ClassView lost. Pin
lucy14-May-02 3:04
lucy14-May-02 3:04 
GeneralRe: ClassView lost. Pin
Le centriste14-May-02 6:47
Le centriste14-May-02 6:47 
Generalclass in console and in MFC Pin
tongc14-May-02 2:07
tongc14-May-02 2:07 
GeneralRe: class in console and in MFC Pin
Oleksandr Kucherenko14-May-02 2:50
Oleksandr Kucherenko14-May-02 2:50 

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.