DOS Extender/Heap Manager
Andreas Kaiser
kaiser at ananke.stgt.sub.org
Sat Nov 17 05:34:32 AEST 1990
In your msg to All, dated <16 Nov 90 19:00>, it said:
WB> Zortech C/C++ has an additional pointer type, called a __handle
WB> pointer, which is used like a conventional pointer, but instead points
WB> into data that is in EMS. The swapping of EMS pages in and out is
WB> handled transparently.
Beautiful feature. Except that handle pointers with static scope do not reserve storage... It took an aweful lot of time to find this bug experimenting with a MicroEmacs version using handle pointers for text storage.
BTW: There is a problem with these handle pointers: It should not be possible to convert a normal far pointer to a handle pointer. It's just too easy to write silly code like:
char __handle *p;
...
p = strchr(p, '.');
where p looses it's virtual memory property.
Andreas
reas
--
:::::::::::::::::::: uucp: kaiser at ananke.stgt.sub.org
:: Andreas Kaiser :: fido: 2:509/5.2512 & 2:507/18.7206
::::::::::::::::::::
More information about the Comp.lang.c
mailing list