Results 1 to 2 of 2

Thread: Updating a View

  1. #1
    Junior Member
    Join Date
    Aug 2012

    Updating a View


    I am designing a web application, and I have troubles when I update a view in the 50th time.

    I put the 3D object in the view using:

    Code :
    document.getElementById(0).appendChild(Viewer( 3D_Object, 250, 250, 5).gl.canvas);

    And when I want to update the view, because I manipulate this 3D object, I use:

    Code :
    document.getElementById(0).appendChild(Viewer( 3D_Object_new, 250, 250, 5).gl.canvas);
    3D_Object = 3D_Object_new

    The updates work well in the firts 49 times, but in the time 50 the program hangs.

    The view is here:

    Code :
    			body {
      				font: 14px/20px 'Helvetica Neue Light', HelveticaNeue-Light, 'Helvetica Neue', Helvetica, Arial, sans-serif;
      				max-width: 800px;
      				margin: 0 auto;
      				padding: 50px 50px 200px 50px;
    			pre, code {
      				font: 12px/20px Monaco, monospace;
      				border: 1px solid #CCC;
      				border-radius: 3px;
      				background: #F9F9F9;
      				padding: 0 3px;
      				color: #555;
    			pre { padding: 10px; }
    			h1, h2 { font: bold 50px/50px 'Helvetica Neue', Helvetica, Arial; }
    			h2 { font-size: 30px; margin: 100px 0 0 0; }
    			a { color: inherit; }
    			.viewer { width: 250px; height: 250px; background: #EEE; }
    			table { border-collapse: collapse; margin: 0 auto; }
    			td { padding: 5px; text-align: center; }
    			td code { background: none; border: none; color: inherit; }
    			canvas { cursor: move; }

    What is wrong with this?


  2. #2
    Junior Member
    Join Date
    Aug 2012

    Re: Updating a View

    The firts 1-49 times (all is correct):

    The 50th time (exist an error in the update):


Similar Threads

  1. Updating struct in Opencl with method call
    By luizdrumond in forum OpenCL
    Replies: 0
    Last Post: 09-03-2012, 01:39 PM
  2. frame updating
    By JazzD in forum OpenGL ES
    Replies: 4
    Last Post: 10-20-2004, 08:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean