Can there be any memory leak in below mentioned code ??
inside timer function with delay of 1000ms.
new AsyncProcessing().execute(new TestReceive(bytes,datas));
Inner Class
public class AsyncProcessing extends AsyncTask<Object,Void,Void>{
@Override
protected Void doInBackground(Object... r) {
// TODO Auto-generated method stub
/*
byte[] data = passing[0].toString().getBytes();
int size = Integer.parseInt(passing[1].toString());
int id = Integer.parseInt(passing[2].toString());*/
TestReceive ra = (TestReceive)r[0];
// System.out.println("res val "+bytArrayToHex(data));
// System.out.println("func enter : "+ra.ids);
func(ra.data,ra.size);
// System.out.println("func exit : "+ra.ids);
ra = null;
return null;
}
0 comments:
Post a Comment