I\'m trying to call a function in a Python script from my main C++ program. The python function takes a string as the argument and returns nothing (ok.. \'None\'). It works
When you say "as long as the previous call is finished before the function is called again", I can only assume that you have multiple threads calling from C++ into Python. The python is not thread safe, so this is going to fail!
Read up on the Global Interpreter Lock (GIL) in the Python manual. Perhaps the following links will help:
The GIL is mentioned on Wikipedia: