Pavel3333 Posted May 17, 2018 Share Posted May 17, 2018 (edited) Имеется следующий код: static PyObject* trj_test(PyObject *self, PyObject *args) { Py_RETURN_NONE; }; При вызове крашит клиент. Следующий код не крашит: static PyObject* trj_test(PyObject *self, PyObject *args) { return Py_BuildValue(""); }; Вопрос: где логика? почему краш? @Mixaill, прошу помощи. Edited May 17, 2018 by Pavel3333 @ Quote Link to comment Short link Share on other sites More sharing options...
SkepticalFox Posted May 17, 2018 Share Posted May 17, 2018 2 hours ago, Pavel3333 said: Вопрос: где логика? почему краш? может снова смещения съехали... @ Quote Link to comment Short link Share on other sites More sharing options...
Pavel3333 Posted May 17, 2018 Author Share Posted May 17, 2018 (edited) @SkepticalFox наверняка. Попользуюсь пока Py_BuildValue(""), хотя в душе перфекционист и противно юзать то, что медленнее существующей альтернативы. Edited May 17, 2018 by Pavel3333 @ Quote Link to comment Short link Share on other sites More sharing options...
Mixaill Posted May 19, 2018 Share Posted May 19, 2018 (edited) Судя по соседнему треду, ты используешь родные хидеры вместо комплектных от XFW.Native Edited May 19, 2018 by Mixaill @ Quote Link to comment Short link Share on other sites More sharing options...
Pavel3333 Posted May 19, 2018 Author Share Posted May 19, 2018 4 часа назад, Mixaill сказал: комплектных от XFW.Native А они где-то имеются??? O_o Ни разу не видел папок Include в ваших репозиториях PS Нашел, спасибо PPS: Скомпилил с хедерами, ЗАРАБОТАЛО! крашей нет! @ Quote Link to comment Short link Share on other sites More sharing options...
Mixaill Posted May 19, 2018 Share Posted May 19, 2018 На bitbucket.org есть специальный архив с суффиксом -devel специально для этих целей. @ Quote Link to comment Short link Share on other sites More sharing options...
Pavel3333 Posted May 19, 2018 Author Share Posted May 19, 2018 @Mixaill уже нашел. Вот же: 5 часов назад, Pavel3333 сказал: Скомпилил с хедерами :) @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.