• Add Review
  • Subscribe
  • Nominate
  • Submit Media
  • RSS
Text that follows formatting marks
  • WolfCoder
  • Added: 01/20/2011 02:45 PM
  • Last updated: 04/25/2024 04:00 PM
  • 3689 views

Posts

Pages: 1
There are memory leaks with text color formatting???
Yes. The engine composes a text out of strings and pictures to display more complicated things and it stores all the results of an input string into memory. Almost every object like this is allocated on the heap via new and delete so if I make a mistake it will leak every time you see a dialog box.

Thankfully, I've checked and detected no leaks.
LEECH
who am i and how did i get in here
2599
Woo! Now im gunna go google what a memory leak is.
If you want to google it, your call. However, if not, or for others who come by, simple explanation ahead.

Computers have only so much available RAM (Random Access Memory) for programs to run in. A program allocates some of that memory from this 'available memory pool' each time it needs some, and then supposedly releases the memory when it's finished with whatever it needed it for, returning it to the pool.

A Memory Leak occurs when the allocated memory isn't needed for anything else, but the program fails to properly release/return it. After this happens several times, a fair amount of RAM can be 'eaten' by such unneeded-but-held items...which means there's less available for everything else to use. In effect, some of the available RAM has effectively 'leaked out' of the pool of available RAM.
LEECH
who am i and how did i get in here
2599
author=EnderX
If you want to google it, your call. However, if not, or for others who come by, simple explanation ahead.

Computers have only so much available RAM (Random Access Memory) for programs to run in. A program allocates some of that memory from this 'available memory pool' each time it needs some, and then supposedly releases the memory when it's finished with whatever it needed it for, returning it to the pool.

A Memory Leak occurs when the allocated memory isn't needed for anything else, but the program fails to properly release/return it. After this happens several times, a fair amount of RAM can be 'eaten' by such unneeded-but-held items...which means there's less available for everything else to use. In effect, some of the available RAM has effectively 'leaked out' of the pool of available RAM.


OK. Thanks for that.
If there was a memory leak, it means the program will eventually crash as you go through dialog boxes. So I check for these problems now so that I don't have to hunt it down much further down the road.
InfectionFiles
the world ends in whatever my makerscore currently is
4622
This is so awesome and useful.
makes me happy
Aaa I was thinking of doing more tomorrow but I'll think I'll finish more of the escape commands and scrolling since I got bored of shooting floating robots with an anti material rifle.
But the memory leaks you're talking about would very tiny.

But because textboxes are used so frequently... Yeah.
A memory leak of one byte is unacceptable though, I want to keep the mysterious random bugs to a minimum.
Pages: 1