0 Replies Latest reply on Jun 18, 2009 11:00 AM by mar808

    doc crashes on close

    mar808

      Ok;

       

           I have a very simple javascript on document level that is causing the pdf doc to crash when it is closed:

       

      function show() {
          console.show();
          console.clear();
         
          var aMy3DAnnots = getAnnots3D(0);
          var c3d = aMy3DAnnots[0].context3D;
         
          this.timer = new c3d.TimeEventHandler();
         
          this.timer.onEvent = function(event) {
              console.println("ok");       
          }
                 
          c3d.runtime.addEventHandler(this.timer);
      }

       

         Then I have a simple button that has a single line javascript:

      show();

       

           The function executes correctly and shows "ok" in the console as expected. The problem is when I try closing the document it provides an exception error and the pdf crashes. By the way, in the annotation3d i have a simple cube u3d object.I also tried to put the entire script in the same button but it is also crashing.

       

           Can someone please help?

       

      Thanks,