I am a newbie in pure basic, and well, a newbie in low leveled programming, which involves memory management, there's one confusion I'm having when I have a structure that contains a dynamic field, such as a string, or a list/map/etc,my question is, do I just use
Code: Select all
*MyPtr = allocateMemory(sizeOf(MyStruct))
Code: Select all
FreeMemory(*MyPtr)
Code: Select all
*MyPtr = AllocateStructure(MyStruct)
Code: Select all
FreeStructure(*MyPtr)
