Hello,

I'm trying to interface Perl with Python with Win32 shared memory
(without accessing the disk at all if possible).

Python creates a namespace and writes a string to it and I want to
read it from Perl.

If I use the proposed object oriented interface of Win32::MMF like:
   $ns = Win32::MMF->new( -namespace => "MyFileMappingObject_ctypes",
-reuse => 1 )
             or die "namespace not exist";
it fails with:
Use of uninitialized value in subroutine entry at
C:/strawberry/perl/site/lib/Win32/MMF.pm line 163 during global
destruction.

I also tried using the functional interface for more control.

I'm not sure how to read the variable from Perl, right now Perl
crashes on the GetVar line.

I also tried reading the variable from Python and that works. So I
must be doing something wrong from Perl.
I'm attaching the following 3 files: python server, perl client, python client .

How do I properly read the variable from Perl? It doesn't have to use
the functional interface.

Thank you

Attachment: mmap_perl3.pl
Description: Binary data

Attachment: sharedmem_view1.py
Description: Binary data

Attachment: sharedmem1.py
Description: Binary data

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to