I have a loop that updates a graph by calling
But every time it updates the graph, the memory usage goes up. If the program runs for one hour, the memory is gone (things start to run slow too). I’ve tried to close() objects but the only thing that brings back the ram memory is to close the whole application.
I have read this note in the documentation (but it applies to pyplot):
“If you are making a long sequence of figures, you need to be aware of one more thing: the memory requiredfor a figure is not completely released until the figure is explicitly closed with close(). Deleting all references to the figure, and/or using the window manager to kill the window in which the figure appears on the screen, is not enough, because pyplot maintains internal references until close() is called.”
could I do in pyqt4 to release the memory?