title: Very Strange behavior: My c++ program suddenly exit but it run flawlessly o the end in debug mode in Eclipse CDT
body: <p>I have my own c++ program in Eclipse CDT in ubuntu 64-bit which use an external encoding detection library. As you might guess, I use gcc to compile my program and GDB for debug. Now the most strange behavior I have seen in my programming life: While I debug my program using "Debug As" in Eclipse, it works perfectly to the end but when I select "Run As" it will terminate in the middle of the program suddenly without showing any error or exception message in console!!!</p>
  
  <p>Does someone have any idea about this strange problem?</p>