The process appears to be deadlocked.....
===

    void Simulator::writeData()
    { 
      resultFile_<<"#"<<*gTime_<<"\n"; 
    	Wire* wire=wires_->next;
      char* c;
      while(wire!=0)
      {
    	  if(wire->getType() ==TYPE_OUT)
    	  {
    		  c=new char[wire->getSize()+1] ;
    		  wire->getValue(c);
    	          resultFile_<<"b"<<c<<" "<<wire->getName()<<"\n";  //output result
    
    		  //// for vector of results://///
    		  Tlogic tempEntery(wire->getSize());
    		  tempEntery.setTime(*gTime_);
    		  tempEntery.setLogic(c);
    		  goldenResult_.push_back(tempEntery);
    		  ////////////////////////////////
    	   	 // delete c;
          }
    	  delete c ; 
       wire=wire->next; 
      } 
    } //end of function writeData

/////////////////////////////////////////////////////////////////////
In this Code , i need a temp chat* variable , i named it c, 
i allocate a memory too it an then delete,
question: 
my program call this function correctly and it works, 
but for tenth time that i call this, program breaks and when i pause it this error appears:
The process appears to be deadlocked.....

how can I fix this error ???
// sorry for my English ;) 
