please include function _handleError. // TODO: ask core static bool hadOutOfMemoryErrors() { ret _handleError_outOfMemoryErrors! != 0; }