Open RobertoRoos opened 2 months ago
In the following code, my program crashes almost instantly when I use PyCharm debugger to view entries the slaves variable:
slaves
import pysoem master = pysoem.Master() master.open("\\Device\\NPF_{...}") if master.config_init() > 0: slaves = master.slaves else: print('no device found') master.close()
Breaking on the last line is fine:
But when I try to expand slaves[0] to view its properties it crashes, with the error
slaves[0]
Process finished with exit code -1073741819 (0xC0000005)
Otherwise the code seems okay. Adding this for example prints the names as expected:
for slave in master.slaves: print(slave.name)
EDIT: Exact same happens in VS Code.
In the following code, my program crashes almost instantly when I use PyCharm debugger to view entries the
slaves
variable:Breaking on the last line is fine:
But when I try to expand
slaves[0]
to view its properties it crashes, with the errorOtherwise the code seems okay. Adding this for example prints the names as expected:
EDIT: Exact same happens in VS Code.