You should always and exclusively send handles. Never ever send pointers! The point was just that you have to pass the pointer to send_var_id. That however is not the same as sending the pointer.


Always learn from history, to be sure you make the same mistakes again...