You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ah...@apache.org on 2015/07/08 14:49:59 UTC
[7/9] git commit: [flex-utilities] [refs/heads/develop] - add GC to
see if it reduces crashing
add GC to see if it reduces crashing
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/65d631e1
Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/65d631e1
Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/65d631e1
Branch: refs/heads/develop
Commit: 65d631e1f4d1fc2d24c258831bfca281e5518ea9
Parents: f88a773
Author: Alex Harui <ah...@apache.org>
Authored: Wed Jul 8 05:47:01 2015 -0700
Committer: Alex Harui <ah...@apache.org>
Committed: Wed Jul 8 05:49:28 2015 -0700
----------------------------------------------------------------------
.../ant_on_air/src/org/apache/flex/ant/tags/Get.as | 14 ++++++++++++++
1 file changed, 14 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/65d631e1/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Get.as
----------------------------------------------------------------------
diff --git a/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Get.as b/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Get.as
index 7da99a6..b8d76b6 100644
--- a/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Get.as
+++ b/flex-installer/ant_on_air/src/org/apache/flex/ant/tags/Get.as
@@ -26,6 +26,7 @@ package org.apache.flex.ant.tags
import flash.filesystem.File;
import flash.filesystem.FileMode;
import flash.filesystem.FileStream;
+ import flash.net.LocalConnection;
import flash.net.URLLoader;
import flash.net.URLLoaderDataFormat;
import flash.net.URLRequest;
@@ -85,6 +86,18 @@ package org.apache.flex.ant.tags
{
super.execute(callbackMode, context);
+ // try forcing GC before each step
+ try {
+ var lc1:LocalConnection = new LocalConnection();
+ var lc2:LocalConnection = new LocalConnection();
+
+ lc1.connect("name");
+ lc2.connect("name");
+ }
+ catch (error:Error)
+ {
+ }
+
if (skipexisting)
{
var destFile:File = getDestFile();
@@ -203,6 +216,7 @@ package org.apache.flex.ant.tags
private function progressHandler(event:ProgressEvent):void
{
+ lastProgress = event;
ant.progressClass = this;
ant.dispatchEvent(event);
}