Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory Leak - I'm gonna miss my deadline :(

Status
Not open for further replies.

Pyramus

Programmer
Dec 19, 2001
237
GB
I've got a memory leak in a multi-threaded application and I've spent nearly 4 days now hunting it down, and I'm not anywhere nearer finding it. Can anyone PLEASE suggest anything, and applications or whatever to help me find it.

From what I can see, this isn't a simple leak where I haven't done delete after I've done new, I think it's happening across function boundaries when I'm passing pointers, references and pointers to pointers.

HEELLPP!!
 
How are your synchronization mechanisms?
Do the threads use a common data pool where they might overwrite/reallocate memory?
[red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
If your problem also exist's in a Debug build, you are able to get a report about memory not freed from the runtime library.
int _CrtDumpMemoryLeaks( void );

See the MSDN documentation
"Enabling Memory Leak Detection"


- What magnitude of memory leaks are you dealing with ?
- How long time is your app running
- What kind of resources (except plain memory allocation) are you using ?
- Do you close ALL handles, files ....

/JOlesen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top