Hi
I receive a System.AccessViolationException when I shut down my Windows Forms application. We have recently upgraded from CR XI to CR 2008 and this problem has not occured before.
In the application I use CrystalReportsViewer to show reports. It seems that the error does not occur if I only show one report and then exit the application. If I show two different reports after one another, I get the error when the application shuts down. Also, the exception is thrown after the forms have been closed, i.e. after the last line of code in the Main method. Hence it seems to be outside of my direct control. The call stack only says "external code".
Exception:
System.AccessViolationException was unhandled
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="crdb_adoplus"
StackTrace:
at EnterCriticalSection(_RTL_CRITICAL_SECTION* )
at DbRecursiveMutex.lock(DbRecursiveMutex* )
at DbSynchronized.(DbSynchronized* , DbRecursiveMutex* mutex_)
at DbTerminate(UInt16* languageCode, DbErrorInfo** errInfo)
I am runnig Crystal Reports 2008 SP1 and Visual Studio 2005. The error occurs both on my dev machine in debug mode and on my test machine in release mode.
Any help is greatly appreciated.
Best Regards
Björn Lindströ