Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!efi!chiu From: chiu@efi.com (Chan Chiu) Newsgroups: comp.lang.c++ Subject: Portable C++ pointer/handle or memory management Message-ID: <1990Oct10.170534.1162@efi.com> Date: 10 Oct 90 17:05:34 GMT Organization: Electronics For Imaging, Inc. Lines: 16 I am going to develope a portable software using C++. The target systems are Mac, PC/Windows and Unix. One thing I found out particularly troubling is memory reference/dereference. Mac and PC/Windows use handle (i.e. moveable heap memory) model. Unix use pointer model. There are two things come to my mind. 1, Should I have "handle-based" object and overload "->" and "." ? 2, If not, do I then use "handle" model ? (i.e. I have to lock/unlock to convert from/to pointer) In general, I like to know your experience developing portable program in the above environments. /CC