pofpof98
asked on
How can I do (I'd like to have a little example) in order to release the memory of a second program after having killed it with the dispose() method?
Hello
I have a first program which call the main of a second program with the following lines :
SecondP sp = new SecondP
sp.run()
Then I kill the second program using the dispose() method
But it is not the same result as when I do System.exit(0) because the memory of this second program is not released after th use of the dispose() method.
How can I do (I'd like to have a little example) in order to release the memory of the second progrm after having killed it?
Thanks
Regards
AC
I have a first program which call the main of a second program with the following lines :
SecondP sp = new SecondP
sp.run()
Then I kill the second program using the dispose() method
But it is not the same result as when I do System.exit(0) because the memory of this second program is not released after th use of the dispose() method.
How can I do (I'd like to have a little example) in order to release the memory of the second progrm after having killed it?
Thanks
Regards
AC
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-
If you are in need of memory critical application, still you can run System.gc() explicitly to recover, but not a guranteed by definition.
-Venkat
-Venkat