How is dynamic array's memory space removed in Delphi?

Questions by SachinDeo   answers by SachinDeo

Showing Answers 1 - 6 of 6 Answers

EditCDC

  • Jul 16th, 2009
 

Declaration
ADynamicCharArray :  ^CharArrayType;

Allocation
ADynamicCharArray := AllocMem(NumChars * sizeof(char));

Release
FreeMem(ADynamicCharArray, NumChars * sizeof(char));

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions