Click here to Skip to main content
15,920,602 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHELP! silly memory release problem( forJames.R.Twine) Pin
smartptr4-Dec-02 9:46
smartptr4-Dec-02 9:46 
GeneralRe: HELP! silly memory release problem( forJames.R.Twine) Pin
Christian Graus4-Dec-02 9:52
protectorChristian Graus4-Dec-02 9:52 
GeneralRe: HELP! silly memory release problem( forJames.R.Twine) Pin
smartptr4-Dec-02 9:56
smartptr4-Dec-02 9:56 
GeneralRe: HELP! silly memory release problem( forJames.R.Twine) Pin
Christian Graus4-Dec-02 10:33
protectorChristian Graus4-Dec-02 10:33 
GeneralRe: HELP! silly memory release problem( forJames.R.Twine) Pin
Navin4-Dec-02 10:37
Navin4-Dec-02 10:37 
GeneralFailed Serialize function Pin
act_x4-Dec-02 9:37
act_x4-Dec-02 9:37 
GeneralProblem with Dumping Object (new of MFC) and FreeLibrary Pin
leander4-Dec-02 8:33
leander4-Dec-02 8:33 
GeneralRe: Problem with Dumping Object (new of MFC) and FreeLibrary Pin
Nick Parker4-Dec-02 8:56
protectorNick Parker4-Dec-02 8:56 
leander wrote:
So how can I do to see my memory leak even if i have call FreeLibrary ? (I must call function FreeLibrary() otherwise I will have lot of problems with my application).

I am not biblically familiar with MFC as I had to lookup exactly what FreeLibrary() does. Anytime you use the new operator to allocate memory on the heap you will need to release it with the delete operator. It appears that the FreeLibrary *only* handles ref counting and will unmap the module from the address space itself, I would belive that you still need to handle the internal allocation/deallocation of memory yourself. Hope this helps. Smile | :)



Nick Parker

Not everything that can be counted counts, and not everything that counts can be counted. - Albert Einstein


GeneralRe: Problem with Dumping Object (new of MFC) and FreeLibrary Pin
Ranjan Banerji4-Dec-02 9:26
Ranjan Banerji4-Dec-02 9:26 
GeneralRe: Problem with Dumping Object (new of MFC) and FreeLibrary Pin
leander4-Dec-02 21:58
leander4-Dec-02 21:58 
GeneralRe: Problem with Dumping Object (new of MFC) and FreeLibrary Pin
Alvaro Mendez4-Dec-02 9:34
Alvaro Mendez4-Dec-02 9:34 
Generaldrag on hDC Pin
Nicolas Siatras4-Dec-02 7:28
Nicolas Siatras4-Dec-02 7:28 
GeneralDrawing on a device independent bitmap Pin
David F Zimny4-Dec-02 6:50
David F Zimny4-Dec-02 6:50 
GeneralRe: Drawing on a device independent bitmap Pin
Christian Graus4-Dec-02 9:55
protectorChristian Graus4-Dec-02 9:55 
GeneralRe: Drawing on a device independent bitmap Pin
Paul M Watt4-Dec-02 14:44
mentorPaul M Watt4-Dec-02 14:44 
GeneralDisplaying Image From Data Array Pin
Rooster764-Dec-02 4:51
Rooster764-Dec-02 4:51 
GeneralRe: Displaying Image From Data Array Pin
Maximilien4-Dec-02 4:54
Maximilien4-Dec-02 4:54 
GeneralRe: Displaying Image From Data Array Pin
Chris Losinger4-Dec-02 4:58
professionalChris Losinger4-Dec-02 4:58 
GeneralRe: Displaying Image From Data Array Pin
Roger Allen4-Dec-02 5:05
Roger Allen4-Dec-02 5:05 
GeneralRe: Displaying Image From Data Array Pin
Chris Losinger4-Dec-02 5:07
professionalChris Losinger4-Dec-02 5:07 
QuestionHow to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
zhdleonid4-Dec-02 4:45
zhdleonid4-Dec-02 4:45 
AnswerRe: How to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
valikac4-Dec-02 9:59
valikac4-Dec-02 9:59 
GeneralRe: How to Get the ChildWnd's CWnd* of Static SplitterWnd Pin
zhdleonid4-Dec-02 15:14
zhdleonid4-Dec-02 15:14 
GeneralGetClientRect disparity Pin
RalfPeter4-Dec-02 3:59
RalfPeter4-Dec-02 3:59 
GeneralRe: GetClientRect disparity Pin
Roger Allen4-Dec-02 4:39
Roger Allen4-Dec-02 4:39 

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.