Dear visitor, welcome to Jabaco - Community.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Runtime methods
anybody knows how to properly code this one?
i just wanted to know the JVM info as follows:
total memory allocated
max memory
free memory
but the problem is i cant get it to work. im really is a beginner so please understand.
|
Jabaco Source
|
1
2
3
4
5
|
Import java#lang#Runtime
Public Sub Form_Load()Dim rt As Runtime
Text1.Text = rt.totalMemory
End Sub
|
.
.
Spare me, im new to Programming
finally i made it to work with these:
|
Jabaco Source
|
1
2
3
4
5
6
7
8
9
10
11
|
Import java#lang#Runtime
Public rt As runtime
Public Sub Form_Load()
rt = runtime.getRuntime()
rt.maxmemory
' rt.totalmemory
' rt.freeMemory
MsgBox rt
End Sub
|
.
.
Spare me, im new to Programming