[Laszlo-dev] destroy http resource loading view hangs application
Denis Bohm
denis at fireflydesign.com
Sun Jan 29 22:41:51 PST 2006
The program below removes the images from a container and then loads ten
images when you click the button. If you wait for all the images to
load then it works fine. If you click before all the images are loaded
it hangs. Am I doing something wrong or is this a bug?
<canvas>
<simplelayout axis="y"/>
<button text="click me">
<method event="onclick"><![CDATA[
// remove old subviews
var subviews = content.subviews;
for (var i = subviews.length - 1; i >= 0; --i) {
var view = subviews[i];
view.destroy();
}
// add some new ones
for (var i = 0; i < 10; ++i) {
new LzView(parent.content, {resource:
"http:icons/star.png"});
}
]]></method>
</button>
<view name="content">
<simplelayout axis="x"/>
</view>
</canvas>
More information about the Laszlo-dev
mailing list