I spent more time on a problem about memory leak. At last find out a function(CSting to TCHAR) lost the end symbolic. The function I copied from google. It seems not safety enough. It’s better to write by self.