Hi,

Just wondering if there was any significant difference with the following:

    GetMem(PtrMapiFileDescs,   Attachments.Count * SizeOf(MapiFileDesc));
    FillChar(PtrMapiFileDescs^, Attachments.Count * SizeOf(MapiFileDesc),
0);

vs

    PtrMapiFileDescs := AllocMem(Attachments.Count * SizeOf(MapiFileDesc));

>From the Help AllocMem zeros the memory. Both use FreeMem to free the
memory. Just wondering if there is any reason why GetMem and AllocMem don't
reference each other in the help. Is one method better than the other???

Do they do exactly the same job (apart from the zeroing)?

Any thoughts appreciated

Regards

Colin

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to