In my opinion, this could be a number of things:
Memory Access Error, OverFlow, Out Of Stack Space, etc.
Without a error number it's difficult to really tell.
Ensuring that objects are closed properly and killed after every use will provide a far more reliable result than if they are not...