3 ms·I guess you pre-allocate these UI elements when you start your application.by hyperman1 7y agoI guess you pre-allocate these UI elements when you start your application.Crinus 7y agoWhat if malloc fails at that point because some other application (we're in a preemptive multitasking OS) decided to gobble up all RAM?fwip 7y agoIf your application fails at start-up, you don't need to worry about saving state and graceful failure.