update. if I remove the line from the previous post it doesn't crash. but I really need to be able to generate a collision mask.
while I wait for a reply, I'll try to search for some releasecollision mask or increment of that. thanks for your help so far though
I'll post back if I figure it out before you do
edit: also removed the increment texture thing and works the same, no crash unless I try to generate a collision mask:
localTex = (TextureHandle)param;
this works fine with no crashes