Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!snorkelwacker.mit.edu!bloom-picayune.mit.edu!athena.mit.edu!pshuang From: pshuang@athena.mit.edu (Ping-Shun Huang) Newsgroups: comp.os.msdos.programmer Subject: Re: DESQview, MS-Dos, Teleconference Message-ID: Date: 30 Jun 91 04:44:02 GMT References: Sender: news@athena.mit.edu (News system) Organization: Massachusetts Institute of Technology Lines: 26 In-Reply-To: Russell_Mennie@resbbs.UUCP's message of 26 Jun 91 05:52:11 PST In article Russell_Mennie@resbbs.UUCP (Russell Mennie) writes: > It's settup to use the DESQview routines as stated in the back of the > manual. However, I'm having trouble with one thing.. How do you "share > memory" within Turbo Pascal 6.0? You may want to look more closely at the special Desqview routines which permit tasks to communicate with one another. Shared memory is a reasonably common way for different tasks running under a multitasking scheduler such as Desqview to share information, but you would have to ask the operating system for a block of shared memory -- the same variables do not by default and *SHOULD* not share the same memory. Another solution, which might work better than simply sharing a big block of memory (for one thing, shared memory may cause problems where two processes interrupt each others updating of the area and as a result leaves garbage in memory; for another, I'm not sure that it would be easy to force Turbo Pascal's heap manager to allocate from this specific block of memory) might be to write a completely separate application whose only purpose is to keep track of the users who are currently in teleconference which would tell the actual programs what they wanted to know when they ask it. -- Above text where applicable is (c) Copyleft 1991, all rights deserved by: UNIX:/etc/ping instantiated (Ping Huang) [INTERNET: pshuang@athena.mit.edu]