• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WebService requests returning nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebService requests returning nil


  • Subject: Re: WebService requests returning nil
  • From: spike grobstein <email@hidden>
  • Date: Fri, 6 Apr 2007 14:49:09 -0400

ahhh, that makes a lot of sense. Thanks!

Since WSMakeStubs creates class functions rather than instance functions, I'm not able to release the objects.

I've wrapped the meat of my loop in a temporary sub-autorelease pool and my app is still exhibiting the same symptoms. The following pseudocode illustrates how I'm set up:

for(i = 0 ; i < fileCount; i++) {
	NSAutoreleasePool *subpool = [[NSAutoreleasePool alloc] init];

	// file calculations
	// soap call

	[subpool release];
}

I've tried moving the subpool around to different areas of my program, but to no avail.

any other ideas, or am I doing something wrong?



...spike


On Apr 6, 2007, at 1.45 pm, Jerry Krinock wrote:


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

_______________________________________________

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


  • Follow-Ups:
    • Re: WebService requests returning nil
      • From: spike grobstein <email@hidden>
References: 
 >WebService requests returning nil (From: spike grobstein <email@hidden>)
 >Re: WebService requests returning nil (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: pointer address changes for no reason
  • Next by Date: Basic Coredata / threading question
  • Previous by thread: Re: WebService requests returning nil
  • Next by thread: Re: WebService requests returning nil
  • Index(es):
    • Date
    • Thread