Ok so I wrote an application that I call Image Grabber in Windows 7.
It goes and grabs some weather doppler picture every 15 minutes, and saves it with a name having a unique date/time string...
It works fine, so I added it to do 6 images every 15 minutes. But eventually it crashes because of a memory leak.
A few other descriptions.
-It gets the image by using the filedownloader class. (QUrl with a slot that executes after finished download)
-I am running it from the icon tray with 4 QIcon's that replace on a timer.
-It saves the images to the hard drive and also there is a QWidgetStack that has 6 divisions, with each one displaying the QPixmap in a QLabel.
my question is this memory problem to do the
QPixmaps themselves?
or possibly setting the QLabel QPixmap?
or even possibly the filedownloader class?
will QPixmapCache solve this?
for a work around, I could write another application that calls the original one once every 15 minutes and it closes after the last file saved, therefore insuring that there is no memory leak, but I shouldn't have to do that.
any help would be awesome.
Bookmarks