FS#5226 - Don't crash on OOM

Attached to Project: OpenTTD
Opened by Ingo von Borstel (planetmaker) - Friday, 29 June 2012, 11:42 GMT
Last edited by Remko Bijker (Rubidium) - Wednesday, 11 July 2012, 18:04 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Very Low
Priority Normal
Reported Version 1.2.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


OpenTTD handles an OOM not very graceful and just crashes. It would be nice, if it could catch this condition and inform the user accordingly.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Wednesday, 11 July 2012, 18:04 GMT
Reason for closing:  Won't fix
Additional comments about closing:  OpenTTD wraps all mallocs/reallocs, so if it 'crashes' it is because OpenTTD caught that exception. Given we're out of memory, there is no memory to open a new window to show the error. The crash handler is all we got.