add memory allocation for the print out string|
Merge pull request #11 from hongkai-dai/winmem

add memory allocation for the print out string|