Skip to main content
Inspiring
April 25, 2012
Answered

Does an amount of maximum code lines exist?

  • April 25, 2012
  • 1 reply
  • 563 views

Hi,

I posted this thread a while ago: http://forums.adobe.com/thread/983062 and noone was able to help me still.

I started to do a lot of testing, one of which included making a copy of the project data and commenting out parts of it. After a while of trying to find a pattern to the error I noticed, that the process of building the ipa was sucessful not depending on what I comment out but rather on how much.

My main function has 2416 lines of code. Earlier I tried commenting out about 200 lines and it came out, that it didn't matter if I did that on at the beginning of a certain function, or at the end of it.

The ipa was successfully build without the 200 lines at the beginning or without the 200 lines at the end. But when I leave the code complete, I get the out-of-memory-error as mentioned in the thread the link to which I posted above.

The other idea is that maybe there is a limit of memory for saving data into arrays. I use two-dimensional arrays and the function I use them in consists of about 2000 lines with code, storying data into them. There are 18 arrays overall with averagely 3 subarrays which store about 20 entries each, resulting in about 1080 filled array cells. The 200 lines I made comments of are 1/8th part of the whole function.

So now the three questions are:

1. Is there a limit to code lines?

2. Is there a limit to arrays/array entries?

3. Is there a way to increase memory for the ipa building process?

Thank you very much,

GDdept

This topic has been closed for replies.
Correct answer SolVen_GDdept

Okay seems I have found a limit. The limit is about how much Strings can be saved into arrays within one function. I just separated the function into 6 functions and the building worked.

1 reply

SolVen_GDdeptAuthorCorrect answer
Inspiring
April 25, 2012

Okay seems I have found a limit. The limit is about how much Strings can be saved into arrays within one function. I just separated the function into 6 functions and the building worked.