_CrtSetBreakAlloc() usage

From: Gil (brightoceanlight_at_hotmail.com)
Date: 03/05/04

  • Next message: Jon Leonetti: "NT 4.0 Compatability with Deliverables compiled under vs.net2003?"
    Date: 4 Mar 2004 23:47:42 -0800
    
    

    I found places where I have memory leaks in my code
    with the use of _CrtDumpMemoryLeaks();

    Now, I'm trying to use _CrtSetBreakAlloc() to locate
    the instances of memory leaking in my code.

    I've added the line _CrtSetBreakAlloc(87); to find the
    87th instance, but I'm not sure how to get Visual Studio
    to respond to this command. I recompile, run the debugger,
    but can get a response from the command.

    Does anyone know the proper use of this command?


  • Next message: Jon Leonetti: "NT 4.0 Compatability with Deliverables compiled under vs.net2003?"

    Relevant Pages

    • Re: PgSp and Paging Space
      ... Also..I have this doc on memory leaks i have attached... ... I have an admin here who is trying to run a fairly simple command on AIX, ... I had him run the command while I monitored the system with "topas". ... I see that Paging Space never moves from 99% Free, ...
      (AIX-L)
    • Re: memory leak??
      ... >> seems that I've seen it increase overnight when I had mozilla shut ... > unfortunately in linux the dd command seems to take it's buffer space ... > from the large buffer pool and or ufs cache so the size doesn't change ... > as for 2.6.8 memory leaks: it's not impossible but is doubtful. ...
      (alt.os.linux)
    • Re: Finding memory leaks through ps command
      ... > What are the parameters/arguments of 'ps' command can be used to track ... > whether there are memory leaks from a process in its long run? ... "Nullus Anxietas" ...
      (comp.unix.programmer)
    • Re: Finding memory leaks through ps command
      ... > What are the parameters/arguments of 'ps' command can be used to track ... > whether there are memory leaks from a process in its long run? ... raghavendra. ...
      (comp.unix.solaris)
    • Re: Finding memory leaks through ps command
      ... > What are the parameters/arguments of 'ps' command can be used to track ... > whether there are memory leaks from a process in its long run? ... raghavendra. ...
      (comp.unix.programmer)