[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 weak reference management on or off.
Namespace: Db4objects.Db4o.Config
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Sub WeakReferences ( _ flag As Boolean _ ) |
C# |
---|
void WeakReferences ( bool flag ) |
Visual C++ |
---|
void WeakReferences ( bool flag ) |
Parameters
- flag
- System.Boolean
Remarks
turns weak reference management on or off.
This method must be called before opening a database.
Performance may be improved by running db4o without using weak references durring memory management at the cost of higher memory consumption or by alternatively implementing a manual memory management scheme using Db4objects.Db4o.Ext.IExtObjectContainer.Purge
Setting the value to
causes db4o to use hard
references to objects, preventing the garbage collection process
from disposing of unused objects.
The default setting is
.
Ignored on JDKs before 1.2.
This method must be called before opening a database.
Performance may be improved by running db4o without using weak references durring memory management at the cost of higher memory consumption or by alternatively implementing a manual memory management scheme using Db4objects.Db4o.Ext.IExtObjectContainer.Purge
Setting the value to
![]() | |
---|---|
false |
The default setting is
![]() | |
---|---|
true |
Ignored on JDKs before 1.2.