... like ln(-1) or 0/0 why do some cause the exception and
others do not?
If someone wanted to volunteer time to adjust the math unit to always behave
the same way, would it be something that would be accepted or is there some
fundamental reason why it is like this?
James
-Original Message
Is there a way to prevent getting the runtime error?
James
-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of
Florian Klämpfl
Sent: Wednesday, June 20, 2018 4:59 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] math
ere it still had Ansi
Capability but not turned on by default anymore.
James
-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of
James Richters
Sent: Tuesday, January 09, 2018 10:28 PM
To: 'FPC-Pascal users discussions' <fpc-pascal@lists
> note that constants related to the windows 10 virtual terminal are not
> defined in FPC yet.
Correction: They were not added as of 3.0.4.rc1, they have been added now, not
sure exactly which version they are/were included.
James
-Original Message-
From: fpc-pascal [mailto:fpc-
Technically the anti-abuse field would produce the output of: Fatal Syntax
error, ";" expected but "identifier WRITELN" found
because there is no semicolon following the sample code. :DI guess maybe
it's after an if statement and before an else so it doesn't need a semicolon?
Silliness
AB
On 01/16/2018 12:52 PM, James Richters wrote:
> Technically the anti-abuse field would produce the output of: Fatal Syntax
> error, ";" expected but "identifier WRITELN" found
> because there is no semicolon following the sample code. :DI guess maybe
> it'
will be clear
what is redirected and what isn't It also shows writing things to stderr then
using gotoxy32 to write over it so it won't even show up on the screen. If the
program is run without redirection. (set wait4key to false to see this)
James
-Original Message-
From: fpc-pascal [mai
>For operations producing results in floating-point format, the default result
>of an operation that
>signals the invalid operation exception shall be a quiet NaN that should
>provide some diagnostic
>information (see 6.2).
If it shall be a quiet NaN doesn't that mean it would never cause the
-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of
g...@wolfgang-ehrhardt.de
Sent: Thursday, June 21, 2018 2:46 AM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] math with infinity and NaN
Quoting James Richters :
> SetExceptionMask(GetExceptionM
/Infinity_Minus_Infinity.html
James
-Original Message-
From: fpc-pascal [mailto:fpc-pascal-boun...@lists.freepascal.org] On Behalf Of
Marco van de Voort
Sent: Wednesday, June 20, 2018 9:21 AM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] math with infinity and NaN
In our previous episode
discussions
Subject: Re: [fpc-pascal] math with infinity and NaN
Zitat von James Richters :
>> For operations producing results in floating-point format, the
>> default result of an operation that signals the invalid operation
>> exception shall be a quiet NaN that should provi
On 7/21/2018 1:43 PM, Ben Grasset wrote:
Shouldn't the attribute tags just be put wherever it's easiest for the
compiler to deal with them?
That would be bending the language to fit the implementation, when it
should be the other way around.
I think the vast majority of people care
I am trying to figure out how I can remove the last line of a text file to
replace it with a new one. I can do this with typed files with seek... but I
am confused on how I could do this with just a text file.
If I use:
Var Myfile: Text;
Mydata:String;
Thank you for the advice and for the example. I don't know what is considered a
large file.. these files can be maybe about 1000 lines long, most will be less,
would this solution be suitable for files of this size?
Is Tstringlist something like an array of strings?
-Original Message-
I have a whole section of diagnostic writeln's in a program, and it's tedious
to comment them all out/in as needed. I'm curious if doing something like
Const
diagnosticdetail=false;
If diagnosticdetail then Writeln('diagnostic info');
Is the same as
// Writeln('diagnostic info');
And
>I have written a few small windows type apps, but still prefer console. More
>of the programming is for function instead of display.
I also prefer ‘console’ but I prefer it for heavy graphical UI applications as
well as functional types of programming.I cannot stand programs the try to
Op 03-04-2018 13:58 schreef James Richters:
> Thank you for the advice and for the example. I don't know what is considered
> a large file.. these files can be maybe about 1000 lines long, most will be
> less, would this solution be suitable for files of this size?
>
> Is Tstrin
Is there a copyfile for Freepascal I can use without installing Lazarus?
I found:
http://wiki.freepascal.org/CopyFile
but that seems to only work with Lazarus.
I just want to make a copy of a file into a different directory and maintain
it's timestamps etc
Any suggestions?
James
and where to copy them.
James
-Original Message-
From: fpc-pascal On Behalf Of
leledumbo via fpc-pascal
Sent: Thursday, April 18, 2019 2:45 AM
To: fpc-pascal@lists.freepascal.org
Cc: leledumbo
Subject: Re: [fpc-pascal] CopyFile for FreePascal without Lazarus?
> but that seems to o
Subject: Re: [fpc-pascal] unexpected termination with no errors
Hi,
On Wed, 15 May 2019, James Richters wrote:
> Has anyone encountered anything like this before or know how I can
> make sure I always get the maximum amount of debugging info when my
> program crashes?
Is it a subthr
/19 a las 23:17, James Richters escribió:
> I have it defined with the program variables:
>
> Here are all my Uses and Vars:
>
> Uses
>ptcgraph,sysutils,Windows,Commdlg,Classes,CRT;
>
> Var
> TFilename : TOpenFileNameA;
> ret
in the directory I expect to be in.
Any Advice or suggestions on any of this, or on how I could improve the
structure or methods of this program are greatly appreciated.
James
{$mode objfpc}{$H+}
//
https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea
Oh that makes sense… so it would know when there wasn’t another string. I’ll
put another #0 that seems to be the correct way.
James
From: fpc-pascal On Behalf Of
Alexander Grotewohl
Sent: Thursday, May 23, 2019 12:22 PM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] Getting
I’m not clear about when they need one #0 or two. I thought it was just
.lpstrFile to make it clear there weren’t more file names in it.. so one #0
between each name and double #0 at the end.. maybe they all need double #0 at
the end?
James
From: fpc-pascal On Behalf Of
Alexander
directory, so I would like to
learn the proper way to achieve both of these.
Thank you again for the help and the great suggestions! It’s very much
appreciated.
James
{$mode objfpc}{$H+}
//
https://docs.microsoft.com/en-us/windows/desktop/api/commdlg/nf-commdlg-getopenfilenamea
discussions
Subject: Re: [fpc-pascal] Detecting console close with red X on windows
On Sun, 19 May 2019 at 14:33, James Richters
wrote:
>
> Could I please get an example of this? I see lots of examples of how to do
> it in C but when I try to translate to pascal I always struggle a qu
Thanks for clarifying, I have everything working well now in my real program,
I didn’t need to do anything other than save and close some files, so I have
plenty of time to get everything done.
James
From: fpc-pascal On Behalf Of Sven
Barth via fpc-pascal
Sent: Sunday, May 19, 2019
Is there a way I can detect that a user has pushed the red X in the upper right
corner to close the console window in a free pascal console application so I
can save some files before the program terminates?
James
___
fpc-pascal maillist - fpc
and
.Free…. But I’m not sure where that would be documented.
Also can someone explain that the purpose of .Destroy is and why I would use
.Free Vs .Destroy ?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http
Thank you very much for the explanation and examples of this! I am glad you
pointed out the FreeAndNill() function, I will defiantly be needing that.
James
-Original Message-
From: fpc-pascal On Behalf Of Michael
Van Canneyt
Sent: Monday, May 20, 2019 8:03 AM
To: FPC-Pascal users
really a memory related issue? Something like a writeln for stack space
etc?
James
-Original Message-
From: fpc-pascal On Behalf Of Marco
van de Voort
Sent: Tuesday, May 21, 2019 9:51 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] RPos Causing Access violation
Op 2019-05
detailed debug reports that get me to the
exact command that caused the problem and other times I have some information
but then it just stops and I have nothing following the hex addresses.
James
___
fpc-pascal maillist - fpc-pascal
I don’t seem to have FreeThenNil I’m using FPC 3.0.4RC1 I don’t use Lazarus..
maybe it’s a Lazarus thing… or maybe it’s in a different unit
plotdraw.pax.pas(20,7) Error: Identifier not found "FreeThenNil"
James
From: fpc-pascal On Behalf Of
Giuliano
.
Any ideas?? I’m running on Windows 10, compiling with FPC 3.0.4RC1 with
the FPC text IDE.
James
From: fpc-pascal On Behalf Of James
Richters
Sent: Tuesday, May 21, 2019 7:35 AM
To: 'FPC-Pascal users discussions'
Subject: [fpc-pascal] Debug Advice needed
I have
it to work...
maybe I am not cleaning up or resetting the way I should be. I'm going to
post that function with a separate title to make it clear it's a new topic
James
-Original Message-
From: fpc-pascal On Behalf Of Bart
Sent: Tuesday, May 21, 2019 12:50 PM
To: FPC-Pascal users
trFile[loopx+1]=#0;
Textcolor(14);
If File_Stringlist.Count=1 then
Writeln(File_Stringlist.Count,' File Selected')
Else
Writeln(File_Stringlist.Count-1,' Files Selected');
End;
End;
James
___
fpc-pasca
tStringList
James
-Original Message-
From: fpc-pascal On Behalf Of Cyrax
Sent: Tuesday, May 21, 2019 4:55 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] Getting multiple files from GetOpenFileNameA
On 21.5.2019 22.12, James Richters wrote:
> This is the function I came
go.
James
From: fpc-pascal On Behalf Of Gary
Doades
Sent: Wednesday, May 15, 2019 12:11 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] unexpected termination with no errors
Windows represents exception codes as an unsigned int. The error -1073741819 is
actually
it into the category of “things zero or less” which made my batch file treat it
as a normal exit.
It was my batch file that was failing to function correctly.
James
From: fpc-pascal On Behalf Of James
Richters
Sent: Thursday, May 16, 2019 7:31 AM
To: 'FPC-Pascal users discussions
A program I have been working on for years has suddenly developed a bug in it
and at a certain point, it is just terminating and not giving me any runtime
errors or any error of any kind. It's just running running... running...
then BAM - GONE, no explanation%errorlevel% is
why ^ gets left out of parameters
with no quotes or why windows would put two of them if I call the program?
I'm sure there is some kind of reason, but I can't find any information about
why ^ is treated differently than any other character.
James
___
Thanks you!
That got me on the right path.
Here's the working sample:
Hash := Md5Print(MD5String(MyStringlist.Text));
James
-Original Message-
From: fpc-pascal On Behalf Of Bo
Berglund
Sent: Thursday, July 4, 2019 11:49 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc
of buffer myself and then get the hash
from that?
Any advice is greatly appreciated
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
take years to accomplish.
Any help or suggestions are greatly appreciated.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
I see how {$ModeSwitch } work now.. I have far more code that only works in
{$Mode TP} so I supposed I'll have to just re-write things to stay compatible
with that.
Is there a {$Modeswitch } feature I can turn on to allow the % to specify
binary numbers when in {$Mode TP}?
James
Thank you, using fgl; did work.
Am I correct in assuming that if I want other types of Variables I would change
PWord in
specialize TFPGMap;
to something else, maybe PString, PDouble, PLongint etc?
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent
name with string variable
On Sun, 7 Jul 2019, James Richters wrote:
> This might sound silly, but is it possible to somehow specify a variable
> with a string containing the name of the variable?
>
> For example:
>
> Var
> MyVariable1 : Word;
> MyVariableName
by the same string and then I could make
my calls like that.
James.
From: fpc-pascal On Behalf Of
Santiago A.
Sent: Monday, July 8, 2019 3:40 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] specify variable name with string variable
El 07/07/2019 a las 21:58, James
I’m curious how use classes together with published properties would work, is
there a sample of how to use this somewhere?
James
From: fpc-pascal On Behalf Of Sven
Barth via fpc-pascal
Sent: Monday, July 8, 2019 5:31 PM
To: FPC-Pascal users discussions
Cc: Sven Barth
Subject: Re: [fpc
functions to the
unit I have and to convert it to use doubles.. etc, but it's going to be a long
tedious process.. and I'll be wasting my time if I could have just used
something that is already out there.
Any Ideas?
James
___
fpc-pascal maillist - fpc
a For loop variable, which works in
{$Mode TP}
For X := 1 to 10 do
Begin
If somethingmakesmewanttoexit then
X:=10;
If somethinmakesmewanttoskipthenextthing then
Inc(X);
End;
James
-Original Message-
From: fpc-pascal On Behalf Of Michael
Van
to interface this once
device to windows... I guess I'll keep trying to come up with a solution.
Anyone have any thoughts on all this?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc
first byte, so then I have to repeat it like
this:
libusbhid_set_report(device_context, HID_REPORT_TYPE_FEATURE,
hidOutData[0] , 7, hidOutData[ 0.. 6] ); ?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Thank you, it's working with either 64bit or 32bit interchangeably now.
James
>I think you can get it at
>https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.7z,
>subdirectory MinGW32/dll in the archive
___
fpc-pascal
I agree, I hate the self. And this. I really don't even understand them...
I'll keep Freepascal too, which I've been able to do more with than I ever
imagined possible.
James
>I also think to the worse case, in Java, when you need to type something like
>a.SetX( a.GetX()+1) ...
>And
files it creates
is to have nothing on except "Allow LABEL and GOTO" and "Allow inline". All
other Syntax Switches are turned off including "C-like operators" by default
when the text IDE creates a new fp.cfg and fp.ini from scratch.
James
>> No,
it would simplify
things greatly
James
-Original Message-
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Friday, August 16, 2019 1:34 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] *** SPAM *** Re: USB Human Interface Devices
Le 16/08/2019 à 17:11, James Richters
for the help with all this!!
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Friday, August 16, 2019 1:30 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
On 8/16/19 11:11 AM, James Richters wrote:
>>>
fun.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
where the device pushes
data into a buffer whenever it wants that I can then read.. or something like
that? Or maybe the interrupt read is the best I can do? Is there any way to
give my read thread to have a higher priority or something like that?
Any thoughts?
James
I just pushed it.
>Could you please "git push" the source code to Github so that the line numbers
>match the output? At least in line 1330 of libusboop.pas there is no Create.
>Please ensure that the
>version on Github is the very same version where you executed the program and
>got the line
essor time for a second and I would
just not know about events that happened during that time.
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Sunday, August 18, 2019 3:12 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interfa
working…. I can just use libusbxhid, but this is
bugging me and I wanted to try to figure out what’s going on.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
but I can't write to the usb
device if the read thread happens to be in the middle of a read... so how do I
pause the read thread at the correct time so it's not partially in the middle
of reading a packet, and I can't read again until I'm done writing. I figure I
can ju
My concern was that I could not read and write at the exact same time
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Sunday, August 18, 2019 9:32 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
>> My guess is
is the first byte of data
being sent as the report number.. I'm not sure I'm understanding that
correctly, but it seems to be the only way it will work at all.
James
>Oh, it's chinese - forget about getting any information.
>Did you read there
>https://github.com/rubienr/machinekit/tre
is for wireless and they are HB04Bx (either -4 or -6 as far as
I know.. maybe there is a -3 as well)
I have no idea what the DLL could possibly be for though
James
-Original Message-
From: fpc-pascal On Behalf Of Marc
Santhoff
Sent: Sunday, August 18, 2019 9:12 PM
To: fpc-pascal
r other windows APIs?
James
-Original Message-
From: fpc-pascal On Behalf Of José
Mejuto
Sent: Thursday, August 15, 2019 8:34 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
El 14/08/2019 a las 16:29, James Richters escribió:
> I'll have a look
Thanks for posting the examples and the information. I'll have a look... I am
thinking maybe I should buy some of those USB relays or something simpler just
to get SOMETHNG to work so I can figure out what's supposed to even be
happening.
James
-Original Message-
From: fpc-pascal
Hi Hansi,
Thanks for the sample programs and information. I'm going to try to do as you
suggest and try to translate to the new libusb-1.0.. I'm not sure I'll
understand it enough but it seems like it's heading in the right directions so
would be worth a try.
James
-Original Message
made a fork in github and a branch called "test" here:
https://github.com/Zaaphod/pas-libusb/tree/Test
Any advice is greatly appreciated
James
> Actually you could copy the class TUSBPseudoHIDInterface (plus the types
> THIDReport and TIntrReportFunc) from usb.pas to libusboop.pas an
begin
WHB04B_Device;
End.
When I run it I get:
Running "i:\programming\pas-libusb_test_dll\src\examples\test_open_whb04b.exe "
Couldn't connect to device: Access violation
When I try any of the other devices in the list I get:
Running "i:\programming\pas-libusb_test_dll\src\examp
device? ... and that will allow me a
more generic method to access the device?
James
>Please see snapi.pas, which I've sent you on 2019-08-10. This does exactly
>that. I've sent this file specifically that you use it instead of mydevice.pas.
_
differently than this?Sorry I'm so confused.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
to be something
else?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
included with it. If anything
perhaps it is a bug of Lazarus to turn it on by default when FPC by itself has
it off by default.
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
years
from now is way more important than getting it to work right now... it's when
you go back later you want it to be as readable as possible. I guess I just
prefer Variable := Formula; syntax and the clarity of it.
James
-Original Message-
From: fpc-pascal On Behalf Of Ryan
USB driver and I changed it to LibUsb then is
there a way to put it back?
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>My code to manage HID USB relays uses hid.dll (32 & 64 bits) or
>libusb-1.0 (32 bits only tested) on Windows, and libusb-1.0 or
>libusb-0.1 in Linux.
I'll have a look at your project.. maybe it will give me some clues.
Can you tell me how to get hid.dll? I find it all very confusing, can I
keys you need to hit to get the code on the screen.
James
-Original Message-
From: fpc-pascal On Behalf Of Rainer
Stratmann
Sent: Wednesday, August 14, 2019 12:33 PM
To: FPC-Pascal users discussions
Subject: Re: [fpc-pascal] += property bug?
On Mittwoch, 14. August 2019 18:24:40 CEST
g with TLibUsbPseudoHIDInterface yet, I was just
trying to get libusboop.pas to compile, and be able to still run the previous
examples.
I've updated my repository at https://github.com/Zaaphod/pas-libusb/tree/Test
Let me know if I should do something different with the ^ above, or if you see
how to get
stdcall to properly work with pas-libusb.
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Saturday, August 17, 2019 12:11 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
Libusb can be compiled
ithub here:
https://github.com/Zaaphod/libusbxhid
Can you tell me where to get libusb_1.0_X86.dll ?I had the x64 version
from the sample Jean sent me, but I would like to make my program work on 32bit
machines as well.
Thanks to everyone for the help with this! I really appreciate
Oops, I got mixed up.. it's usb.pas that isn't used anymore... I changed
LibUsb to stdcall and not it compiles again.. but I still get he access
violation with stdcall.
James
> from the copy of your github, looks like libusboop.pas has a uses statement
> for libusb.pas; so libu
I commented out all the try & except stuff and ran it.. I get this output:
Running
"i:\programming\pas-libusb_test_dll\src\examples\testopendevic_vidpid2.exe "
start
1
2
a05472131
a10CEEB93
b
c
FALSE 8086 10CE A36D EB93
FALSE 8087 10CE 0AAA EB93
FALSE 0424 10CE 2734 EB93
FALSE 1D50
in threads that I can set to make my fast read
thread always run faster than the others.. some kind of priority or
percentage?? Or do I just have to put enough delays with Sleep() commands to
slow everything else down...
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
just to figure out the syntax.. then I can
copy sections and modify it as needed.
James
>Hmm, no. You should make your own unit for your device, from scratch.
>And then use snapi.pas as a guide how to do that. As I've written in my
>previ
Thanks for the suggestion!
James
>Move(LCD_Array[0..6],Device_Array[1],7)
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
/libusbxhid/blob/master/WHB04B-4_test.pas
I don't really know what libusb: warning [handle_timeout] async cancel failed
-5 errno=0 is trying to tell me... it is having an issue canceling waiting for
data after the time out I guess.. but why is that a problem?
Any Ideas?
James
-Original Message
.
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Wednesday, August 21, 2019 10:20 PM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB Human Interface Devices
On 8/21/19 6:35 PM, James Richters wrote:
> I had them separated, but whene
is so I can
just exit out of the mode the uses the device and return to normal processing
without generating any errors.
Any ideas?
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Friday, August 23, 2019 10:54 AM
To: fpc-pascal@lists.freepascal.org
Subject
information to have in my loop as
if I get a -7, I don't need to bother checking the data at all since it was not
read, it was just a timeout. https://github.com/Zaaphod/libusbxhid/tree/Test
James
-Original Message-
From: fpc-pascal On Behalf Of Stefan
V. Pantazi
Sent: Tuesday, August 27, 2019
and clears
when it exits, but I am wondering if there already something in place to check
to see if a thread exists.
James
-Original Message-
From: fpc-pascal On Behalf Of Jean
SUZINEAU
Sent: Wednesday, August 28, 2019 7:04 AM
To: fpc-pascal@lists.freepascal.org
Subject: Re: [fpc-pascal] USB
eed memory blocks : 0
True heap size : 98304 (192 used in System startup)
True free heap : 98112
James
-Original Message-
From: fpc-pascal On Behalf Of James
Richters
Sent: Wednesday, August 28, 2019 5:03 AM
To: 'FPC-Pascal users discussions'
Subject: Re: [fpc-pascal] USB Human Interfa
Thanks for the information
I'm going to end the thread if the USB device is unplugged, so then I need the
main program to also know the thread has ended so it can go back to
occasionally checking to see if the device was plugged back in.
>You can find whether your thread is running or not with
it to work with
threads as it will greatly simplify things and probably perform better as well.
It sounds like there is already circular buffer functions available in FPC?
I would really like to see your code sample if you don't mind, it all sounds
very useful!
James
-Original
change during program execution without re-compiling
it? It would be helpful if I was having an issue to turn on debug info, then
turn it back off without exiting my program or needing to compile.
James
>libusb has a debug verbosity level which currently is set to 3 (i.e., v
re-compiling.
Could another variable be used to make libusbxhid messages optional but only if
{$ifdef DEBUG_MSG} is used? It would be helpful to be able to hide them most
of the time but show them if trying to debug without re-compiling.
James
From: fpc-pascal On Behalf Of Stefan
V
Thanks for the Sybcobs suggestion, I didn't know there was such a thing but it
seems like a great way to prevent simultaneous data/hardware events.
James
-Original Message-
From: fpc-pascal On Behalf Of Brian
Sent: Thursday, August 29, 2019 10:50 AM
To: fpc-pascal@lists.freepascal.org
eed : 28731/32376
0 unfreed memory blocks : 0
True heap size : 163840 (160 used in System startup)
True free heap : 163680
James
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
301 - 400 of 705 matches
Mail list logo