C++ - Program gets lost in a function call
<p>Here I have a piece of code which is a part of a class named <em>Sistema</em> (all the declarations are in a separate file). The first function is supposed to call the next one, which is a recursive function that reads some tree (<em>Arbre</em> is a custom implementation of <em>tree</em>).</p>

<p>While running the program the output shows the "entering function" line, just before the funcion call, but I never get "new node" line. So my program gets lost somewhere between the funcion call and the function itself, even before any recursive call. I never got a problem like this before. Any clue about what is happenig?</p>

<p>Here is the code:</p>

<pre><code>#include "Sistema.hpp"

    ............

  list&lt;int&gt; Sistema::proc_peticion(int pelicula, int tiempo, int tamano){
    list&lt;int&gt; srv;
    Arbre&lt;int&gt; arb = estructura;
    bool unidad_tmp = false;
    int dist = 0, bw = 0;
    cout &lt;&lt; "entering function" &lt;&lt; endl;
    camino(srv, arb, pelicula, tiempo, tamano, unidad_tmp, dist, bw);
    return srv;
  }

    ............

  void Sistema::camino(list&lt;int&gt;&amp; srv, Arbre&lt;int&gt;&amp; arb, const int&amp; pel, const int&amp; tmp, const int&amp; size, bool&amp; unidad_tmp, int&amp; dist, int&amp; bw){
    cout &lt;&lt; "new node ";
    if (not arb.es_buit()){

        ..................

    }
 }
</code></pre>

<p>I tried to leave only the parts of the code that might be useful, to make it more readable. Let me know if you need something more.</p>

<p>Thanks in advance</p>
