[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Changes by Paul Moore : -- nosy: -paul.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread R. David Murray
Changes by R. David Murray : -- nosy: -r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: turns out it was crashing because I forgot to add in Py_Initialize. -- ___ Python tracker ___ ___ Python-

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: I found where the crash was at. It was at my call to PyRun_SimpleString. Something in the string caused it to crash. -- ___ Python tracker ___ _

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Zachary Ware
Changes by Zachary Ware : -- assignee: docs@python -> nosy: -docs@python, zach.ware ___ Python tracker ___ ___ Python-bugs-list mail

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: E:\Users\Elsword\Documents\GitHub\TinyURL\app>call "E:\Program Files (x86)\Micro soft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat" E:\Users\Elsword\Documents\GitHub\TinyURL\app>cd "E:\Users\Elsword\Documents\Git Hub\TinyURL\app\" E:\Users\Elsword\Documents\GitHub\

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Wait a minute, I think it is because the 32 and 64 bit python36.lib files are in the path environment variable so that might be the reason for the crash. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: I am compiling and linking to 32 bit python based on the folder I entered for the lib file. Unless the lib file in the lib folder is somehow for the 64 bit one. -- ___ Python tracker

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread R. David Murray
R. David Murray added the comment: Agreed, there's nothing for us to do here. It sounds like you may need to go to a help forum to work through your crash. If you learn things that you think it would be valuable to add to the docs, please do submit a doc enhancement issue/PR. -- nosy

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: My bet is still on something like you compiling your code 32-bit and linking to 64-bit Python, or something like that. -- ___ Python tracker ___ __

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Well looks like with cl.exe it is still crashing. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: hmm, maybe it was because I was compiling it inside of the VS2015 IDE in an project file and not with cl.exe directly. -- ___ Python tracker ___ ___

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: Worked fine for me: >cl .\pyc.c /I $env:LOCALAPPDATA\Programs\Python\Python36\include >$env:LOCALAPPDATA\Programs\Python\Python36\libs\python36.lib Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24213.1 for x64 Copyright (C) Microsoft Corporation. All right

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
Decorater added the comment: Well the example I linked if I compile it and try to run it it instantly crashes with no explainable reason. I am using the same compiler used to build the core too and the normal interpreter works just fine with the code I am trying to embed. So it seems to defini

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Paul Moore
Paul Moore added the comment: I'm a bit confused what you're asking for here. Certainly if you embed Python, you can get crashes, just as with any other C program. Pass an invalid pointer to a Python API, build your application and the Python DLL with incompatible C runtimes, free memory you d

[issue30574] Document why embedding the interpreter can sometimes crash.

2017-06-05 Thread Decorater
New submission from Decorater: According to this example at https://docs.python.org/3/extending/embedding.html#very-high-level-embedding you can use something similar on embedding the interpreter. However for some reason it can crash on Windows and probably some other platforms no matter what