I have an application that utilizes ODBC to access a database. Often the app crashes and shuts down when user activity is high. I believe there's more than one issue, but I suspect at least one is because of a deadlock. I have also determined the following statement will cause a crash if a SP is called and it doesn't return any results (it's fine if something is returned:
An 'Access violation reading location ...' occurs in afxdb.inl which is called from dbcore.cpp.
Is there any way to recover from these types of errors without the entire application crashing? I tried using a Try Catch block in the application, but it has no effect.