This sample connects to the database opened by createdb sniffer, then throws an exception to simulate a crash.
In a console window run:
createdb_snifferThen, in a second console window, run:
ConnectCtxIt is more instructive to run one instance in your development environment debugger, stepping through the code.