Using obislavu's last comment as a solution, don't forget to call the method XmdData.TrimToSize() when you're done adding elements. That way the ArrayList count is 'trimmed' down to the number of elements you have added. Otherwise it will contain at least 64 null elements. Extra allocated memory drives me nuts. It's not required but I always use it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.