<div dir="ltr">Dear Scilab users, <div><br><div><div>I'm writing script which uses GUI and it receives data from embedded device via UDP protocol. Script will be used for monitoring and it has to run continuously for 7-8 days.</div><div>I did some test on it and I see that after 24hour test Scilab process consumes 400MB RAM memory  more and it continuously allocates memory (I use windows process manager).</div><div><br></div><div>My script uses uicontrol and plot control to present data live. It receives data via UDP (custom DLL function is called) and buffer which holds plot data is shifted and plotted. </div><div><br></div><div>Here is simplified main loop code:</div></div><div><div><br></div><div>buf_len = 100;</div><div>buffer = zeros(1,buf_len);</div><div>while 1   </div><div>        // blocking udp receive call, returns matrix 5x20</div><div>        data = udp_recv(5, 20);</div><div>        data_size = size(data(:,1));</div><div>        </div><div>        // do some buffer shifting <br></div><div><br></div><div>        // put received data to buffer</div><div><br></div><div>       // update plot </div><div>       a.children.children.data(:,2) = buffer';</div><div>end<br></div><div><br></div></div><div>What can couse continous Scilab process memory allocation? Maybe I should use globals for buffer and data variable ? Any suggestion on this ? </div><div><br></div><div>Thank you, Grzegorz </div></div></div>