Click here to Skip to main content
15,913,836 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 11:33
(Steven Hicks)n+11-Dec-03 11:33 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 11:42
igor19601-Dec-03 11:42 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 11:50
(Steven Hicks)n+11-Dec-03 11:50 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
igor19601-Dec-03 12:20
igor19601-Dec-03 12:20 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 13:17
(Steven Hicks)n+11-Dec-03 13:17 
GeneralRe: arrrruuugghhhhh cyrptoapi again Pin
(Steven Hicks)n+11-Dec-03 10:04
(Steven Hicks)n+11-Dec-03 10:04 
Generalmem leak detection Pin
GDavy1-Dec-03 3:07
GDavy1-Dec-03 3:07 
GeneralRe: mem leak detection Pin
Antti Keskinen1-Dec-03 10:04
Antti Keskinen1-Dec-03 10:04 
The most best way to check for memory leaks is the most apparent as well: in your dev. environment, start some type of memory monitor, like the Task Manager in Windows. Then just run & stop your test application for 10-15 times in a row. If you see a radical memory increase, then you have a leak.

Small memory leaks (under 10 kb) are usually not even detectable, and in most cases, harmless. Of course, if you don't boot the Pocket PC at all, then they may cause an issue in a long run.

In the end, if you don't have access to MSVC++'s debugger, you should invest on some Memory Validator programs available commercially. They are _made_ for detecting memory/handle/GUI leaks, and are very efficient at it.

I'm not sure what you use to create the GUI. But C/C++ does not care. Everything always comes down to using new/delete pair. The MFC framework does it, deep down under. You just can't see it. Even the RUNTIME_CLASS macro's and the related functions use new/delete, or the C-version, malloc.

For the Windows GUI and MFC, the rule of thumb for resource leaks is that if you load a resource from a disk file and don't unload it, then you leak memory. If you load the resource from your application instance (it is saved in the resource script), then you don't need to release it, as it is released automatically when the instance exits.

All in all, get a memory validation software. It'll help you a long way without headaches.

-Antti Keskinen

----------------------------------------------
The definition of impossible is strictly dependant
on what we think is possible.
Generalitoa Pin
styve1-Dec-03 2:55
styve1-Dec-03 2:55 
GeneralRe: itoa Pin
GDavy1-Dec-03 2:58
GDavy1-Dec-03 2:58 
GeneralRe: itoa Pin
Michael P Butler1-Dec-03 3:20
Michael P Butler1-Dec-03 3:20 
GeneralForm Designer Pin
Luiz Antonio Picanço1-Dec-03 2:41
Luiz Antonio Picanço1-Dec-03 2:41 
GeneralRe: Form Designer Pin
Antti Keskinen1-Dec-03 10:12
Antti Keskinen1-Dec-03 10:12 
GeneralRe: Form Designer Pin
Luiz Antonio Picanço2-Dec-03 0:45
Luiz Antonio Picanço2-Dec-03 0:45 
Questionnot stops Wait Cursor - why? Pin
vgrigor1-Dec-03 2:41
vgrigor1-Dec-03 2:41 
AnswerRe: not stops Wait Cursor - why? Pin
David Crow1-Dec-03 3:29
David Crow1-Dec-03 3:29 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 3:37
vgrigor1-Dec-03 3:37 
AnswerRe: not stops Wait Cursor - why? Pin
KaЯl1-Dec-03 4:16
KaЯl1-Dec-03 4:16 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 4:21
vgrigor1-Dec-03 4:21 
GeneralRe: not stops Wait Cursor - why? Pin
KaЯl1-Dec-03 4:40
KaЯl1-Dec-03 4:40 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor1-Dec-03 4:47
vgrigor1-Dec-03 4:47 
GeneralRe: not stops Wait Cursor - why? Pin
KaЯl1-Dec-03 5:07
KaЯl1-Dec-03 5:07 
GeneralRe: not stops Wait Cursor - why? Pin
vgrigor2-Dec-03 20:30
vgrigor2-Dec-03 20:30 
AnswerRe: not stops Wait Cursor - why? Pin
GeMe_Hendrix2-Dec-03 11:41
GeMe_Hendrix2-Dec-03 11:41 
GeneralString field Pin
Anonymous1-Dec-03 2:37
Anonymous1-Dec-03 2:37 

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.