• 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: How to release a WSMethodInvocation and its result properly?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to release a WSMethodInvocation and its result properly?


  • Subject: Re: How to release a WSMethodInvocation and its result properly?
  • From: email@hidden (David E. Gelhar)
  • Date: 17 Mar 2010 09:00:01 -0400

This snippet right here is a potential problem:

    CFRelease(soapReq);
    CFMakeCollectable(soapReq);


You're over-releasing soapReq, since CFMakeCollectable calls CFRelease.

See http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/GarbageCollection/Articles/gcCoreFoundation.html

Also, you are releasing a bunch of objects you should not, for example:

    NSString *method = @"GetProjects";
    [method release];


is wrong.

Check out the "object ownership rules" in the Core Foundation memory management
guide:

http://developer.apple.com/mac/library/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: How to release a WSMethodInvocation and its result properly?
  • Next by Date: Soap Response Delay
  • Previous by thread: How to release a WSMethodInvocation and its result properly?
  • Next by thread: Soap Response Delay
  • Index(es):
    • Date
    • Thread