Mail Archives: djgpp/1997/05/08/12:05:12
> But for the task you are attempting, you shouldn't need to use such a
> clumsy workaround. malloc() and calloc() both return NULL pointers if
> they fail to allocate the desired amount of memory. A simple test will
> suffice:
true, but it gives no clue as to why it failed. surely when you have 120 meg
of virtual memory it's no big deal to ask for 9meg of that? and even on a 16meg
machine there should be that amount of real memory. is it perhaps better to
ask for it in smaller chunks rather than as one contiguous block? i just fail
to understand why it could fail when it had so much available to it.
regards,
nik
--
Graham Tootell | i am nik. nik i am.
nikki @gameboutique.com | i do not like mass mail or spam.
Dear Mr. Spambot. The following commercial spammers are very interested
in your product. please don't hesitate to mail them lots of spam asap.
tlehman AT nemesis DOT azlink DOT com tlehman AT mail DOT azlink DOT com
- Raw text -