Hi, I am designing a web application, and I have troubles when I update a view in aproximatetly the 50th time. I put the 3D object in the view using:
new_view =new Viewer( 3D_Object, 250, 250, 5); document.getElementById(0).appendChild(new_view.gl.canvas);
And when I want to update the view, because I manipulate this 3D object, I use:
old_view = new_view;new_view =new Viewer( 3D_Object, 250, 250, 5); document.getElementById(0).removeChild(old_view.gl.canvas);document.getElementById(0).appendChild(new_view.gl.canvas);
The updates work well in the firts 49 times aproximatetly, but in the time 50 the program hangs. In the firts times: When the code breaks in the 50th time: What is wrong? Tanks