Just tested this code (yours had some typo's I think):

DynAPI.onLoad=function() {

        var mLayer;
        var a=[];
        mLayer = new DynLayer();
        DynAPI.document.addChild(mLayer);
        for(var i=0;i<1001;i++) {
                a[i] = new DynLayer();
                mLayer.addChild(a[i]);
                status=i
        }

        alert('done')
}

Notice that it takes a LOOOOONG while to create 1000 layers, the browser is
not responding
because it's busy generating those layers..  it runs without problems on my
system
at work (p3 600mhz 128mb) and it works without crashing (and for your
information, your code
also runs, but doesn't really create any child layers)

Also note that this example is not what you posted on the bugs at
sourceforge, you posted
about the problem occuring while testing your table things.

So as I explained, I couldn't get normal code to crash the browser, or any
of the
other examples.. so it sounded like it was your table widget causing
problems.

Ofcourse it just not smart to generate 1000 layers on one page,
memory problems and speed problems, something we can't fix in the DynAPI
(speed maybe, but not the
memory problem)

hope this clarifies things,

Pascal Bestebroer ([EMAIL PROTECTED])
Software ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Eytan
> Heidingsfeld
> Verzonden: maandag 12 februari 2001 15:49
> Aan: Dynapi-Dev
> Onderwerp: [Dynapi-Dev] Stability
>
>
> Pascal, you keep complaining that my stability problems are to hard to
> recreate. Try IE5 with a page that has this code
>
> DynAPI.onload = function(){
> var mLayer;
> var a=[];
> mLayer = new DynLayer();
> DynAPI.document.addChild(mLayer);
>
>
> for(var i=0;i>1001;i++);
> a[i] = new DynLayer();
>
> mLayer.addChild(a[i]);
> }
> Browser freezes and dies.
> This on PIII 667 256 RAM
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to