-
Notifications
You must be signed in to change notification settings - Fork 55
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
LibPlcTagException ErrorNullPtr #388
Comments
That exception is being thrown in the finalizer which is why you can't catch it in the code snippet. If you're running that code over and over you'll be generating a new Tag object every time which is not how libplctag is intended to be used. From the wiki
If you can provide Debug logs there might be some useful information we can use to find out more. |
I refactored all the code to create separate lists like Regarding debugging, I added Error level debugging. |
Thanks for the information - something to keep in mind is that you can deterministically dispose of the tags by using the Dispose method rather than leaving it to the Finalizer to call it. |
Hello, I have an app that continually queries @ 500 total tags from around 12 ControlLogix devices. About once a week, I get a crash due to unhandled exceptions. A couple examples:
All of the
ReadAsync
calls are wrapped in try/catch like:Running libplctag v1.2.0 and libplctag.NativeImport v1.0.37. I just updated to the most recent versions after making this post.
Any suggestions? Thanks!
The text was updated successfully, but these errors were encountered: