You are here: Configuration > Common Configuration > Automatic Shutdown

Automatic Shutdown

With this setting you can disable the shutdown monitoring for db4o. By default, db4o will close the database when the CLR exits. However on some embedded devices this can lead to issues. So disable it when you experience problems when terminating the application.

Note that its recommended to dispose the object-container / -server when you close the application anyway, even when this setting is enabled.

IEmbeddedConfiguration configuration = Db4oEmbedded.NewConfiguration();
configuration.Common.AutomaticShutDown = false;
CommonConfigurationExamples.cs: Disable automatic shutdown
Dim configuration As IEmbeddedConfiguration = Db4oEmbedded.NewConfiguration()
configuration.Common.AutomaticShutDown = False
CommonConfigurationExamples.vb: Disable automatic shutdown