Click here to Skip to main content
15,929,429 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralWait for vsync in GDI Pin
bleakcabal19-Jun-02 9:09
bleakcabal19-Jun-02 9:09 
GeneralRe: Wait for vsync in GDI Pin
Christopher Lord19-Jun-02 17:53
Christopher Lord19-Jun-02 17:53 
GeneralRe: Wait for vsync in GDI Pin
Tim Smith20-Jun-02 2:09
Tim Smith20-Jun-02 2:09 
GeneralRe: Wait for vsync in GDI Pin
20-Jun-02 3:13
suss20-Jun-02 3:13 
GeneralRepeated WM_PAINT problem Pin
19-Jun-02 8:39
suss19-Jun-02 8:39 
GeneralRe: Repeated WM_PAINT problem Pin
20-Jun-02 2:13
suss20-Jun-02 2:13 
GeneralRe: Repeated WM_PAINT problem Pin
23-Jun-02 1:54
suss23-Jun-02 1:54 
GeneralMemory leaks Pin
Gary Kirkham19-Jun-02 7:44
Gary Kirkham19-Jun-02 7:44 
I have a pointer defined in my header:

unsigned char *m_pData;


In my class constructor I initialize the pointer:

pData = NULL;


In my class source code I allocate memory:

m_pData = new unsigned char[m_fileLen];


In my destructor I delete the memory:

if(m_pData != NULL)
delete [] m_pData;

I keep getting memory leaks when the app is closed...I have set breakpoints and the delete in the destructor is being called. Why am I getting these leaks?
GeneralRe: Memory leaks Pin
Gary Kirkham19-Jun-02 7:46
Gary Kirkham19-Jun-02 7:46 
GeneralRe: Memory leaks Pin
Chris Losinger19-Jun-02 7:51
professionalChris Losinger19-Jun-02 7:51 
GeneralRe: Memory leaks Pin
James R. Twine19-Jun-02 8:07
James R. Twine19-Jun-02 8:07 
GeneralRe: Memory leaks Pin
19-Jun-02 10:27
suss19-Jun-02 10:27 
GeneralRe: Memory leaks Pin
Nish Nishant19-Jun-02 10:54
sitebuilderNish Nishant19-Jun-02 10:54 
GeneralRe: Memory leaks Pin
Gary Kirkham19-Jun-02 15:20
Gary Kirkham19-Jun-02 15:20 
Generalmake files Pin
Kuniva19-Jun-02 7:44
Kuniva19-Jun-02 7:44 
GeneralRe: make files Pin
Michael P Butler19-Jun-02 9:21
Michael P Butler19-Jun-02 9:21 
GeneralAfxGetApp() Error Pin
lbishop19-Jun-02 6:59
lbishop19-Jun-02 6:59 
GeneralRe: AfxGetApp() Error Pin
Chris Losinger19-Jun-02 7:06
professionalChris Losinger19-Jun-02 7:06 
GeneralRe: AfxGetApp() Error Pin
lbishop19-Jun-02 8:45
lbishop19-Jun-02 8:45 
GeneralBorder Width of a Control Pin
19-Jun-02 6:16
suss19-Jun-02 6:16 
GeneralRe: Border Width of a Control Pin
Joaquín M López Muñoz19-Jun-02 6:35
Joaquín M López Muñoz19-Jun-02 6:35 
GeneralRe: Border Width of a Control Pin
Chad Koehler19-Jun-02 7:12
Chad Koehler19-Jun-02 7:12 
GeneralTaskbar Question Pin
19-Jun-02 6:06
suss19-Jun-02 6:06 
GeneralRe: Taskbar Question Pin
Joaquín M López Muñoz19-Jun-02 6:38
Joaquín M López Muñoz19-Jun-02 6:38 
GeneralRe: Taskbar Question Pin
19-Jun-02 7:29
suss19-Jun-02 7:29 

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.