• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: URLAccess - does it leak memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: URLAccess - does it leak memory?


  • Subject: Re: URLAccess - does it leak memory?
  • From: Mike Cohen <email@hidden>
  • Date: Fri, 31 Jan 2003 10:38:55 -0500

URLAccess will cause you a lot of pain. Look into CFNetwork.

I ended up writing my own HTTP request code, since I couldn't get URL access to work with keep-alive connections.

On Thursday, January 30, 2003, at 09:12 PM, Justin Greenfield wrote:

Forgive me if I am off base here, but in trying to leak test some code using MallocDebug, it looks like URLAccess leaks memory. I should say that I am new to using MallocDebug, so maybe the problem is in the way I am interpreting its results, but I can't come up with any other explanation.

To verify that it wasn't just something funny in they way I was using URLAccess Manager, I downloaded the URLAccessSample from:

http://developer.apple.com/samplecode/Sample_Code/Networking/ URLAccessSample.htm

I built that little app in PB and then launched it from within MallocDebug. Using URLAccessSample, I chose the "URLDownload" function to download http://www.apple.com.

Once it finished and I got the "transfer was successful" message, I switched back to MallocDebug and chose "Definite Leaks" from the popup menu.
--
Mike Cohen
http://www.macmegasite.com/ * http://www.mc-development.com/ * http://www.worldbeatplanet.com/

Music is the weapon of the future - Fela
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >URLAccess - does it leak memory? (From: Justin Greenfield <email@hidden>)

  • Prev by Date: Re: URLAccess - does it leak memory?
  • Next by Date: Re: PPPLib Error Problems
  • Previous by thread: Re: URLAccess - does it leak memory?
  • Next by thread: PPPLib Error Problems Part 2
  • Index(es):
    • Date
    • Thread