I made two proxies to exchange recorded voice using sip and udp. But at continuous conversation, at the receiving end, I am shown the following error in NetBeans emulator:
"Uncaught exception java/lang/OutOfMemoryError."
I increased the emulator heap size but same error happens again. I wanna know what is perfect heap size and other configurations like Storage size and Storage root directory - if they are necessary.
My code is here:
What exsactly should I do? Is there any fault in my code, if so, plz tell me. It is an emergency case for me.
Datagram dg = dc_server.newDatagram(dc_server.getMaximumLength());
byte temp = dg.getData();
byte decompressed = Compressor.decompress(temp);
ByteArrayInputStream bais = new ByteArrayInputStream(decompressed);
Player p2 = Manager.createPlayer(bais,"audio/x-wav");
dg = null;
bais = null;
temp = null;
decompressed = null;
Thanks in advance.