2014年1月2日 - The problem is that you are modifying the address held in the variable ptr. You call AllocMem to allocate a buffer, which you refer to using ptr.
stackoverflow.com