0 Replies Latest reply on Nov 14, 2012 11:50 AM by JVM-

    Unknown Problem with long String

    JVM- Level 1

      We purchased code from a third paty, but it wouldn't compile on our systems. After much debugging the source was found. The below code causes an "Unknown Problem" on our systems (with no further details).

       

      Is it possible for someone else to compile the below Test.as and see what the results are?

       

      On our systems the below code throws an "Unknown Problem" error

       

      Removing two of the repeated lines (shortening it by two lines) compiles without error.

       

      Thanks,

       

      JVM

       

      package

      {

          public class Test

          {

              public function generateCode():String

              {

                  // Generate styles

                  var toReturn:String = "";

                  var test:String = "";

       

                  // Add properties

                  toReturn = "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" + // 10

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" + // 20

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" + // 30

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" + // 40

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" +

                      "test=\"" + test + "\"\n" + // 50

                      "test=\"" + test + "\"\n" + // 51

                      "test=\"" + test + "\"\n" + // 52

                      "test=\"" + test + "\"\n" + // 53

                      "test=\"" + test + "\"\n" + // 54

                      "test=\"" + test + "\"\n" + // 55

                      "test=\"" + test + "\"\n" + // 56

                      "test=\"" + test + "\"\n" + // 57

                      "test=\"" + test + "\"\n" + // 58

                      "test=\"" + test + "\"\n" + // 59

                      "test=\"" + test + "\"\n";    // 60

                 

                  return toReturn;

              }

          }

      }