[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
turns automatic shutdown of the engine on and off.
Namespace: Db4objects.Db4o.Config
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub AutomaticShutDown ( _ flag As Boolean _ ) |
C# |
---|
void AutomaticShutDown ( bool flag ) |
Visual C++ |
---|
void AutomaticShutDown ( bool flag ) |
Parameters
- flag
- System.Boolean
whether db4o should shut down automatically.
Remarks
turns automatic shutdown of the engine on and off.
Depending on the JDK, db4o uses one of the following two methods to shut down, if no more references to the ObjectContainer are being held or the JVM terminates:
- JDK 1.3 and above:
- JDK 1.2 and below:
and code
in the finalizer.
Some JVMs have severe problems with both methods. For these rare cases the autoShutDown feature may be turned off.
The default and recommended setting is
.
Depending on the JDK, db4o uses one of the following two methods to shut down, if no more references to the ObjectContainer are being held or the JVM terminates:
- JDK 1.3 and above:
![]() | |
---|---|
Runtime.addShutdownHook() |
- JDK 1.2 and below:
![]() | |
---|---|
System.runFinalizersOnExit(true) |
Some JVMs have severe problems with both methods. For these rare cases the autoShutDown feature may be turned off.
The default and recommended setting is
![]() | |
---|---|
true |