In the source of SQLite, you can often see the figure of the Assert function, mainly in the debug mode of the assertion, is to determine whether the passed in the statement is true or FALSE, if it is true, continue to execute, if it is false, interrupted, and display the current interrupted file and line number. But here's a problem: on the release, it's disabled.
in the debug mode of VS, if a null pointer appears, in fact, it will be positioned immediately to the null pointer, and there is a clear stack, what needs superfluous?? have never understood.
Because of the attempt to learn the structure and way of the SQLite organization code, and by the way to bring about C + + exception handling, throw, exception never appear in my Code, in general, will judge whether the pointer is empty, will be executed!!
Application Scenarios for Assert functions