05-31-2024, 02:52 PM
(05-31-2024, 01:16 PM)Kernelpanic Wrote: An example of how unions and structures are used, and how much memory is used.
To explain again: In a union, the memory requirement is equal to the largest variable.
All variables in a union have to share this memory, so one have to know exactly which one one want to use.
In a structure, each variable gets its own memory space.
Thank you for explaining.
I'm planning to give Spriggsy's _MEMGET handler a try, which allocates memory depending on type.