now the output parameter is not copied, just allocates memory for it.<br>the buffer size handling is done only after clicking Ok button in windows too.<br>