No Garbage Collection (-nogc)
- Last Updated: February 11, 2026
- 1 minute read
- OpenEdge
- Version 13.0
- Documentation
No Garbage Collection (-nogc)
Use No Garbage Collection (-nogc) to disable
automatic garbage collection of class-based objects. By default, the AVM automatically
deletes .NET objects and ABL objects when there are no remaining references to the object.
When -nogc is specified, the application assumes the
responsibility of deleting .NET objects and ABL objects explicitly, using the DELETE OBJECT statement. If -nogc is specified,
ABL objects that are not explicitly deleted are deleted when the session ends, and the AVM
does not invoke any destructors for the class. However, -nogc does not
prevent .NET garbage collection.
| Operating system and syntax | Windows |
-nogc
|
||
|---|---|---|---|---|
| Use with | Maximum value | Minimum value | Single-user default | Multi-user default |
| Client Session | — | — | — | — |
For more information on garbage collection, see ABL Reference and Develop Object-oriented ABL Applications.