force GC between steps
Project: http://git-wip-us.apache.org/repos/asf/flex-utilities/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-utilities/commit/2be4cb6a Tree: http://git-wip-us.apache.org/repos/asf/flex-utilities/tree/2be4cb6a Diff: http://git-wip-us.apache.org/repos/asf/flex-utilities/diff/2be4cb6a Branch: refs/heads/develop Commit: 2be4cb6af6a085b8bbf8d4e4feb7b8a73b310f02 Parents: a528b46 Author: Alex Harui <aha...@apache.org> Authored: Sat Jul 5 08:37:53 2014 -0700 Committer: Alex Harui <aha...@apache.org> Committed: Sat Jul 5 21:54:03 2014 -0700 ---------------------------------------------------------------------- ant_on_air/src/org/apache/flex/ant/tags/Target.as | 14 ++++++++++++++ 1 file changed, 14 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-utilities/blob/2be4cb6a/ant_on_air/src/org/apache/flex/ant/tags/Target.as ---------------------------------------------------------------------- diff --git a/ant_on_air/src/org/apache/flex/ant/tags/Target.as b/ant_on_air/src/org/apache/flex/ant/tags/Target.as index 7bca9f5..8c3272c 100644 --- a/ant_on_air/src/org/apache/flex/ant/tags/Target.as +++ b/ant_on_air/src/org/apache/flex/ant/tags/Target.as @@ -19,6 +19,7 @@ package org.apache.flex.ant.tags { import flash.events.Event; + import flash.net.LocalConnection; import mx.core.IFlexModuleFactory; @@ -124,6 +125,19 @@ package org.apache.flex.ant.tags private function processSteps():Boolean { + // 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 (ifProperty != null) { if (!context.hasOwnProperty(ifProperty))