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

What is the reason for your passion for sim racing?

  • Watching real motorsport

    Votes: 535 68.7%
  • Physics and mechanics

    Votes: 334 42.9%
  • Competition and adrenaline

    Votes: 355 45.6%
  • Practice for real racing

    Votes: 177 22.7%
  • Community and simracers

    Votes: 209 26.8%
Back
Top