Replies: 1 comment
-
According to https://techdocs.zebra.com/dcs/scanners/sdk-windows/api/#api-events-barcode-event (would have been nice if you had linked that :)) the correct signature is void OnBarcodeEvent(
short eventType,
ref string pscanData)
def on_barcode_event(event_type: int, pscan_data: str) -> str My guess is that they just silently swallow the exception in their event loop and have it crash. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing integration with barcode scanner (.NET SDK available) using Python pythonnet
One of the tasks is attaching an event function that should fire whenever scanner successfully reads the barcode
If that function returns string, then everything is OK and I can scan indefinitely.
If it returns True or integer then the event loop gets interrupted and hangs up without any errors.
What is the way to debug this? I don't have source code for SDK, and C# example of working with SDK works fine with event function that doesn't return anything
Here is my code:
Beta Was this translation helpful? Give feedback.
All reactions