home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!demon!cix.compulink.co.uk!vadim
- Newsgroups: comp.lang.c++
- From: vadim@cix.compulink.co.uk (Vadim Lebedev)
- Subject: Re: Virtual Functions and Shar
- Reply-To: vadim@cix.compulink.co.uk
- Date: Wed, 19 Aug 1992 16:44:38 +0000
- Message-ID: <memo.584472@cix.compulink.co.uk>
- Sender: usenet@gate.demon.co.uk
- Lines: 36
-
- In-Reply-To: <1992Aug17.182423.14341@msuinfo.cl.msu.edu> baldwin@cps.msu.edu (Reid A Baldwin)
-
- TITLE: Virtual Functions and Shared Memory
-
- In artcile <1992Aug17.182423.14341@msuinfo.cl.msu.edu>
- baldwin@cps.msu.edu (Reid A Baldwin)
- writes:
-
- >
- > I am developing an application in which multiple processes communicate
- > via shared memory (UNIX). Unfortunately, virtual functions don't work for
- > objects in shared memory. The process that creates an object gets the
- > correct results, but other processes execute the function for the
- > base class instead of the derived class (using the pointer type instead
- > of the object type). I am not familiar with the implementation of virtual
- > functions. Is it possible to use virtual functions on objects that are
- > created by other processes and accessed via shared memory?
- >
- > Thanks for your help,
- > Reid Baldwin
- >
- > P.S. I will post a summary of responses if they are interesting.
- >
- >
-
- Well, you can put ALL the methods for shared objects
- in sharable library. This works for Windows, it should work fro UNIX too.
-
- -----------------------------------------------------------------------
- Vadim Lebedev | Kortex International
- vadim@cix.compulink.co.uk | 139-147 av. Paul-Vaillant Couturier
- | 93126 La Courneuve - CEDEX, France
-
-
-
-
-