View Full Version : Application Crash
dhendyogesh
07-27-2006, 04:04 AM
Hi Every Body,
The Problem i am faces is as follows:
I have all my dataset declared in the canvas.in my application i have maintained state. i have a scenario where on the click of an button a repopulate the dataset with the reqired data through an asp file request. after reqeusting for the data i apply the new state. while new data is getting loading if some body click on an other button then the my application crashes. ie any request after that is not fired..
can any body help me. how to resolve theis problem..thanx in advance..
regards
yogesh
Shelby
07-27-2006, 07:27 AM
you could disable the interface during the dataset's request.
you could display a modal progress window (see LzModeManager)
you could try setting the queuerequests attribute of your dataset so that all requests are made.
Make sure you aren't destroying a class instance that contains the active dataset.
There are probably more things you can try. I've found these issues come down to design and sequencing. Just a matter of determining what goes where.
edutf
11-04-2006, 08:43 PM
"Make sure you aren't destroying a class instance that contains the active dataset."
Ok! What should I do when I want to destroy aclass instance that contains active datasets?? What should I do first? Just adding the "dataset.abort();" in the destroy method is ok??
What is an "active" dataset? Is it a dataset that is connecting to HTTP request??
How about setSource in LzView? Does it have a problem if u destroy a LxView instance that is loading the resource at this moment?? Again, am I ok if I call "LzView.unload()" in the ondestoy event??
I'm using local datasets and my application is based on dialogs that contains their own datasets. Sometimes the user destroy it before the request is completed and I have been experiencing the same problens.
After that, all datasets doesnt work anymore.
Thank you,
edutf
11-04-2006, 08:59 PM
"Make sure you aren't destroying a class instance that contains the active dataset."
Sorry, I'm new in Laszlo and Im trying to figure out the best way that fit my needs.
I have developed an application based in dialogs, and each dialog contains their own local datasets. (datase tag is child of dialog tag). Sometimes, user destroy the dialog before the dataset complete the transaction, so, the dataset is destroyed too. After the problem occurs all datasets in the program doesnt work any more.
What do u mean with "active datasets"? Is it a dataset processing some request at the moment??
How about setSource in LzView? Does it have a problem if u destroy a LxView instance that is loading the resource at this moment?? Because I think the problem has some relation with this message:
WARNING: «LzMediaLoader#25| «MediaLoadObj#24| ImageView (timedout)»».returnData: «MediaLoadObj#24| ImageView (timedout)» already loaded
What should I do when I need to destroy this class containing an active dataset?? Am I fine just adding dataset.abort() or LzView.unload() inside the ondestroy event of the class I want to destroy?
Thank you,
edutf
06-26-2007, 04:19 PM
An year later, does someone could clarify how could I work around the above points?
Evangelus
06-27-2007, 06:37 AM
I also had a problem where the loader "died" if the requesting view was destroyed for some reason. I found this code on the net - I don't pretend to know what it does, but it works!
<script>
LzMakeLoad.unload = function ()
{
this.loader.unload( this.loader.mc );
}
LzMakeLoad.destroy = function (recur)
{
this.loader.unload( this.loader.mc );
super.destroy( recur );
}
</script>
micduffy
08-26-2007, 01:39 AM
This functionality doesn't seem to work in LPS4.0.3
Can't seem to find any mention of the LzMakeLoad in the distro.
What version of LPS are u guys using for this workaround ?
Evangelus
08-26-2007, 05:23 AM
I use OL3.3.3.
I didn't think this was a problem with OL4.x.x (but I don't use it so I don't know).
Phil
micduffy
08-26-2007, 08:07 PM
I had a problem which seemed very similar to the symptoms described.
What I did to fix it was to empty the LzLoadQueue at the point where I needed to abort all active loaders and then to submit my LzDataset request.
Seemed to do the trick :)
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.