> the memory is freed when the subcomputation terminates (either normally or via an exception), so the pointer to the temporary storage must not be used after this I'm noy a windows guru, but I assume that `sendMessage` just puts the message into a queue and exits. So, you receive a pointer to already deallocated memory.