22 Jul
2005
22 Jul
'05
11:52 a.m.
Does New as a function return nil or does it still give a runtime error?
If I want to allocate memory, but handle it gracefully if it fails, what are the recommended approaches?
In BP there is a HeapError variable which points to the default error procedure. You can reset it to point to your own error procedure and handle the error however you like. I don't know if this works with other Pascal compilers. Frank Rubin
7694
Age (days ago)
7696
Last active (days ago)
2 comments
3 participants
participants (3)
-
CBFalconer -
Contestcen@aol.com -
Frank Heckenbach