The operation cannot be completed while recording states for a state block. Complete recording by calling the TDx_3DDevice::EndStateBlock() method, and try again.