[python-win32] 2D array from win32com

2017-02-16 Thread Filippo Scotti
Hello, I am expecting a 720x480 array (safearray, 1 byte/pixel) from the method below from a camera SDK but win32com is returning a byte buffer of size 720. Extracting the data from the buffer I can get pixel values of only 1 row of pixels and not the entire 2D array. How can I get the 2D array?

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Stephen Chapman
Tim, Since it was a simple example I was only passing a single int for a parameter and returning 0. As far as I know COM servers don't cache responses I have never seen that happen anyway. As well I'm running on an i7 3.2ghz machine so my results could be faster than most. However the quest

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Denis Akhiyarov
I would be curious to see your c# code, I support Tim on unrealistic timing. This kind of questions are good for Stackoverflow. On Thu, Feb 16, 2017, 6:50 PM Tim Roberts wrote: > Stephen Chapman wrote: > > So after much research on the library . It certainly looks like the > > invoke method is

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Tim Roberts
Stephen Chapman wrote: > So after much research on the library . It certainly looks like the > invoke method is taking all the time. Is this because of the > conversion from Variant??? > > On Tue, Feb 7, 2017 at 11:09 AM, Stephen Chapman > mailto:schapman1...@gmail.com>> wrote: > > Hello, >

Re: [python-win32] Python win32Com Server DLL

2017-02-16 Thread Stephen Chapman
So after much research on the library . It certainly looks like the invoke method is taking all the time. Is this because of the conversion from Variant??? On Tue, Feb 7, 2017 at 11:09 AM, Stephen Chapman wrote: > Hello, >I am having a speed issue while running dll functions. I have a > m