Issue 86 in ctemplate: Detected memory leaks in debug version

7 views
Skip to first unread message

ctem...@googlecode.com

unread,
Feb 3, 2012, 5:49:24 AM2/3/12
to google-c...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 86 by W.Wilber...@gmail.com: Detected memory leaks in debug
version
http://code.google.com/p/ctemplate/issues/detail?id=86

version:ctemplate-2.0

Everything ok when release mode.
But when I change to debug mode, vc show Detected memory leaks.

So I write a small program, and build dll with md/mt/mdd/mtd, etc..
And I can't check release version "memory leak".

This one ok:
testcase .\memory_leak_dll_mtd.exe

This two have memory leak:
testcase .\memory_leak_dll_mdd.exe
testcase .\memory_leak_static_mtd.exe

Attachments:
memory_leak.cpp 807 bytes
Makefile 1.2 KB
result_vc8.txt 3.2 KB

ctem...@googlecode.com

unread,
Feb 3, 2012, 7:11:57 AM2/3/12
to google-c...@googlegroups.com

Comment #1 on issue 86 by olafv...@gmail.com: Detected memory leaks in
debug version
http://code.google.com/p/ctemplate/issues/detail?id=86

Isn't this a dupe of
http://code.google.com/p/ctemplate/issues/detail?id=42 ?

ctem...@googlecode.com

unread,
Feb 3, 2012, 8:44:43 AM2/3/12
to google-c...@googlegroups.com

Comment #2 on issue 86 by W.Wilber...@gmail.com: Detected memory leaks

Yes, I think it is same issue. So, It will be fixed in the future? Or just
let it go :)

ctem...@googlecode.com

unread,
Feb 3, 2012, 8:48:44 AM2/3/12
to google-c...@googlegroups.com
Updates:
Status: WontFix

Comment #3 on issue 86 by olafv...@gmail.com: Detected memory leaks in
debug version
http://code.google.com/p/ctemplate/issues/detail?id=86

Your detector is broken, so you'll have to ask MS. ;)

ctem...@googlecode.com

unread,
Feb 3, 2012, 8:53:45 AM2/3/12
to google-c...@googlegroups.com

Comment #4 on issue 86 by W.Wilber...@gmail.com: Detected memory leaks

But why use a global pointer?

ctem...@googlecode.com

unread,
Feb 3, 2012, 8:57:46 AM2/3/12
to google-c...@googlegroups.com

Comment #5 on issue 86 by olafv...@gmail.com: Detected memory leaks in
debug version
http://code.google.com/p/ctemplate/issues/detail?id=86

Why not?
See issue 42.

Reply all
Reply to author
Forward
0 new messages