You have allocated pData on stack, it gets destroyed right after the
allocation scope exit ( after the PutUserData call ), use dynamic
allocation instead

Reply via email to