PDA

View Full Version : Flash Error in Open Source Application


SK_Shahzad
08-17-2006, 08:11 PM
Dear friends
We are involved in developing an open source forum application in Open Laszlo. http://code.google.com/p/geniforum/

I am facing following Error
"script in this movie is causing Macromedia Flash Player 8 to run slowly. If it continues to run, you computer may become unresponsive":

Can anyone guide us in this problem plz.

Regards
Khurram Samad

benjamin
08-18-2006, 05:41 PM
This usually means you have an infinite loop in the laszlo application, or that you're trying to do something which is taking a long time. Reduce the number of views, number of classes, number of Debug.writeln's, etc.

SK_Shahzad
08-18-2006, 07:33 PM
Thanks a lot for the tip - We will look at the application from this perspective. Do you know about some profiling utility in lazlo which can help us in doing so ?
Regarding debug statements ; we are running in solo mode and the debug is set to false in canvas. Do you still suggest removing it.

benjamin
08-18-2006, 08:59 PM
Okay, if you're running SOLO, then Debug.write statements probably aren't the problem. Look instead for instantiating a huge dataset or many views. Try stripping out the internals of complex views, then adding them back in, one at a time, then see if you still get the "responding slowly" error. This should allow you to zero in on the problem.

There is a profiler available -- see
http://wiki.openlaszlo.org/CallProfiler
for instructions. The profiler is complex, though.

In general, I recommend standalone test applications for each of the important views.