Press on the image to return to the main documentation page.
StrictMode
Written by F. Leneuf-Magaud
List of types:
StrictMode
StrictMode
Events:
None
Members:
EnableStrictModeForActivity
EnableStrictModeForAll
(
ExcludeDisk
As
Boolean
,
ExcludeNetwork
As
Boolean
)
EnableStrictModeForClosableObjects
EnableStrictModeForDiskReads
EnableStrictModeForDiskWrites
EnableStrictModeForNetwork
EnableStrictModeForRegistrationObjects
EnableStrictModeForSlowCalls
EnableStrictModeForSQLite
FreeMemory
As
Long
[read
only]
MaxMemory
As
Long
[read
only]
Members description:
EnableStrictModeForActivity
Detects leaks of Activity subclasses.
API minimum = 11.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForAll
(
ExcludeDisk
As
Boolean
,
ExcludeNetwork
As
Boolean
)
Detects everything that's potentially suspect.
Before Honeycomb, this is limited to SQLite objects, disk accesses and network operations.
If ExcludeDisk is True, disks accesses are permitted.
If ExcludeNetwork is True, network operations are permitted.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForClosableObjects
Detects when an Closeable or other object with a explicit termination method is finalized without having been closed.
API minimum = 11.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForDiskReads
Detects disk reads.
API minimum = 9.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForDiskWrites
Detects disk writes.
API minimum = 9.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForNetwork
Detects network operations.
API minimum = 9.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForRegistrationObjects
Detects when a BroadcastReceiver or ServiceConnection is leaked during Context teardown.
API minimum = 16.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForSlowCalls
Detects slow calls.
API minimum = 11.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
EnableStrictModeForSQLite
Detects when an SQLiteCursor or other SQLite object is finalized without having been closed.
API minimum = 9.
Place this right after Activity_Create and uncheck "Filter" in B4A to see the system log.
FreeMemory
As
Long
[read
only]
Gets an approximation of the amount (in bytes) of free memory available to the running program.
MaxMemory
As
Long
[read
only]
Gets the maximum amount of memory (in bytes) that may be used by the running program.
Top