problem with large scripts?

Hello,


I have a problem which is in my opinion caused of a large script. The script has about 28000 lines, no errors and should work. But when I try to execute it, scripters hangs up. If I use the debugger, then my program stops at the "execute"-command, without debugger at "executesubroutine". I get no errors, it just stops at this line.

Is there a limitation for scripts?

  try
                      FProtocol.Add('CreateJob wird ausgeführt...');

                      if FUseDebugger then
                        begin
                          FScriptDebug.RoutineName := 'CreateJob';
                          FScriptDebug.Execute;  <------
                        end;

                      FScripter.ExecuteSubRoutine('CreateJob',myOriInputFile); <-----

                      FProtocol.Add('CreateJob beendet.');
                      Application.ProcessMessages;
                    except
                      on e: Exception do
                        begin
                          FErrProtocol.Add('Fehler beim Aufruf von CreateJob mit "'+myOriInputFile+'"');
                          FErrProtocol.Add(e.Message+#13#10+e.StackTrace);
                        end;
                    end;


Thanks in advance for your help,
Stefan.

There should be no limitation, I guess, at least I never saw something like this. The debugger doesn't even step into the Execute routine?

That's right. My program is stuck when I try to execute the debugger or the routine. I changed the scripts that they are not that long (packed some parts in procedures). Now it works (as long as a customer writes very long scripts...


Stefan.