Re: crash with cfftpstream
Re: crash with cfftpstream
- Subject: Re: crash with cfftpstream
- From: Jeremy Wyld <email@hidden>
- Date: Fri, 24 Sep 2004 09:21:09 -0700
You may wish to double check yourself on kCFStreamFTPProxyUser and
kCFStreamFTPProxyPassword. Make sure you are actually using
kCFStreamPropertyFTPProxyUser and kCFStreamPropertyFTPProxyPassword.
Make sure they are set as properties on the stream.
I'd be very surprised if the following did not work.
CFStringRef user = CFStringCreateWithCString(kCFAllocatorDefault, "me",
kCFStringEncodingASCII);
CFStringRef pass = CFStringCreateWithCString(kCFAllocatorDefault,
"bad", kCFStringEncodingASCII);
CFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyUser, user);
CCFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyPassword,
pass);
CFRelease(user);
CFRelease(pass);
The proxy dictionary problem was filed as a bug and has been fixed in
Tiger. Continuing to use the work around will not be harmful though.
jeremy
On Sep 23, 2004, at 6:08 PM, Frederick Cheung wrote:
On 24 Sep 2004, at 02:49, Jeremy Wyld wrote:
It's a bug in CFFTPStream. I'd suggest not releasing the proxy
dictionary until your release the stream. See if that fixes it for
you.
That seems to have done the trick, thanks.
Is it also necessary not to release the values set for
kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword (I don't have a
suitably setup proxy server handy currently)?
Fred
You may wish to double check yourself on kCFStreamFTPProxyUser and
kCFStreamFTPProxyPassword. Make sure you are actually using
kCFStreamPropertyFTPProxyUser and kCFStreamPropertyFTPProxyPassword.
Make sure they are set as properties on the stream.
I'd be very surprised if the following did not work.
CFStringRef user = CFStringCreateWithCString(kCFAllocatorDefault, "me",
kCFStringEncodingASCII);
CFStringRef pass = CFStringCreateWithCString(kCFAllocatorDefault,
"bad", kCFStringEncodingASCII);
CFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyUser, user);
CCFReadStreamSetProperty(myStream, kCFStreamPropertyFTPProxyPassword,
pass);
CFRelease(user);
CFRelease(pass);
The proxy dictionary problem was filed as a bug and has been fixed in
Tiger. Continuing to use the work around will not be harmful though.
jeremy
On Sep 23, 2004, at 6:08 PM, Frederick Cheung wrote:
On 24 Sep 2004, at 02:49, Jeremy Wyld wrote:
It's a bug in CFFTPStream. I'd suggest not releasing the proxy
dictionary until your release the stream. See if that fixes it for
you.
That seems to have done the trick, thanks.
Is it also necessary not to release the values set for
kCFStreamFTPProxyUser and kCFStreamFTPProxyPassword (I don't have a
suitably setup proxy server handy currently)?
Fred
_______________________________________________
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