Opening existing memory mapped files with pywin32

rhyslloyd1 via python-win32 <[email protected]>
Newsgroups gmane.comp.python.windows
Message-ID <uHDtPcDx_RURlePeHdKeAI0c4unETgWhyI3s3454rDV8G0gZBxZHvpwzkflEB4TugieyZpYiS8Z7tFnPAHFcavLzuU5xxUSE1zTDMXrgAmk=@protonmail.com>
Hello. Sorry if this is the wrong place to ask my question.

I am trying to open a memory mapped file using Python. I originally used the "mmap" module from Python however I had issues with it because I had to use a fixed size for the file even though my goal was to open an existing file of which the size would be unknown. I am now using the "mmapfile.mmapfile" function. My code looks like [this](https://pastebin.com/QygT2wp6). In the [docs](http://timgolden.me.uk/pywin32-docs/mmapfile__mmapfile_meth.html) it says I can use a file name of "None" if I'm planning on opening an existing file. [This](https://pastebin.com/2FVhpDiB) is the error I get when running my code.

I'm a novice Python user and I don't know much at all about the Windows API. Thanks in advance for any help!

_______________________________________________
python-win32 mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-win32
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.