Link to home
Start Free TrialLog in
Avatar of pofpof98
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
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
:-
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