Click here to Skip to main content
15,912,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tray icon tooltip Pin
Ravi Bhavnani6-Jul-04 10:44
professionalRavi Bhavnani6-Jul-04 10:44 
GeneralRe: Tray icon tooltip Pin
ThatsAlok7-Jul-04 0:18
ThatsAlok7-Jul-04 0:18 
QuestionWhat's the best leak finder tool for VC 6? Pin
CherezZaboro6-Jul-04 9:46
CherezZaboro6-Jul-04 9:46 
AnswerRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren6-Jul-04 10:44
Johan Rosengren6-Jul-04 10:44 
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro6-Jul-04 11:40
CherezZaboro6-Jul-04 11:40 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren6-Jul-04 21:05
Johan Rosengren6-Jul-04 21:05 
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro7-Jul-04 3:32
CherezZaboro7-Jul-04 3:32 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren7-Jul-04 3:52
Johan Rosengren7-Jul-04 3:52 
inner wrote:
Now about the new and replacing it. You don't suggest to not use pointers at all, do you?

No, of course not. But it should be used sparingly, and with care. An example where new is necessary is in containers, where lots of objects are stuffed in vectors or CObArrays. But in this case, by creating a container wrapper class, where the dtor deletes all memory, you'll avoid possible leaks. Another rule of thumb that I've used with great success is always writing the deallocation code at the same time as the allocation.

inner wrote:
Of course the issue is probably in my code but it comes up as a leak of a MFC class. Now I would just like to see where exactly those objects are created. How else can I see when the process loads like 50 DLLs?

This might very well be because a dtor is not called, so it's not certain that Boundschecker or other tools will point out the real error.

But I'm a great fan of Boundschecker. That tool has saved lots of development time around the word! It shouldn't be difficult to be allowed to buy it, if you are in a situation where you can't decide such stuff yourself - running your application(s) through it, it will most likely earn its cost the first day, when leaks and GDI-losses are detected Smile | :)
GeneralRe: What's the best leak finder tool for VC 6? Pin
CherezZaboro7-Jul-04 4:21
CherezZaboro7-Jul-04 4:21 
GeneralRe: What's the best leak finder tool for VC 6? Pin
Johan Rosengren7-Jul-04 4:53
Johan Rosengren7-Jul-04 4:53 
Generalsubclassing in win32 Pin
Anonymous6-Jul-04 9:40
Anonymous6-Jul-04 9:40 
GeneralRe: subclassing in win32 Pin
palbano6-Jul-04 9:54
palbano6-Jul-04 9:54 
GeneralRe: subclassing in win32 Pin
David Crow6-Jul-04 10:02
David Crow6-Jul-04 10:02 
GeneralConnecting to Oracle without a DSN Pin
pankajdaga6-Jul-04 8:37
pankajdaga6-Jul-04 8:37 
GeneralRe: Connecting to Oracle without a DSN Pin
Michael P Butler6-Jul-04 8:43
Michael P Butler6-Jul-04 8:43 
GeneralRe: Connecting to Oracle without a DSN Pin
pankajdaga6-Jul-04 11:27
pankajdaga6-Jul-04 11:27 
Generalvariable question Pin
Timothy Grabrian6-Jul-04 7:21
professionalTimothy Grabrian6-Jul-04 7:21 
GeneralRe: variable question Pin
Jeremy Falcon6-Jul-04 7:28
professionalJeremy Falcon6-Jul-04 7:28 
GeneralRe: variable question Pin
Timothy Grabrian6-Jul-04 7:42
professionalTimothy Grabrian6-Jul-04 7:42 
GeneralRe: variable question Pin
David Crow6-Jul-04 9:29
David Crow6-Jul-04 9:29 
GeneralRe: variable question Pin
Timothy Grabrian6-Jul-04 14:55
professionalTimothy Grabrian6-Jul-04 14:55 
GeneralRe: variable question Pin
Ryan Binns6-Jul-04 18:31
Ryan Binns6-Jul-04 18:31 
GeneralRe: variable question Pin
David Crow7-Jul-04 2:33
David Crow7-Jul-04 2:33 
GeneralMFC CFrameWnd setting always-on-top Pin
_rubinho_6-Jul-04 6:19
_rubinho_6-Jul-04 6:19 
GeneralRe: MFC CFrameWnd setting always-on-top Pin
palbano6-Jul-04 6:33
palbano6-Jul-04 6:33 

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.