[CentralOH] PythonDotNet
Mark Erbaugh
mark at microenh.com
Sun Feb 22 04:10:16 CET 2015
Greetings,
I am struggling with a hobby project using PythonDotNet. I have an API
for an external device written in C# and .NET. I have the C# code.
Rather than using IronPython, I am trying to use PythonDotNet with
CPython 2.7.9. The C# code was not written with any special
consideration of Python.
The API implements callback functions. I have been able to write several
of the callback functions in Python and they work. But, now I've come
across something that I can't figure out, and perhaps it's not supported
by PythonDotNet. There is a callback routine that passes a C# array of
shorts. the C# function signature is
public delegate void DataReadyEventHandler(Panadapter pan,
ushort[] data);
No matter how I try to code my Python function, I am getting a runtime
exception from the PythonRuntime part of PythonDotNet.
Is passing this array possible?
Thanks,
Mark
More information about the CentralOH
mailing list