for(;;) // main execution loop
{
mem = malloc(needed_memory);
if (NULL == mem)
{
// this should never happen!
// but guess what? It does... from time to time.
exit(EXIT_FAILURE);
}
.......
}
And the solution is to restart the program over and over again.
Sounds familiar?
Sunday, January 13, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment