.net - How to delete or destruct an instance of a data structure or a record? -


I have a data structure, as follows. TJustCalGroup = Record SigName, GroupName: string; RawMin, RawMax: longint; End;

I make an example of the following types of records or data structures.

  var ascendant: = New TJustCalGroup;   

Then, I want to delete an example or mark it as unused. So, I'm doing the following.

  error: = blue;   

However, it does not work, it keeps taking an error, "T Justal Group can not be assigned zero."

Then, how can you free zero or zero or your memory?

A Delphi prism (or oxygen) record is equivalent to one, Straits (or Records) are the value types and are always allocated on the stack (even when you are new operator ), So you do not need to free up the memory.

Comments