
28 Nov
2011
28 Nov
'11
11:13 a.m.
@James, a very nice question. When I was reading into OOP in C#, this was my primary concern for many months as they get stored in the heap. Variables, arrays etc holds much less in the stack, but then also learnt that memory these days does not cost the price of a computer as the early days so it was not a major issue. However, I once did see a single program take up 100% of the memory, yet the OS was only taking up less than 15% due to the nature of GUI and I refused to purchase the software. My apprentice view. :-) On Mon, Nov 28, 2011 at 10:56 AM, James Nzomo <kazikubwa@gmail.com> wrote:
Has anyone here successfully (and accurately) determined the size of a C++ class instance (Object) in memory during run time?