Board index » jbuilder » Memory leak problem.

Memory leak problem.


2004-04-23 02:29:42 PM
jbuilder4
Hi,
In this part of code:
byte[] b = new byte[1500];
....
b = null;
System.gc();
If program dose it most frequently then it became a memory leaks.
May be someone know other possibilities.
Wait for reply.
 
 

Re:Memory leak problem.

"Hardharut" < XXXX@XXXXX.COM >writes:
Quote
byte[] b = new byte[1500];
....
b = null;
System.gc();
If you pass that b to something during "....", that something can keep
the byte array "alive". Calling System.gc() usually does not have any
immediate effect.