Die
Exception EOutOfResources wird immer dann geworfen, wenn schon alle freien Handles des
OS' erschöpft sind und das Programm noch mehr erstellen will.
Lösung: Ein paar Handles freigeben

Zitat von
Delphi-Hilfe:
EOutOfResources is raised when an application attempts to create a Windows or widget
handle and there are no more handles to allocate.