Re: How to release a WSMethodInvocation and its result properly?
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