How to prevent application crash
-
Basically, this must be safe coding.
But we can't cover all the case from user,
So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible. -
try to always use shared and unique pointers when possible and they can help some. Also run debugger tool through your apps regularly. C++ can surprise you sometimes if you do not code carefully.
I do not think crash is a big deal anymore with all tools available. It is relatively easier to fix crashes nowadays.
-
Basically, this must be safe coding.
But we can't cover all the case from user,
So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible.@Sabrac said in How to prevent application crash:
So are there any solution to prevent application crash
Build your app so it does not crash in the first place. This is what a software engineer is doing
-
@Sabrac said in How to prevent application crash:
So are there any solution to prevent application crash
MISRA
AUTOSAR
coding standards for safety critical systems. -
Basically, this must be safe coding.
But we can't cover all the case from user,
So are there any solution to prevent application crash (reason make app crash maybe something like not check pointer is null or other unexpected exception)
For any application working with data, i have modify a lot of thing and it crash before i save my working file, its terrible.You fix the bugs that lead to crashes. There's no magic. If there was, you would have heard about it already.