IConfiguration.

WeakReferences(bool) Method

Summary

turns weak reference management on or off.

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 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