Skip to content

Conversation

@bakpaul
Copy link
Contributor

@bakpaul bakpaul commented Jul 12, 2024

The "Release" method was never called when running python scene through runSofa, leading to non-correct cleanup of the python interpreter.

This PR adds the cleanup callback and ensure that the data cache is deleted before the interpreter (in Sofa.Core)


void clearCache()
{
msg_info("SofaPython3") << "Clearing Sofa.Core cache...";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Sofa.Core whereas this code is not in Sofa.Core?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but this cache is only used in Sofa.Core, in the data binding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants