[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: EXE Code too large (really?)



PureBytes Links

Trading Reference Links

> Now, by this point, the individual components are pretty small
> (1.5 pages of text maybe, each?)  ...Why does PowerEditor have no
> problem at all validating--even the "whole" version; and when I've
> broken it into small pieces Charting still refuses to load it with
> "EXE code too large"?  

My understanding (which I don't guarantee to be right :-) :

The Power Editor checks the size of the CURRENT CODE UNIT (the 
system, indicator, etc. that you're writing), without considering the 
size of any functions you call.

When you load it into TS, it has to collect together all the 
functions &etc and link them into one executable.  That resulting 
EXE, **including all functions**, must fit into 64kb.  So it does you 
no good to split code out into functions.

If you can split some system code into an IncludeSystem, that will 
help, since apparently that Included system is linked separately.  
But it's often tricky to separate logic out into a separately 
included system, since you can't pass any computed variables -- only 
inputs.

Gary