Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to to aware that a python is being deleted in the GUI #28

Open
samuelgarcia opened this issue May 21, 2020 · 2 comments
Open

How to to aware that a python is being deleted in the GUI #28

samuelgarcia opened this issue May 21, 2020 · 2 comments

Comments

@samuelgarcia
Copy link

I have PythonPlugin that launch a thread in the background.
When I want to delete it from main GUI openephys just crash.
This is because the thread is not stoped properly.

So I would need a claabck in the python be aware the pulgin is about be deleted and so I could stop the thread and close socket and opened file properly.
What is the way to that ?
Is there a callback at C++ API for that that could be propagated in python ? (question1)

I tried the __del__ but it do not work...
Is the plugin python instance is deleted properly by the python interpreter ? (question2)

@Claybarn
Copy link
Collaborator

I am fairly sure we fixed that problem. I wonder if the branch you are using never saw those changes.

@samuelgarcia
Copy link
Author

One more argument to merge cmake_build in to master :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants