Multiple levels of Inheritance causes AccessViolationException due to Finalize being called multiple times · Issue #2627 · pythonnet/pythonnet
Repository navigation
Multiple levels of Inheritance causes AccessViolationException due to Finalize being called multiple times #2627
New issue
New issue
Open
Open
Multiple levels of Inheritance causes AccessViolationException due to Finalize being called multiple times #2627
Description
@rmadsen-ks's profile rmadsen-ks opened on Oct 9, 2025Pythonnet version: v3.0.5 built from source
Reproduced on Windows 11. Not reproduced on MacOS.
The issue occurs during Shutdown, when all the live objects gets disposed.
I managed to reproduce it using a new unit test when I was trying to fix #2574 .