In this installment for Defaults and Deletes we finish the code for the example program. So far, among the things you have learned is that the default deconstructor does basically nothing. Near Heap allocations are reclaimed automatically when you return from a method/function. For Far Heap objects all it does is free the allocation. It will not free any sub allocations. You have already been shown the code for the ImplicitClass so we will not … C++ – Defaults and Deletes – Pt. 3Read more
C++ – Defaults and Deletes – Pt. 2
Before we go much further with this discussion on Defaults and Deletes, I need you to read the section titled Near Heap in this blog post. It’s a short read with pictures. Then you need to go thank the fools . . . err . . . “learned academics”, cough cough, who re-purposed the word heap to be a binary tree data structure. To understand why things are the way they are, I need you … C++ – Defaults and Deletes – Pt. 2Read more
C++ – Defaults and Deletes – Pt. 1
Defaults and Deletes tend to be needlessly confusing for new C++ developers. Trying to learn this topic is why so many put on a diaper and go code Python. Hopefully this example series and discussion will allow you to man up. This is a continuation of my C++ series to assist junior/new developers so they can do something meaningful with their lives. No, you can’t use Python for a medical device. Remember: In the real … C++ – Defaults and Deletes – Pt. 1Read more
C++ — That Const Thing
Const is what makes C++ great. Const is what makes C++ too horrible to work with. Developers who read those “Effective” books on C++ really screw the pooch. The developers working on the Qt library who hide everything anyone would want to override inside a “private” class only documented in the source file for the actual class and buried behind a macro passing most everything to it as const make the “screw the pooch” developers … C++ — That Const ThingRead more
Windows Update KB5034441 and Error 80070643
Error 80070643 is something that won’t “fix itself.” Part of me thinks it was deliberate because most of the “fix” recommendations consist of “upgrade to Windows 11.” Nobody wants Windows 11! It just might go down in computer history as the Next Windows Vista or Windows 8 from the grave. Microsoft seems to have forgotten the “Personal” part of “Personal Computer.” Yes, many of us do much online, but we want our computers to be … Windows Update KB5034441 and Error 80070643Read more