Quote Originally Posted by tbscope View Post
The right way to handle this is a debugger.
Run your code in a debugger and look at the backtrace to see where the crash happened
Hi tbscope,
Thank you for your comment. Even so I was using debugger I did not backtrace the reason carefully. Just now I looked at it once more and found that I was trying to delete non allocated memory in the destructor of my data class:
if(input_2d_array) for(int i=0;i<size_x;i++) delete [] input_2d_array[i]; // size_x can be sometimes bigger than the actual size of input_2d_array[i]

Thanks again.
I will test it further and come back if there will be crashes again.