Quantcast
Channel: Daz Script Developer Discussion - Daz 3D Forums
Viewing all articles
Browse latest Browse all 1036

Use of QObject.deleteLater()

$
0
0

I've seen in some of the code samples where the method QObject.deleteLater() is sometimes used.  For example,

I was looking at the sample "Save a Pose Preset", and at the bottom there's a line where an asset IO filter is deleted:

// Clean up; do not leak memory
oAssetIOFilter.deleteLater();

 

I'm curious to know exactly how often should I use this method?  And on what kind of objects?  I used to think that

Javascript (and DAZ Script) would automatically clean up most kinds of objects once they were created, used and

went out of scope, but now I'm a little confused.

 


Viewing all articles
Browse latest Browse all 1036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>