[ 
https://issues.apache.org/jira/browse/FLEX-33881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13823221#comment-13823221
 ] 

Maurice Amsellem commented on FLEX-33881:
-----------------------------------------

Fixed in Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/03cf3a2e

API Change:
(+) mx.rpc.AbstractInvoker.keepLastResult=true|false
(+) mx.rpc.AbstracService.keepLastResult=true|false

> Add option to not store AbstractInvoker last call result
> --------------------------------------------------------
>
>                 Key: FLEX-33881
>                 URL: https://issues.apache.org/jira/browse/FLEX-33881
>             Project: Apache Flex
>          Issue Type: New Feature
>          Components: RPC: RemoteObject
>    Affects Versions: Apache Flex 4.9.0, Apache Flex 4.10.0, Apache Flex 4.11.0
>            Reporter: Maurice Amsellem
>            Assignee: Maurice Amsellem
>            Priority: Minor
>             Fix For: Apache Flex 4.12.0
>
>
> *Context:*
> AbstractInvoker is the superclass of all async operation 
> (RemoteOperation,HttpService, etc.).
> It always stores by default the result of the last call, than can then be 
> accessible through its lastResult property.
> This means the last call result won't be garbage collected, unless 
> clearResult() is called explicitly.
> This can be an issue if the remote operation is called one or rarely, and 
> returns large result (Typically, remote operations that are called at 
> application startup to load configuration data).
> *Request:*
> Add an option so that last call result is not stored.
> This options should be added at different levels:
> - static class property , to be set in ActionsScript and that will affect all 
> remote operations
> - boolean property to be set in mxml , in common mxml mx.rpc.* tags:
> *  mx:RemoteObject
> * mx:HttpMultiService
> * mx:WebService
> * mx:HttpService 



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to