mmap problem with dll

howard at eegsoftware.com howard at eegsoftware.com
Sat Dec 16 00:52:02 CET 2000


On Wed, 13 Dec 2000 22:19:54 GMT, Mark Hammond <MarkH at ActiveState.com>
wrote:

>howard at eegsoftware.com wrote:
>
>> I get the message 
>>      EnvironmentError: [Errno 2] No such file or directory
>> on the mmap object creation call.
>> 
>> I traced it back to the _get_osfhandle call trying to get the
>> operating system equivalent of the run-time library handle.
>> 

>You almost certainly are compiling without the "/MD" ("/MDd" for debug) 
>compiler option (aka "Runtime in multi-threaded DLL").  The symptoms are 
>very much like the DLL and Python itself arent sharing the same runtime, 
>and so can't pass CRT handles or abjects between them.
>
>Mark.
>

Exactly correct.   Thank you.  It seems that the project I copied this
from was from a Python 1.4 baseline and I didn't check every option.

Howard Lightstone
EEGSoftware
howard at eegsoftware.com



More information about the Python-list mailing list