Type conversion problem #2375
feketeimre
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to interface with a .NET dll to read stuff from a camera and i have trouble figuring out the types for a function call. Admittedly i have just started using pythonnet so my problem might be trivial.
Here is the truncated version of my program:
I have doubts if the imgBuf = PylonBufferByte is equivalent to the original c: PylonBuffer imgBuf = null;
But mainly the type conversion error is what i have no idea why it doesnt work. I am certain that Byte is a valid type for PylonBuffer.
With dnSpy i looked into the problematic function and found this:
Also im not sure how to deal with the ref and out keywords.
Any help is welcomed,
Thank you
Beta Was this translation helpful? Give feedback.
All reactions