on 07-16-2007 11:54 AM
Hi experts ,
While deploying the VC model , i m getting this error :
Error in compiling Flex application: Error: A function in the code exceeds the 64K byte limit (actual size = '65557'). Since the problem occurs in the compiler-generated deferred instantiation code, please refactor/componentize portions of this document.
(/usr/sap/NW2/JC00/j2ee/cluster/server0/GUIMachine_Business_Packages/Contribution_Margin_36461/FLEX_COMPILATION_FOLEDR/AAD15VY.mxml:19)
Failed to compile AAD15VY.mxml
.
Could any one help me out in solving this issue ..its urgent ...
Your suggestions will be rewarded.
Thanks,
Pratima
You have to remove few components from your model to decrease the compiler generated LOC.
Check the following link for detailed solution:
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=936390
Taken from SAP Notes:
<i>Solution
Doing the following may help:
1.Divide problematic iViews into a number of nested iViews.
2.Optimize each model to reduce the number of elements that it
contains:
a.Reduce the number of signals by merging signals of the same name.
b.When your application updates forms with read-only fields, use
expression boxes and a data store instead of signals.
c.Minimize the use of animations in your models, including form
sliding and chart animation effects
d.Use a data store to store variables, instead of invisible forms.
To display messages, use a simple text rather than a static dynamic
expression.
3.For on-the-spot, temporary workarounds, you can try dragging an empty
layer onto the Design board. This sometimes solves the problem ad
hoc, but is not recommended as a best practice.
</i>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gerhard,
could u plz explain in details as to how did u remove the last longer statements in ur model.
In my model i haven't included any statements . I just have some conditions to check ?
Regards,
Pratima.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
These are some of the instances which gives arise to 64k problem:-
If you have made use of tool tip for the plaintext added in your model which is very long.
If you have too many plain text ui elements with a long sentence,you may get 64k size error.
If you have too many plain text ui elements with a long sentence in form + too many forms in nested iView ,you may get 64k size error.
Regards
Navneet
Hello pratima and Mario,
I faced the 64k problem not long ago and found out, that this error has different reasons than the 32k problem you refer to.
The 64k problem refers to a single function or statement that is too long for the Flex compiler, be a bug or not. Unlike the 32k error, the message is a bit clearer. (<i>...A function in the code exceeds the 64K byte limit...</i> ).
Unfortunately I cannot remember the exact statement I built. I removed the last longer statements that i had added lately to my model and the message vanished.
Maybe the part of the message:
<i>...AAD15VY.mxml:19</i>
gives a better information where the problem can be found in the XML-file, instead of try and error.
Hope it is of any help for you
Gerhard
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.