title: Runtime Error : RunTime Error : map/set iterators incompatible
body: <pre><code>void Manager::Simulate(Military* military, Shalishut* shalishut,char* args[]){
      Simulation* simulation = Simulation::GetInstance();
      Time* time = Time::GetInstance();
      multimap&lt;int,Task*&gt;::const_iterator itTasks;
      itTasks = simulation-&gt;GetTasks().begin();
      while(itTasks != simulation-&gt;GetTasks().end()){
          while (itTasks-&gt;second-&gt;GetTimeStamp() == time-&gt;GetTime()){
              //TaskExecute(itTasks-&gt;second,military,shalishut,args);
              itTasks++;
          }
          // Unit take car of vehicles
          time-&gt;TimeIncrease();
      }
  }
  </code></pre>
  
  <p>in Debug is notice that the project falls when it comes to the first while.</p>
  
  <p>thanks for help.</p>