"Runtime error" when it makes iterations

Discussion created by xristinel on Jun 1, 2012
I use python in ArcGIS 10.1 in order to define the routes between couples of origin/destination points. I read a large dataset with a lot of pairs of origin and destination points and by moving the curson I calculate the different routes in arrow. However, after about 45 iterations the program stops and gives me an error message (Runtime error: Traceback (most recent call last):  File "<string>", line 42, in <module> IOError: [Errno 9] Bad file descriptor). Note that I use the command arcpy.Delete_management so as to free some memory. I wonder if this has to do with overloaded memory and if so any suggestions?