Thanks Stromausfall, I tried again with a .mdl file instead of .wmb, it seems to be more controlled. But I am still unsure if it's still leaking. How or what is the right way to check for memory leaks?