I use this
http://wyw.dcweb.cn/leakage.htm library to watch my memory while developing. It was ok until I begin use SFML. When I create simple project
http://www.sfml-dev.org/documentation/1.6/ , memory watcher reports deleting object which was not created. With debugger I found it was this "if (!Music.OpenFromFile("nice_music.ogg"))" line. So I rebuild SFML myself to discover where it is, but when I linked this files, it was ok.
When I use any of them (debug, release, myself build), at the end, it reports memory leak. (One ptr is 4 and other 388 bytes big.)
So I would like to ask you, how you watch memory while creating this lib and if this problem is in SFML or if I do something wrong.
Btw. I wanted use this program to watch memory in SFML itself, but when I include debug_new.h in SFML Config.h file, compilation ends with error because of STL libraries. It's normal, but I do not feel like editing every file do undef and redefine new around including STL...
EDIT:
Ah, I'm sorry, I just found topics about this. In these topics was said that memory watch tool can be ended (by destructor, call from atexit...) before last memory is freed. I don't think it is this case, because in description of tool I use is written that if something is freed after report, it will print new info with new memory leakage.
EDIT:
Ah, I'm sorry, again :3. I forget mention closer informations:
SFML: 1.6
Compiler: MinGW-TDM 4.4.1, MS Visual Studio Express 2008
OS: Windows XP SP3