ok
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;
info.w=localTex->image_widthf;
info.h=localTex->image_heightf;
pRuntime->UpdateBoundingBox(this);
this works fine with no crashes