C ++ abnormal

xiaoxiao2021-03-06  16

I personally didn't use C anomalies. It mainly thinks that consumption is too big, so I have always returned value, I don't think it is inconvenient, but I have encountered some memory operation anomalies, it should be the system. Designed vulnerabilities, but it is difficult to capture, customer requests to resolve the problem suddenly hanging as soon as possible, there is no way, thinking that can be solved with capture structured abnormalities, means that if the memory operation error is found, give up those possible operations, To ensure the normal procedure of the program, this is temporarily eased.

In fact, think about it, it is also useful, especially in this case (structural exception), after all, this is also a solution proposed by Windows.

In fact, as long as you don't use an exception as a regular error solution, it is also very convenient to solve some "abnormal" situation.

转载请注明原文地址:https://www.9cbs.com/read-44179.html

New Post(0)