lcls-twincat-general
lcls-twincat-general copied to clipboard
Page Fault with Improper Use of FB_EPS
Current Behavior
If you call fbEPS.setBit()
or fbEPS.setDescription()
prior to calling fbEPS()
with some instance of DUT_EPS
, it results in a page fault. This is because setBit
and setDescription
refer to the eps
object that was passed in, and without passing one prior this is a null reference. Beckhoff sort of tries to warn us about this via a cryptic compiler warning, but this is otherwise not warned about in the documentation or in the docstrings.
Expected Behavior
We should have some combination of the following:
- Errors instead of page faults
- A warning in the docstrings
- A warning in the documentation
Context / environment
@NSLentz ran into this while testing out the EPS features.