Re: Segfault when releasing autorelease pool
Re: Segfault when releasing autorelease pool
- Subject: Re: Segfault when releasing autorelease pool
- From: Cameron Hayne <email@hidden>
- Date: Sun, 30 Oct 2005 23:19:47 -0500
On 30-Oct-05, at 10:28 PM, Sean McGroty wrote:
meterDevice = [NSFileHandle fileHandleForUpdatingAtPath:deviceFile];
It seems that 'meterDevice' is an instance variable. Hence you must
'retain' the (auto-released) object you get from
'fileHandleForUpdatingAtPath'
That at least is one problem - there may be others.
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden