User forums > Using Code::Blocks

Memmory leaks

<< < (2/6) > >>

Anonymous:
(Incorrect login. Please try again...
The password is stored in my browser so i dont think it can be wrong. )

mandrav:

--- Quote ---I dont know exactly what c::b does when it minimizes, but i can hardly imagine it then decided to deallocate all memory leaks, so maybe its a problem with windows?
--- End quote ---

C::B does absolutely nothing when minimized. That's why I asked you.
I believe it's a wxWidgets leak somewhere, but I can't point my finger on it.
Maybe someone else knows better?

Yiannis.

rickg22:
There's an article on the wxWiki about avoiding memory leaks.
http://wiki.wxwidgets.org/wiki.pl?Avoiding_Memory_Leaks

Altho, getting a memory debugger to find leaks in C::B wouldn't be a bad idea.

Urxae:
Actually, the task manager is a rather poor indication of actual memory use, especially the "Mem Usage" column ("VM Size" is better, but not perfect either).

Was there less than 1.5 gigs of RAM was in use? If so, here's something you might want to know about Windows memory allocation: Windows doesn't automatically take back memory no longer in use by a process when the memory isn't currently needed by any process. This means that if you have more memory, applications may seem to use more memory than if you'd have had less.
The reason minimizing seems to help is that when you minimize a program, Windows seems to take back the memory a process is no longer actually using (and swap out some (or most, I'm not sure) of the rest IIRC).

A link about this. It's focussed on .Net, but includes information about Windows in general. It was also the only link about this I could find during a quick Google :(.

Conclusion: this might not be a problem in CodeBlocks.

Anonymous:
This seems a very logical explenation. Almost 800MB of memory was free so i can imagine windows isnt in a rush to take it back. And if it was a real memory leak, it would be kind of strange they would magically disappear when minimizing. Like i said before, everything was running smooth, so i didnt have any real problems.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version