PyRun_SimpleFile crashing under Windows 2000

Mark Hammond mhammond at skippinet.com.au
Mon Jun 2 23:30:04 EDT 2003


quadric at primenet.com wrote:

> Hi,
> 
> I have embedded Python in an application and am wanting to run a startup 
> script
> when the application starts.  I am running under Windows 2000 Pro, 
> compiling with MSVC 6.0
> and using same compiler switches and libraries as the python22.dll was 
> created with.
> 
> Python initializes fine and I can run simple strings and get results back.
> 
> When I execute the following code,  I crash with a fatal "memory can't 
> be written" error.

You must compile your extension with the /MD option (or /MDd for debug 
builds).

Mark.





More information about the Python-list mailing list