CompuServe Messages

Large Model

    08-Jul-94 06:44:19
Sb: #30244-Large Model
Fm: James Barry 100317,364
To: Michael Lewis 100113,1376
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