Re: [fpc-pascal] USB Human Interface Devices

2019-08-27 Thread Stefan V. Pantazi
libusbhid_interrupt_read. failed! return code: -1 0libusb: error [winusbx_submit_bulk_transfer] ReadPipe/WritePipe failed: [2] The system cannot find the file specified. But I don't really know how I can detect this and exit the process and signal my other program that the device is no

Re: [fpc-pascal] USB Human Interface Devices

2019-08-27 Thread James Richters
I finally have this working fairly well. I used Stefan's sample program as a guide and used classes to define my thread... and that seemed to solve the crashing issue I was having when trying to write to the LCD from outside the fast read thread. Here is the current version:

Re: [fpc-pascal] how to convert JNByteBuffer variable type to type usable by fw.write

2019-08-27 Thread Mgr. Janusz Chmiel
Thank you very much for yours kind acces to my plea. The question is, if compiled Android app by using FPCJVM Android target mode will be able to communicate with .so library with bass.so which will receive The stream from The internet and record received live stream input and store it to The

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread tobiasgiesen
Hello, here's a minimal Pascal program to call XGetWindowProperty: https://www.syncovery.com/minimalxtest.pas Cheers, Tobias On Mon, 26 Aug 2019 23:22:01 +0200 Pierre Muller wrote: > > > Le 26/08/2019 à 22:46, tobiasgie...@gmail.com a écrit : > > Hi Jonas, > > > > fantastic, that

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread Florian Klämpfl
Am 27. August 2019 15:03:46 schrieb tobiasgie...@gmail.com: > Hello, > > yes I will send you a minimal program to call XGetWindowProperty. > > Cheers, > Tobias > > > > On Tue, 27 Aug 2019 11:35:01 +0200 > Pierre Muller wrote: > >> Hi, >> >> >> the testsuite results show no difference, >>

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread tobiasgiesen
Hello, yes I will send you a minimal program to call XGetWindowProperty. Cheers, Tobias On Tue, 27 Aug 2019 11:35:01 +0200 Pierre Muller wrote: > Hi, > > the testsuite results show no difference, > this probably means that we have no test that checks > GCC compatibility for more than

Re: [fpc-pascal] ppc64le ABI problem

2019-08-27 Thread Pierre Muller
Hi, the testsuite results show no difference, this probably means that we have no test that checks GCC compatibility for more than 8 parameters... Tobias, could you send us a small source that allows to check this? Thanks in advance, Pierre Le 26/08/2019 à 00:59, tobiasgie...@gmail.com a

Re: [fpc-pascal] how to convert JNByteBuffer variable type to type usable by fw.write

2019-08-27 Thread Jonas Maebe
On 2019-08-26 15:13, Mgr. Janusz Chmiel wrote: Please, does somebody of us know how to write file by using binary mode and writing data from The variable which have JNByteBuffer variable type? Here is a Java example on how to do it. You need to use java.io.FileOutputStream (JIFileOutputStream