Click here to Skip to main content
15,899,679 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Destructors in STL? Pin
Zac Howland11-Aug-06 4:40
Zac Howland11-Aug-06 4:40 
QuestionCalling m_spClientSite->GetContainer from another thread Pin
TClarke8-Aug-06 3:34
TClarke8-Aug-06 3:34 
QuestionDEBUG_NEW for ATL apps? Pin
Rob Caldecott7-Aug-06 5:49
Rob Caldecott7-Aug-06 5:49 
AnswerRe: DEBUG_NEW for ATL apps? Pin
Michael Dunn7-Aug-06 7:41
sitebuilderMichael Dunn7-Aug-06 7:41 
GeneralRe: DEBUG_NEW for ATL apps? Pin
Rob Caldecott7-Aug-06 7:50
Rob Caldecott7-Aug-06 7:50 
GeneralRe: DEBUG_NEW for ATL apps? Pin
Michael Dunn7-Aug-06 8:14
sitebuilderMichael Dunn7-Aug-06 8:14 
GeneralRe: DEBUG_NEW for ATL apps? Pin
Jörgen Sigvardsson8-Aug-06 20:47
Jörgen Sigvardsson8-Aug-06 20:47 
AnswerRe: DEBUG_NEW for ATL apps? [modified] Pin
Stuart Dootson7-Aug-06 21:24
professionalStuart Dootson7-Aug-06 21:24 
Robert - what I often find to work quite nicely (without redefining 'new', which for some reason, I find slightly distaasteful - don't ask me why, probably a symptom of incipient OCD) is to use the allocation ID - add _crtBreakAlloc to a watch window, then set it to the ID of a leaking allocation. You'll then break within the debug malloc (actually in _heap_alloc_dbg) when that allocation is made, so have access to the full call stack etc.

<code>
Detected memory leaks!
Dumping objects ->
{53} normal block at 0x002F3CF8, 4 bytes long.
 Data: <    > CD CD CD CD 
Object dump complete.</code>


In this object dump, I have one leaked allocation, with ID 53. So, step into main for your app, then set _crtBreakAlloc to (decimal) 53 and run until you get a User Breakpoint exception dialog appearing. Press 'Break' and there you are!
Last modified: 08 August 2006 02:21:44 --

GeneralRe: DEBUG_NEW for ATL apps? Pin
Rob Caldecott7-Aug-06 21:57
Rob Caldecott7-Aug-06 21:57 
GeneralRe: DEBUG_NEW for ATL apps? Pin
Stuart Dootson8-Aug-06 0:05
professionalStuart Dootson8-Aug-06 0:05 
QuestionFileMaker Pro Pin
khwo6-Aug-06 20:59
khwo6-Aug-06 20:59 
AnswerRe: FileMaker Pro Pin
User 2155976-Aug-06 21:34
User 2155976-Aug-06 21:34 
Questionstl containers allocation in heap or stack? Pin
sawerr4-Aug-06 12:44
sawerr4-Aug-06 12:44 
AnswerRe: stl containers allocation in heap or stack? Pin
Jörgen Sigvardsson4-Aug-06 13:14
Jörgen Sigvardsson4-Aug-06 13:14 
GeneralRe: stl containers allocation in heap or stack? Pin
sawerr4-Aug-06 20:07
sawerr4-Aug-06 20:07 
AnswerRe: stl containers allocation in heap or stack? Pin
Kevin McFarlane7-Aug-06 0:41
Kevin McFarlane7-Aug-06 0:41 
GeneralRe: stl containers allocation in heap or stack? Pin
Jörgen Sigvardsson17-Aug-06 12:20
Jörgen Sigvardsson17-Aug-06 12:20 
GeneralRe: stl containers allocation in heap or stack? Pin
Kevin McFarlane18-Aug-06 8:44
Kevin McFarlane18-Aug-06 8:44 
Question[ ! ] Crashing Connection points in the .exe.. Help!! Pin
Eytukan4-Aug-06 3:18
Eytukan4-Aug-06 3:18 
AnswerRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Roger Stoltz4-Aug-06 4:12
Roger Stoltz4-Aug-06 4:12 
GeneralRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Eytukan4-Aug-06 4:19
Eytukan4-Aug-06 4:19 
GeneralRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Roger Stoltz4-Aug-06 4:34
Roger Stoltz4-Aug-06 4:34 
GeneralRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Eytukan4-Aug-06 5:28
Eytukan4-Aug-06 5:28 
GeneralRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Roger Stoltz4-Aug-06 5:35
Roger Stoltz4-Aug-06 5:35 
GeneralRe: [ ! ] Crashing Connection points in the .exe.. Help!! Pin
Eytukan8-Aug-06 3:36
Eytukan8-Aug-06 3: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.