Large Model
Hi,
Well Michael, I have good news for you on both counts.
Petzold's comment was probably made in the first edition and not corrected in
subsequent editions. As you mentioned, Windows maintains a selector table and
when segments move, your pointers will remain valid.
As far as the local heap goes, you would be a complete mug not to use the large
model with MFC. The local allocator now does sub-segment allocation on the
global heap. This means each heap allocation (object in your case) must be <64K
but you can have as many as will fit in global memory. Hooray!
Hope this helps,
Jim