[Python.NET] Re: "TypeError: No method matches given arguments" Error - please help!

2021-08-14 Thread Slide
When calling a .NET method that has out parameters, you have to supply dummy arguments for the out parameters, can you try something like: result, response, errString = ESP301Device.SR_Get(1, 0.0, '') The values don't seem to matter, but they must be there from what I have seen in my usage. On

[Python.NET] Re: "TypeError: No method matches given arguments" Error - please help!

2021-08-16 Thread Slide
I'm not sure, I've had to pass dummy arguments in pretty much every call I have. On Mon, Aug 16, 2021 at 9:44 AM wrote: > I am using pythonnet version 2.5.2. Slide - your suggestion does fix the > problem, thanks. The following code works: > > from System import UInt3

[Python.NET] Parameter marshalling question

2021-08-20 Thread Slide
I have the following method defined in my application that I am trying to call from Python using PythonNET Snippet public IEnumerable ReadBuffer(ulong address, int size, out int readCount) The address can be anything in the range of 0x0__ - 0x1__, when I call this using a value