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

C / C++ / MFC

 
Generalmulti threaded COM woes Pin
Jim Crafton30-Jan-04 4:36
Jim Crafton30-Jan-04 4:36 
GeneralRe: multi threaded COM woes Pin
Diddy1-Feb-04 22:49
Diddy1-Feb-04 22:49 
GeneralPreventing Memory Leaks Pin
BrockVnm30-Jan-04 4:20
BrockVnm30-Jan-04 4:20 
GeneralRe: Preventing Memory Leaks Pin
John M. Drescher30-Jan-04 4:42
John M. Drescher30-Jan-04 4:42 
GeneralRe: Preventing Memory Leaks Pin
BrockVnm30-Jan-04 4:49
BrockVnm30-Jan-04 4:49 
GeneralRe: Preventing Memory Leaks Pin
John M. Drescher30-Jan-04 8:31
John M. Drescher30-Jan-04 8:31 
GeneralRe: Preventing Memory Leaks Pin
Maximilien30-Jan-04 5:03
Maximilien30-Jan-04 5:03 
GeneralRe: Preventing Memory Leaks Pin
Nemanja Trifunovic30-Jan-04 7:34
Nemanja Trifunovic30-Jan-04 7:34 
BrockVnm wrote:
what would be the best way for me to prevent memory leaks in my application.

Follow some simple rules:

1. Use smart pointers rather than "raw" ones. I reccomend ones from the Boost library. Watch for circular references when you use reference counted ones.

2. If you must use raw pointers, before every new put a comment like: "Who is responsible for deleting this?" and make sure that a matching delete is called in all scenarios.

3. If appropriate, look for some garbage collector library. At least one of them can be found on Code Project, and the most popular one is Boehm's[^].
GeneralRe: Preventing Memory Leaks Pin
Ryan Binns30-Jan-04 17:32
Ryan Binns30-Jan-04 17:32 
GeneralDoubt in SHFileOperation !!! Pin
Ilamparithi30-Jan-04 4:10
Ilamparithi30-Jan-04 4:10 
GeneralRe: Doubt in SHFileOperation !!! Pin
Roger Allen30-Jan-04 4:15
Roger Allen30-Jan-04 4:15 
GeneralRe: Doubt in SHFileOperation !!! Pin
Ilamparithi30-Jan-04 4:27
Ilamparithi30-Jan-04 4:27 
GeneralRe: Doubt in SHFileOperation !!! Pin
John M. Drescher30-Jan-04 4:45
John M. Drescher30-Jan-04 4:45 
Generalcustom thumbnails for windows explorer Pin
bpChristoph30-Jan-04 4:05
bpChristoph30-Jan-04 4:05 
QuestionWhat is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:14
vmaltsev30-Jan-04 3:14 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Joel Lucsy30-Jan-04 3:23
Joel Lucsy30-Jan-04 3:23 
GeneralRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 3:53
vmaltsev30-Jan-04 3:53 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Mike Dimmick30-Jan-04 4:56
Mike Dimmick30-Jan-04 4:56 
GeneralRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
vmaltsev30-Jan-04 5:10
vmaltsev30-Jan-04 5:10 
AnswerRe: What is the diff between ?Foo@Class and ?FooA@Class in DLL export? Pin
Mukkie30-Jan-04 23:49
Mukkie30-Jan-04 23:49 
GeneralPASSTHROUGH printing using Escape Pin
Jimmy M Joy30-Jan-04 3:10
Jimmy M Joy30-Jan-04 3:10 
GeneralRe: PASSTHROUGH printing using Escape Pin
basementman30-Jan-04 9:56
basementman30-Jan-04 9:56 
GeneralRe: PASSTHROUGH printing using Escape Pin
Jimmy M Joy30-Jan-04 17:29
Jimmy M Joy30-Jan-04 17:29 
GeneralRe: PASSTHROUGH printing using Escape Pin
basementman2-Feb-04 4:13
basementman2-Feb-04 4:13 
Generaltemplate class friend of another template class Pin
Jerome Conus30-Jan-04 2:36
Jerome Conus30-Jan-04 2:36 

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.