Mail Archives: djgpp/1996/07/19/19:54:21
Reply to message 3309781 from FREDEX AT FCSHOM on 07/18/96 9:33PM
>It must really be a bug--I would expect malloc to return me a NULL
>pointer when it can't allocate any more memory, rather than a pointer
>which when dereferenced causes an exception.
Well, yes, it is a bug, but the problem isn't that you're running out of
memory.
CWSDPMI version 1's internal heap is insufficent to handle an extremely
large number of malloc() requests. When it runs out of its internal heap,
it dies messily. The key isn't the size of your memory requests; it's how
many you make. The new version of CWSDPMI fixes this problem by
1) defining a 6K heap instead of a 4K heap; 2) allowing you to add even
more space via the CWSPARAM program.
John
- Raw text -