This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

if the nRF52840 is removed, then try to collector.open() by using the old port, it will crash although using try ... Exception, what to do to avoid crash?---pc-ble-driver-py

def open(self):
try:
self.run_workers = True

self.log_worker = Thread(
target=self.log_message_handler_thread, name="LogThread"
)
self.log_worker.daemon = True
self.log_worker.start()

self.status_worker = Thread(
target=self.status_handler_thread, name="StatusThread"
)
self.status_worker.daemon = True
self.status_worker.start()

self.ble_event_worker = Thread(
target=self.ble_event_handler_thread, name="EventThread"
)
self.ble_event_worker.daemon = True
self.ble_event_worker.start()

return driver.sd_rpc_open(
self.rpc_adapter,
self.status_handler,
self.ble_event_handler,
self.log_message_handler,
) -------execute here will crash"Process finished with exit code -1073741819 (0xC0000005)"

except Exception as ex:
raise ex
Parents Reply Children
No Data
Related