in reply to Win32::MemMap and C++

I believe you should be able to steal some code from Rogers Win32::MMF, which implements variable sharing through Win32 Memory Mapped Files, and it is mostly transparent on the Perl side.

For writing to a shared hash, I believe that you will face some deadlock issues and that you will have to embed some of Perl into the new C program tohave the same hashing algorithm etc., at least if you want to create new keys.

Replies are listed 'Best First'.
Re: Re: Win32::MemMap and C++
by Roger (Parson) on Feb 20, 2004 at 15:28 UTC
    Thanks Corion for mentioning my module. :-)

    The latest version, Win32::MMF version 0.09c has been uploaded to CPAN, this release is stable, after extensive testing done by xiper (big thanks) who has discoverred several bugs with shared memory locking, all the known problems should have been fixed.