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 do I properly close a SimConnect object ? #3

Open
cercata opened this issue Apr 4, 2022 · 2 comments
Open

How do I properly close a SimConnect object ? #3

cercata opened this issue Apr 4, 2022 · 2 comments
Labels
question Further information is requested

Comments

@cercata
Copy link

cercata commented Apr 4, 2022

I'm just calling sc.Close(), but the next time I create a SimConnect() object, I don't receive new data, I get allways the last set of data the old object received.

@patricksurry
Copy link
Owner

is it easy to illustrate with a simple code example? i haven't played much with that, tho the API doc seems pretty clear you just need Open() and Close(). maybe the internal handle needs to get explicitly deleted or something, tho I would have thought that occurred when the python SimConnect object was implicitly deleted when you re-assign it. does explicit del sc help after Close?

@cercata
Copy link
Author

cercata commented Apr 4, 2022

This is where it's happening:
https://github.com/cercata/pysim2bhap/blob/main/sim2bhap/msfsBHap.py

I tryied sc = None, I'll try del sc tomorrow

@patricksurry patricksurry added the question Further information is requested label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants