(Memory) MacApp failed to handle out of memory error
1666869
Jul 7 1997 2:34PM
If the new operator fails to allocate an object of size less than
sizeof(TToolBoxEvent) then MacApp displays multiple
out of memory alerts and then bombs!!! This is because ShowAlert uses
TDispatcher::AlertFilter which tries to new a TToolboxEvent. There is a
call to AllocateObjectsFromPerm to allocate the TToolboxEvent from temp memory,
but the call to AllocateObjectsFromPerm does nothing! The flag
pAllocateObjectsFromPerm that it sets is ignored! There are no calls to
GetPermObjectAllocationState anywhere in MacApp release 12! Because ShowAlert
was called with an out of memory condition where there isn't enough
memory to new a TToolboxEvent, it can not create a TToolboxEvent!
(Sorry for all the exclamation points but I was
shocked to find that a major feature of MacApp that I relied on was
broken and broken in such a profound way!)
Fix:
Fixed as part of low memory overhaul.Ê