I think I will remove that other workaround in the Open function. With the version above, the ->Release() needs to be called. Perhaps also something in Release is wrong.