> > I don't know much of the code, so, propably a stupid question: > Can we avoid to do the initial resource allocation, when it's known to fail? > > It seems to me like things are done twice here: > 1. try > 2. reallocate > 3. retry Well, we don't know it's going to fail until we try :-) Ben.