Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 170E717D10 for ; Mon, 23 Mar 2015 14:42:26 +0000 (UTC) Received: (qmail 4292 invoked by uid 500); 23 Mar 2015 14:42:25 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 4270 invoked by uid 500); 23 Mar 2015 14:42:25 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 4259 invoked by uid 99); 23 Mar 2015 14:42:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Mar 2015 14:42:25 +0000 Date: Mon, 23 Mar 2015 14:42:25 +0000 (UTC) From: "Peer Weidner (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-7660) Cordova iOS File-Transfer download memory leaks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-7660?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14375981#comment-14375981 ] Peer Weidner commented on CB-7660: ---------------------------------- Nice work. I'll check if this solves my problem as well. Thanks for contributing. > Cordova iOS File-Transfer download memory leaks > ----------------------------------------------- > > Key: CB-7660 > URL: https://issues.apache.org/jira/browse/CB-7660 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin File Transfer > Affects Versions: 3.5.0 > Environment: iOS 7.0.3 on iPad2 - Cordova 3.5 > Reporter: Jordi Valls Carbonell > Assignee: Shazron Abdullah > Attachments: LargeFiles.png, SmallFiles.png > > > File-Transfer memory leaks downloading files, no memory is released for each file downloaded, finally i got "Memory Warning". > To test add a button and call "testDownload" function every time console confirmation message is displayed ("DOWNLOADED OK") > {code} > function win(entry) > { > console.log("DOWNLOADED OK"); > } > function fail(error) > { > console.log("ERROR!"); > console.log(error.code); > } > function testDownload > { > var url = "http://upload.wikimedia.org/wikipedia/commons/5/5b/Ultraviolet_image_of_the_Cygnus_Loop_Nebula_crop.jpg"; > var filename = "filename.jpg"; > var uri = encodeURI(url); > window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) { > fileSystem.root.getFile(filename, {create: true, exclusive: false}, function(fileEntry) { > var localPath = fileEntry.toURL(); > var ft = new FileTransfer(); > ft.download(uri,localPath,win,fail,false); > },function(error){console.log("errore 1: " + error.code);}); > },function(error){console.log("errore 2: " + error.code);}); > } > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org