General Building C Python module for AC Python 3.3.5 version

Hey,

I've been trying to compile a custom C-API Python module for AC's 3.3.5 Python and using it in-game. The module compiles successfully and I get the finished *.pyd that I can import. Using the module in a local terminal works fine, however, using it in AC leads to a crash (importing is fine though).

Did anybody else try this before, or has somebody a tip I haven't tried yet?

Some more information:

Cheers, and thanks for any input.
 
For anyone interested:

I solved the problem myself, however, I am not sure what was the cause.
Removing the garbage collection flag 'Py_TPFLAGS_HAVE_GC' and the function pointer to the destructor from the 'PyTypeObject' description did the trick.
Be careful, this might lead to a memory leak! :)
 

Latest News

How are you going to watch 24 hours of Le Mans

  • On national tv

    Votes: 17 33.3%
  • Eurosport app/website

    Votes: 17 33.3%
  • WEC app/website

    Votes: 6 11.8%
  • Watch party

    Votes: 5 9.8%
  • At a friends house

    Votes: 1 2.0%
  • At Le Mans

    Votes: 5 9.8%
Back
Top