LAPICALL WaitForGarbageCollector(LDB db);

Waits until the garbage collection has collected all unreachable objects.

db specifies the current database.