site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com User-agent: Microsoft-Entourage/11.1.0.040913 Chris,
One other thing is our use of the CFMessagePort communication. Every call to CFMessagePortCreateRemote() as well as some other calls from the CFMessagePort suite increases the number of send rights for a special port, but CFRelease() doesn't lower it again. Is that expected behaviour?
Are you also detaching and releasing the runloop sources associated with the message port? I believe those might add a retain to the message port and therefore prevent the mach port from being released...
At least for some message ports there are no runloop sources associated. This is a one-shot message: CFMessagePortRef portRef = CFMessagePortCreateRemote( kCFAllocatorDefault, portNameRef); if (NULL != portRef) { // we have found valid client port if (CFMessagePortIsValid(portRef)) { success = CFMessagePortSendRequest ( portRef, kMyMessageID, sendDataRef, kSendTimeout, kReceiveTimeout, NULL, NULL); CheckError( success); } CFRelease(portRef); } After stepping through this code the number of send rights remain increased. Is there anything wrong with this code? Regards Dirk _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dirk Musfeldt