Skip to content

ActiveObjects

Claude edited this page Oct 27, 2026 · 4 revisions
BlitzPlus

ActiveObjects

ActiveObjects:Int32

Returns: How many objects are alive. The official help lists the command as undocumented.

Description

Counts what your program has made and not freed yet: banks, streams, sounds, images, textures, fonts, timers and objects of your own types. It is meant to help you find leaks while developing.

Differences

  • Windows and gadgets are not counted here.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Objects", 20, 20, 240, 100, Desktop(), 3)
start = ActiveObjects()
bank = CreateBank(16)
SetGadgetText win, "One more: " + (ActiveObjects() - start)
FreeBank bank
Repeat
Until WaitEvent() = $803

Related Commands

AutoSuspend, Confirm, DebugObjects

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally