[fpc-pascal]Issues regarding available memory
cubrewer at yahoo.com
Fri May 16 23:30:49 CEST 2003
--- Jonas Maebe <jonas at zeus.ugent.be> wrote:
> The heap manager is written to give a run time error 203 when you
> for memory and it can't be allocated. You can catch this using
Ah. I was looking for a nil pointer from GetMem. But you're saying
that I never get it because the heap manager never refuses GetMem, it
just grows the heap or, if it cannot grow the heap, throws an error?
So I only have an abstract understanding of exceptions. I wrap the
getmem in a try..except structure? Do I need to (can I) test for
specific error conditions? I seem to get RTE 216 on Linux and 203 on
Windows. Or, I don't see a memory exception class on page 102 of the
refenece guide... Is there a more complete list elsewhere?
Thanks very much for your answer!
BTW, is getmem depracated?
A Congressman was once asked about his attitude toward whiskey. "If you mean the demon drink that poisons the mind, pollutes the body, desecrates family life, and inflames sinners, then I'm against it. "
"But if you mean the elixir of Christmas cheer, the shield against winter chill, the taxable potion that puts needed funds into public coffers to comfort little crippled children, then I'm for it."
"This is my position, and I will not compromise."
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
More information about the fpc-pascal