Try addressing out of resources errors.
See http://stackoverflow.com/a/18131788/25507 for more details.
Also use SetSize for a slight performance improvement.