NAME
TUI::Memory::Util - memory-related utility functions
SYNOPSIS
use TUI::Memory::Util qw(lowMemory);
if (lowMemory()) {
messageBox(
'Low memory condition detected',
mfWarning | mfOkButton
);
}
DESCRIPTION
TUI::Memory::Util provides low-level utility functions related to memory management within the TVision framework.
The functions in this module expose global state maintained by the runtime and are intended to support defensive behavior in views and application-level logic when system resources become constrained.
This module is purely functional and does not define any classes or objects.
FUNCTIONS
lowMemory
my $bool = lowMemory();
Returns true if the application has entered a low-memory condition.
The observable behavior of lowMemory matches the original model, while the underlying memory handling is adapted to the Perl runtime environment.
Note: This function is included for compatibility purposes and always returns false.
SEE ALSO
TProgram, TApplication, TDialog
AUTHORS
Borland International (original Turbo Vision design)
J. Schneider <brickpool@cpan.org> (Perl implementation and maintenance)
COPYRIGHT AND LICENSE
Copyright (c) 1990-1994, 1997 by Borland International
Copyright (c) 2021-2026 the "AUTHORS" as listed above.
This software is licensed under the MIT license (see the LICENSE file, which is part of the distribution).