Odd notification / NSCFDictionary error
Chad Armstrong
edenwaith at mac.com
Fri Dec 7 15:22:44 PST 2007
On Dec 7, 2007, at 2:00 PM, macosx-dev-request at omnigroup.com wrote:
> What does the 'lsof' command say?
>
> - Scott
Under Leopard, lsof wasn't revealing much. However, my problem
doesn't seem to appear in Leopard, but I went back to Tiger and tried
it again. This finally seems to be pointing in the right direction!
My task is making use of a pipe, which is acting as a new "file" or
resource and it isn't closing properly.
MyApp 1074 admin 0r CHR 3,2 0t0 41792260 /dev/null
MyApp 1074 admin 1w CHR 0,0 0t187 41792772 /dev/
console
MyApp 1074 admin 2w CHR 0,0 0t187 41792772 /dev/
console
MyApp 1074 admin 3r PSXSHM 4096
apple.shm.notification_center
MyApp 1074 admin 4r PSXSHM 4096 /tmp/
com.apple.csseed.65
MyApp 1074 admin 5r PSXSHM 4096
apple.shm.notification_center
...
MyApp 1074 admin 38 PIPE 0x2ca56c8 16384
MyApp 1074 admin 39 PIPE 0x2ca5680 16384
MyApp 1074 admin 40 PIPE 0x2ca5638 16384
MyApp 1074 admin 41 PIPE 0x2ca55f0 16384
MyApp 1074 admin 42 PIPE 0x2ca55a8 16384
MyApp 1074 admin 43 PIPE 0x2ca5560 16384
...
MyApp 1074 admin 249 PIPE 0x38eeb00 16384
MyApp 1074 admin 250 PIPE 0x38eeab8 16384
MyApp 1074 admin 251 PIPE 0x38eea70 16384
MyApp 1074 admin 252 PIPE 0x38eea28 16384
MyApp 1074 admin 253 PIPE 0x38ee9e0 16384
MyApp 1074 admin 254 PIPE 0x38ee998 16384
After looking back at my code, it appears I forgot to deallocate the
pipe except at the very end! Going to test this now, and perhaps this
will fix my problem.
Best regards,
Chad
More information about the MacOSX-dev
mailing list