|
From: Ethan M. <eam...@gm...> - 2013-10-30 18:20:47
|
Please clarify. Is the memory growth happening in gnuplot or in the program at the other end of the pipe? If the latter, I don't see how we could make a guess at the problem without seeing your code. I just had a very quick look at the code in gnuplot_1-2.11 from the URL you mentioned. It looks like the library itself allocates new memory on every call to gnuplot_init() and frees it in gnuplot_close(). Are your calls to these routines correctly paired? On Wed, Oct 30, 2013 at 9:20 AM, tryfonaration <far...@gm...>wrote: > Hello, > > I am using a simple C library from here http://ndevilla.free.fr/gnuplot/to > plot real-time data with gnuplot. It basically opens a pipe to gnuplot and > you can feed it with data and commands. I want to plot an image that > changes > periodically. I make the following command string "plot '-' matrix with > image", then concatenate a big chunk of data and then pipe it to gnuplot. > This is done every a few seconds. What happens is that my program occupies > more and more memory every time a new command is issued and eventually the > OS kills it. > Any idea why this could be happening? > > |