1 Reply Latest reply on Apr 29, 2014 10:21 PM by Sachin123

    Issue with the FABridge#callASMethod method

    Sachin123

      Hello ,

       

      I our application we are using the FABridge.js file do display the hierarchical topology data. While I reload the data, the following method from the FABridge.js files gets called :
      <snip>

      callASMethod: function(objID, funcName, args)

          {

              if (FABridge.refCount > 0)

              {

                  throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");

              }

              else

              {

                  FABridge.refCount++;

                  args = this.serialize(args);

                  retVal = this.target.invokeASMethod(objID, funcName, args);

                  retVal = this.handleError(retVal);

                  FABridge.refCount--;

                  return retVal;

              }

          },
      </snip>


      The issues is that, the "retVal = this.target.invokeASMethod(objID, funcName, args);" executed with exception and hence the refCount will not be reset to 0. hence , when next time this method gets called the error "throw new Error("You are trying to call recursively into the Flash Player which is not allowed. In most cases the JavaScript setTimeout function, can be used as a workaround.");" is thrown.

       

      What I need from this forum is :
      1. How can get the exception stact trace in IE 9 so that I can verfiy that why this.target.invokeASMethod(objID, funcName, args); the statement failed.
      2. What is the meaning of this statement "this.target.invokeASMethod(" ? Does it similar to reflection technique we have in java.


      Thanks in advance.