[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk added the comment: Just looked into my "partner" C++ code and he's using it very much like in Python 2.5: m_obj->map_handle = CreateFileMapping (INVALID_HANDLE_VALUE, NULL,

[issue12562] calling mmap twice fails on Windows

2011-08-01 Thread Piotr Zolnierczuk
Piotr Zolnierczuk added the comment: OK. I will work around it. I was using 'mapping object of a specified size that is backed by the system paging file instead of by a file in the file system' - map->handle == INVALID_HANDLE_VALUE (-1), i.e. shared memory for inter-process

[issue2733] mmap resize fails on anonymous memory

2011-07-27 Thread Piotr Zolnierczuk
Piotr Zolnierczuk added the comment: I wonder if this is related to the problem I reported about two weeks ago http://bugs.python.org/issue12562? -- nosy: +zolnie ___ Python tracker <http://bugs.python.org/issue2

[issue12562] calling mmap twice fails on Windows

2011-07-14 Thread Piotr Zolnierczuk
Changes by Piotr Zolnierczuk : -- components: +Windows type: -> behavior ___ Python tracker <http://bugs.python.org/issue12562> ___ ___ Python-bugs-list mai

[issue12562] calling mmap twice fails on Windows

2011-07-14 Thread Piotr Zolnierczuk
New submission from Piotr Zolnierczuk : Hi, I am trying to migrate from Python 2.5 to Python 2.7 I found though the mmap behaves differently on Windows XP between the two versions. It boils down to the following code: import mmap map1 = mmap.mmap(fileno=0, tagname='MyData', length=