The last opcode in your list of instructions should be D3DOP_EXIT. This opcode simply signals that the system can stop processing the data.