[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ONTCPSocket
- Subject: ONTCPSocket
- From: btr5290 at ritvax.rit.edu (Brandon Regard)
- Date: Sun Mar 3 07:27:00 2002
Hi,
I'm using readData on a ONTCPSocket to get some NSData, then I write the
data to a file. This is done chunk by chunk in a while loop. After I have
written the data to file, I don't need the NSData that readData got me. The
problem is when I am retrieving a large file and I wait for autorelease when
the the file is done and the loop has exited, readData eats up a huge amount
of memory. But, if I release the data manually on each iteration, when I get
to autorelease (or the end of my thread) my program sigs because it can't
autorelease something that¹s allready released. Any ideas....
Respectfully,
Brandon Regard
btr5290@xxxxxxx