Derek, You wrote: > Part of the software requirements is to load a > large number of records from file and into the > database. I am using a long running request to > keep track of it, unfortunately I run out of > memory way too soon.
EOF is really a "transaction oriented" system and is not really great for "batch" processes, but sometimes you need to do them with EOF anyway.
It sounds to me like you are needing to release objects while the process is still running the loop.
Try creating an NSAutoreleasePool within your loop, releasing the pool at the end. This will result in the pool getting flushed while your operations continue. EOF will create a lot of objects for temporary use, these objects will be marked for cleanup at the end of the main program loop. The trouble is, your operation is using too much memory before falling back to the main program loop, so you may need to clean up memory while in your own loop... The NSAutoreleasePool is pretty easy to use, so you should have no problem implementing one.
Good luck, and have fun! jesse --- Object Enterprises Incorporated 2608 Second Avenue Suite 119 Seattle WA 98121-1276 415-225-8266 - CELL 708-575-8135 - FAX [EMAIL PROTECTED] http://www.oeinc.com/
