Hidden access violation on shutdown
Posted: Tue 27 Jan 2009 12:39
Demo version of SDAC 4.70.0.42
Delphi 6, Service pack 2
MS SQL Server 2008
If Delphi's 'break on exception' is active, when the program shuts down, it triggers an access violation (on a call to CoUninitialize in ComObj.pas). This exception is not seen when running the program outside of the IDE, or with 'break on exception' switched off, but the error still occurs internally -- presumably something is trapping the exception and either handling or ignoring it.
This appears to happen even with a very simple program, with just TMSConnection and TMSQuery components and a simple query.
Delphi 6, Service pack 2
MS SQL Server 2008
If Delphi's 'break on exception' is active, when the program shuts down, it triggers an access violation (on a call to CoUninitialize in ComObj.pas). This exception is not seen when running the program outside of the IDE, or with 'break on exception' switched off, but the error still occurs internally -- presumably something is trapping the exception and either handling or ignoring it.
This appears to happen even with a very simple program, with just TMSConnection and TMSQuery components and a simple query.