Open GoogleCodeExporter opened 9 years ago
I experience exactly the same problem. For some reason the native service tends
to use an increasing amount of memory (you can see through "ps"), therefore the
consequences related to slow responsiveness and home screen stuff. Can you
please fix this memory leak or at least provide the source code of the service
itself?
Original comment by luboga...@gmail.com
on 9 May 2012 at 2:17
Hi everybody! I've managed to fix the problem with increasingly consumed
memory. Sorry for my last dumb post. I just could not find the source at first.
Issue 13 explains a pretty important memory leak that has to be fixed as well,
so fix it first.
In addition, the native library does not free the pict after it sends it to the
client. To eliminate this problem you just have to change the code in main.c at
line 220 to include the free of pict.buffer:
if (Send(cfd, pict.buffer, pict.xres * pict.yres * pict.bps / 8, 0) < 0) {
free(pict.buffer);
return -1;
}
free(pict.buffer);
Log ("- Screenshot sent");
Original comment by luboga...@gmail.com
on 11 May 2012 at 12:00
Original issue reported on code.google.com by
scop...@gmx.net
on 5 Jan 2011 at 2:32