Summary
turns weak reference management on or off.
- Assembly
- Db4objects
.Db4o-2010 .dll - Namespace
- Db4objects
.Db4o .Config - Containing Type
- IConfiguration
Syntax
void WeakReferences(bool flag)
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
Setting the value to false causes db4o to use hard references to objects, preventing the garbage collection process from disposing of unused objects.
The default setting is true.
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
IExtObjectContainer.Purge
Setting the value to false causes db4o to use hard references to objects, preventing the garbage collection process from disposing of unused objects.
The default setting is true.
Parameters
Name | Type | Description |
---|---|---|
flag | bool |
Return Value
Type | Description |
---|---|
void |