Could you please explain me little bit exact reason of this exception?
Our application communicates through GSM modem(mainly SMSs and CSD data) and this exception was generated after approx. 12 hours of running.
When this uncaught exception was generated other task (LED task) was still running (LED flashes in certain interval as it should).
So does it also mean that uncaught exception just stops thread where the exception was generated and rest application can still run?
@ mhstr - I believe that exception is thrown when there is invalid UTF8 data or the null byte in the buffer you are trying to convert. It’s hard to say unless we see the data that caused the exception.
When an exception is throw and not caught, I believe you are correct in that it stops the thread it was thrown on but not others.
@ mhstr - You could design a system which monitors all threads in the system using the members of the thread object. If you find one that has failed you can restart it based on your application’s needs.
Main itself is run on a thread that is not really different from any other thread. If it has an uncaught exception, it’ll stop as well.