when tmpenc wants to start encoding i get this message invalid pointer operation