-
Notifications
You must be signed in to change notification settings - Fork 9
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
Get simconnect exception when using code outside of example script #8
Comments
Here is example code. `from simconnect import SimConnect, PERIOD_VISUAL_FRAME class Simdata():
test = Simdata() if name == "main": |
that's strange; my guess would be somehow the class is being instantiated twice somehow. in your code above you have |
Thanks for replying. It was calIed only once. I tried removing the class entirely, and still I get the error. I then copied the modified code without a class directly into my main pygame file and still I got the error. Perhaps it somehow does not play well with the pygame module somehow? I will try to investigate further. |
I have created a class which uses pysimconnect. This class works as intended when I use it locally with if name == "main", but when i import the class from another module I get the following warning: "WARNING:root:sc.receiveNext: exception 3, sendID 2, index 4294967295"
I also get the same warning when I copy and paste the class inside my main code and run it.
The text was updated successfully, but these errors were encountered: