Use of tMemoryStream in DLL