I think we have a bug that the loadqueue leaks connections if you a 
destroy a view that is loading. we should fix this. 
http://www.openlaszlo.org/jira/browse/LPP-1953

A

> >> <canvas debug="true">
> >>     <debug width="800" height="600" />
> >>     <button>Fast Destroy
> >>         <method event="onclick">
> >>         <![CDATA[
> >>             var url = "http://flash-france.com/files/flash/menu/
> >> FFmenu.swf";
> >>
> >>             for (var i = 0; i < 10; i++){
> >>
> >>                 if (screen.getAttribute("screenView")){
> >>                     screen.screenView.destroy();
> >>                 }
> >>
> >>                 screen.setAttribute("screenView", new LzView(screen,
> >> {resource : url}));
> >>             }
> >>         ]]>
> >>         </method>
> >>     </button>
> >>     <window id="screen" width="800" height="600" y="30" />
> >> </canvas>
> >>
> >> If you try to click on the button, you will normally have nothing  
> >> else
> >> than a white screen and if you type "canvas" in the laszlo
> >> debugger, you
> >> won't have any response.
> >>
> >> An other test i made is removing the 'for loop', but if you try to
> >> manually spam the button quick enough the same problem will happen,
> >> and
> >> the bigger the flash resource is in the view, the more frequent the
> >> problem will occur.
> >>
> >> A last test i made was to remove the destroy instruction in the 'for
> >> loop' and to modify the line constructing the new view as bellow:
> >>
> >>   for (var i = 0; i < 10; i++){
> >>       screen.setAttribute("screenView", new LzView(screen,  
> >> {resource :
> >> url, y : i*10}));
> >>   }
> >>
> >> Then, you will see the different views ten times, without crashing,
> >> so i
> >> concluded that the destroy method was really responsible for my
> >> problem.
> >>
> >> In fact i need to use destroy() or something doing the same thing,
> >> because i want to display alternatively based on user choice a normal
> >> view containing flash resource or a component i made containing some
> >> views, in the same window. Then, i have to destroy the previous
> >> view to
> >> display the new one. If you have any ideas which can help me without
> >> using destroy(), you're welcome too !
> >>
> >> Bastien HUBERT
> >>
> >> _______________________________________________
> >> Laszlo-dev mailing list
> >> [email protected]
> >> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> >
> > _______________________________________________
> > Laszlo-dev mailing list
> > [email protected]
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> >
> 
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> 
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to