Issue2733
Created on 2008-05-01 17:04 by kmk, last changed 2008-05-02 16:11 by Trent.Nelson.
| msg66036 (view) |
Author: Kathryn M Kowalski (kmk) |
Date: 2008-05-01 17:04 |
|
We have a shared memory module that has been running fine on Windows
with Active State Python 2.4.3 Build 12. On machines with 2.5.1.1
mmap.resize fails on an existing anonymous shared memory. The attached
file is a stripped down version of the code to illustrate the problem.
Start it running in one window to create the shared memory, then in
another window run it again to hook into existing shared memory. Result:
Testing SharedMemory
open -self.memory_size 336
Traceback (most recent call last):
File "C:/home/weather/TESTOF~1.PY", line 164, in <module>
example()
File "C:/home/weather/TESTOF~1.PY", line 147, in example
sm = SharedMemory( 'my_shared_memory')
File "C:/home/weather/TESTOF~1.PY", line 31, in __init__
self.__open()
File "C:/home/weather/TESTOF~1.PY", line 94, in __open
self.memory.resize(self.memory_size)
WindowsError: [Error 8] Not enough storage is available to process this
command
|
| msg66044 (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) |
Date: 2008-05-01 21:01 |
|
It seems that you attached the output file instead of a python script...
|
| msg66097 (view) |
Author: Kathryn M Kowalski (kmk) |
Date: 2008-05-02 15:58 |
|
sorry
|
|
| Date |
User |
Action |
Args |
| 2008-05-02 16:11:51 | Trent.Nelson | set | nosy:
+ Trent.Nelson |
| 2008-05-02 15:58:11 | kmk | set | files:
+ testofResize.py.txt messages:
+ msg66097 |
| 2008-05-01 21:01:10 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages:
+ msg66044 |
| 2008-05-01 17:04:16 | kmk | create | |
|