title: Error #1023: Stack overflow occurred
body: <p>I've read a lot of posts about this error. Yet it does not solve my problem. In my case, there are loop working through two funcions like this:</p>
  
  <pre><code>function getData() {
      //doing some stuff here
      call_socket("data", callback); //When response from socked server has been received, call callback function
  }
  function callback(data:Object) {
      if(!data) { getData(); } //if data is null, continue loop
      else { //stop the loop }
  }
  </code></pre>
  
  <p>I got an error on both of these functions:</p>
  
  <pre><code>Error #1023: Stack overflow occurred.
  </code></pre>
  
  <p>I understand that this error tells me that I'm calling the functions repeatedly, but in my case, that is what I got to do there.</p>
  
  <p>Is there any way to solve this?</p>