PDA

View Full Version : NSURLConnection problems




bitviper
Feb 25, 2008, 05:14 AM
Hello Everyone,

I have an array of NSURLConnection contained within an object which monitors their downloads. I initialize from the user interface, alloc the NSMutableArray witht the downloads and they begin. However, for some strange the connections are lost and I get a objsend message in the console.

It does not appear within the same time frame, everytime but does appear. I'm on OS X Leopard with GC enabled!!!

Please help.



kainjow
Feb 25, 2008, 08:57 AM
Try posting some code. Sounds like a memory related issue.

bitviper
Feb 25, 2008, 02:00 PM
Try posting some code. Sounds like a memory related issue.

Hello and thank you.

I will post more when I get the chance to dig up the code. But it does like this:

open panel w/ text box
enter url hit ok button
create a download object of nsmutablearray *links
create nsurlconnection
if (nsurlconnection) link addobject:nsurlconnection

i am using garbage collection. the download class is just an array of link containing the nsurlconnections.

if you like I can send you the source code, the project: email me:bitviper@mac.com


thanks