Re: Shared memory
- Posted by Robert Craig <rds at RapidEuphoria.com> Dec 13, 2003
- 671 views
Philip D. wrote: > Is there any way to share memory between 2 different euphoria programs? Yes. Search the file archive for: share memory You'll find examples by Mario Steele, Jason Mirwald, Jordah Ferguson and Elliott Sales de Andrade that allow two separate Euphoria processes to share memory, and even pass Euphoria data back and forth. > This would need to include variables and routines to serve my purposes. > > I really would like to do this because I want to make a program with the > win32lib and have DLLs which can put controls on the window made with > the program. This currently can't be done because the DLL has to > include a whole fresh set of win32lib variables. (see topic: > Referencing Control Ids in DLLs) If I could share their memory, the DLL > would know about the window created in the program. That sounds too complicated, especially since DLLs can't share Win32Lib variables or even routine id's with the main program. However they can share machine addresses of Euphoria routines, and in 2.4 you can call a Euphoria routine given its call_back() address. Andrea Cini uses this trick in EuWinGUI. Regards, Rob Craig Rapid Deployment Software http://www.RapidEuphoria.com