Re: WebService requests returning nil
Re: WebService requests returning nil
- Subject: Re: WebService requests returning nil
- From: Jerry Krinock <email@hidden>
- Date: Fri, 6 Apr 2007 10:45:49 -0700
On 2007 Apr, 06, at 9:37, spike grobstein wrote:
Has anyone else ever seen something like this happen? Is there
anything I should change?
Yup, I've seen stuff like this, although not with SOAP requests.
Your system has various limits on the number of running processes,
open file handles, etc. and when these limits are reached the Cocoa
methods that need additional resources start returning nil. To
conserve resources, make sure that you are releasing/destroying/
whatever each request as you are done with them. Also, declare a
local autorelease pool and release it at the same time, in case your
requests are allocating autoreleased stuff behind your back. (For
example, NSPipe allocates autoreleased files handles).
Jerry Krinock
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden