Thank you so much that was the problem, you really made my day
hakim On May 21, 2009, at 4:22 PM, Igor Tandetnik wrote: > Hakim TAMGALT <ha...@tamgalt.com> wrote: >> The goal is to insert into the Workout table about 1000 rows in one >> shot thru a loop, my problem is as soon as it reaches 250 the >> statement crashes with the following error: >> >> **Terminating app due to uncaught exception >> 'NSInternalInconsistencyException', reason: 'Error while inserting >> into Workout. 'not an error'' >> ** I am using Objective-C >> >> >> if i do less that 250 works fine, if I try 251 it crashes > > You are opening the database every time addWorkout is called, but > never > closing it, thus leaking connections. My guess is you are running > out of > some limited resource, perhaps file handles. > > Igor Tandetnik > > > > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users