Quantcast
Channel: Martin Dráb's Activities
Viewing all articles
Browse latest Browse all 17532

Dispose Map Class

$
0
0


I need to use the map class in a loop where I need to create a new instance per iteration.  But I want to make sure that I dispose of the last instance.

MyMap = new Map(Types::Int64, Types::Container);


So I think setting the Map to null at the end of the loop should clear it for reuse at the beginning of the loop.

MyMap = null;

I think that does the trick.

Does that sound right or is there a better way?

Thanks


Viewing all articles
Browse latest Browse all 17532

Trending Articles



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