PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

huge memory leak?

PringlesOriginal · 04 Aug 2004, 17:09 UTC
Well, i made sure that i'm not loading/creating anything new using STL in the main loop, but for some reason, after running, when i check how much memory my program takes up on my desktop using task manager, it just keeps on growing, but i stopped the program after it got to 400 mb. I'm using STL. Are there any known issues?

And i also get theses warnings
Code:

c:\program files\microsoft visual studio\vc98\include\vector(93) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,std::basic_string<char,std::char_traits<char>,std::allocator<char>
>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > const *,int>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(93) : while compiling class-template member function 'std::basic_string<char,std::char_traits<char>,std::allocator<char> > *__thiscall std::vector<std::basic_string<char,std::char_
traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::begin(void)'
c:\program files\microsoft visual studio\vc98\include\vector(93) : warning C4786: 'std::reverse_iterator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std:
:basic_string<char,std::char_traits<char>,std::allocator<char> > &,std::basic_string<char,std::char_traits<char>,std::allocator<char> > *,int>' : identifier was truncated to '255' characters in the debug information
c:\program files\microsoft visual studio\vc98\include\vector(93) : while compiling class-template member function 'std::basic_string<char,std::char_traits<char>,std::allocator<char> > *__thiscall std::vector<std::basic_string<char,std::char_
traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::begin(void)'
fps.cpp
text.cpp
Linking...
LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library

Alpha.exe - 0 error(s), 3 warning(s)


other than the huge amounts of memory my program takes, everything runs well.

Any ideas?
The STL by itself doesn't leak. Post some code if you want us to help you. The compiler output is not useful for tracking memory leaks.

You can safely ignore both warnings (C4786 and the linker one about LIBCMT). They don't have anything to do with memory leaking.