Re: [fpc-pascal] DoDirSeparators and special filenames on Windows

2013-09-10 Thread wkitty42
On Tuesday, September 10, 2013 11:35 AM, Jürgen Hestermann wrote: > Am 12013090922:28, schrieb Tomas Hajny: > > ...and the issue is that at least some Windows API functions happily > accept > such paths, > > i.e. programs using such API functions accept them too. > > If FPC RTL manages t

Re: [fpc-pascal] TMemoField saving empty strings as '' (double quote)

2013-09-11 Thread wkitty42
On Wednesday, September 11, 2013 5:56 AM, LacaK wrote: >Now doing more tests. I see, that in pgAdmin when I use right click ontable >and use "View Data" then '' (two single quotes) are shown in TEXTcolumn, but >when I use SQL and type: > select * from then empty fields are shown ... so itsee

Re: [fpc-pascal] lnet for TCP daemon

2013-09-13 Thread wkitty42
On Thursday, September 12, 2013 7:14 AM, Michael Schnell wrote: > On 09/12/2013 12:47 PM, Mark Morgan Lloyd wrote: > > > > I've concluded that using a thread is, in fact, preferable > True. > > It's a pity that Synapse and friend (especially SynaSer) does does not > implement internal th

[fpc-pascal] represent data string in hex?

2013-09-20 Thread wkitty42
i have a static array of strings that i need to fill as hex bytes... i can do this in decimal but it would be easier to convert other data if i can do it in hex since the data is represented in hex... a[n] := #255; // works a[n] := $ff; // does not work ideally, there would be multiple byt

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread wkitty42
On Friday, September 20, 2013 12:47 PM, Bart wrote: > On 9/20/13, wkitt...@windstream.net wrote: > > > > > a[n] := #255; // works > > a[n] := $ff; // does not work > > > > ideally, there would be multiple bytes... > > > > a[n] := $C2AD or a[n] := $C2$AD > > > > Not sure what

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread wkitty42
On Saturday, September 21, 2013 6:27 AM, patspiper wrote: > On 21/09/13 12:15, wkitt...@windstream.net wrote: [trim] > > yeah, the singles are bad examples... i'm really wanting the multiple byte > > format to work... i tried both and was told "expected string but found > > byte" or > > "wor

Re: [fpc-pascal] represent data string in hex?

2013-09-21 Thread wkitty42
On Saturday, September 21, 2013 12:03 PM, patspiper wrote: > On 21/09/13 18:56, wkitt...@windstream.net wrote: > > On Saturday, September 21, 2013 6:27 AM, patspiper > wrote: > >> On 21/09/13 12:15, wkitt...@windstream.net wrote: ... > >>> a[n] := chr($C2)+chr($AD) for two byte codes... >

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Saturday, September 21, 2013 12:03 PM, patspiper wrote: > On 21/09/13 18:56, wkitt...@windstream.net wrote: [...] > > i haven't tried that... my understanding is that #xx depicts the decimal > format of the character... > > > > eg : $FF == #255 > It is rather #$FF which is the same as #

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Sunday, September 22, 2013 7:38 AM, wkitt...@windstream.net wrote: > this worked, pat... thanks for the pointer! oops... i meant Stephano... sorry... damned webmail drek sucks... ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http:/

Re: [fpc-pascal] represent data string in hex?

2013-09-22 Thread wkitty42
On Sunday, September 22, 2013 1:25 PM, Sven Barth wrote: > On 12209201313:38, wkitt...@windstream.net wrote: > > > > On Saturday, September 21, 2013 12:03 PM, patspiper > wrote: > >> On 21/09/13 18:56, wkitt...@windstream.net wrote: > > [...] > >>> i haven't tried that... my understandin

Re: [fpc-pascal] Problems reading some of the messages from this mailing list

2013-09-23 Thread wkitty42
On Monday, September 23, 2013 7:09 AM, Guillermo Martínez wrote: > Hi, > > I'm receiving some of the messages from this mailing list coding in an > odd format: A block of characters and digits without any sense. For > example, the one I quoted at the end of this mail. Does somebody knows

Re: [fpc-pascal] Re: Problems reading some of the messages from this mailing list

2013-09-24 Thread wkitty42
On Tuesday, September 24, 2013 7:26 AM, Guillermo Martínez wrote: > Sorry, Philippe, but I can't read your messages. :( > > > Date: Mon, 23 Sep 2013 10:39:20 -0300 > > From: Philippe > > Subject: Re: [fpc-pascal] Re: Problems reading some of the messages > > fromthis mailing list

Re: [fpc-pascal] Custom dataset help request: ftCurrency/ftDateTime returns weird data

2013-10-05 Thread wkitty42
On Friday, October 4, 2013 11:18 AM, Reinier Olislagers wrote: > Thanks, but using that (and similar change for the TDateTime) gives the > same results ;( perhaps the problem is further back in the code where that data is written to the destination?? i've goofed many many many times and for

Re: [fpc-pascal] interface inheritance implementation

2015-10-12 Thread wkitty42
On 10/12/2015 12:06 PM, Graeme Geldenhuys wrote: On 2015-10-12 16:18, Sven Barth wrote: Would be nice if you'd find it. I found it, but the point is moot (just like my recent post about Interface documentation bug). It's Blue Monday for me today. :-[ [...] I got a bit confused regarding the

[fpc-pascal] is scrypt available?

2015-10-26 Thread wkitty42
i've found scrypt for delphi but desire to use it cross-platform and don't know enough about removing stuff for windows... is there an scrypt available for FPC or lazarus that is easily implemented and used? -- NOTE: No off-list assistance is given without prior approval. *Please kee

Re: [fpc-pascal] is scrypt available?

2015-10-26 Thread wkitty42
On 10/26/2015 03:29 PM, Michael Van Canneyt wrote: On Mon, 26 Oct 2015, wkitt...@windstream.net wrote: i've found scrypt for delphi but desire to use it cross-platform and don't know enough about removing stuff for windows... is there an scrypt available for FPC or lazarus that is easily imp

Re: [fpc-pascal] is scrypt available?

2015-10-26 Thread wkitty42
On 10/26/2015 05:09 PM, Michael Van Canneyt wrote: On Mon, 26 Oct 2015, wkitt...@windstream.net wrote: On 10/26/2015 03:29 PM, Michael Van Canneyt wrote: On Mon, 26 Oct 2015, wkitt...@windstream.net wrote: i've found scrypt for delphi but desire to use it cross-platform and don't know enough a

Re: [fpc-pascal] is scrypt available?

2015-10-26 Thread wkitty42
On 10/26/2015 06:28 PM, David W Noon wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 26 Oct 2015 16:54:16 -0400, Wkitty42 (wkitt...@windstream.net) wrote about "Re: [fpc-pascal] is scrypt available?" (in <562e92f8.1010...@windstream.net>): [snip] no, i haven&#

Re: [fpc-pascal] is scrypt available?

2015-10-26 Thread wkitty42
On 10/26/2015 05:09 PM, Michael Van Canneyt wrote: On Mon, 26 Oct 2015, wkitt...@windstream.net wrote: On 10/26/2015 03:29 PM, Michael Van Canneyt wrote: On Mon, 26 Oct 2015, wkitt...@windstream.net wrote: i've found scrypt for delphi but desire to use it cross-platform and don't know enough a

Re: [fpc-pascal] is scrypt available?

2015-10-27 Thread wkitty42
On 10/27/2015 06:14 AM, Graeme Geldenhuys wrote: On 2015-10-27 01:59, wkitt...@windstream.net wrote: i'll take a look... one thing that might be problematic is if it relies on additional units... not sure what you mean by that. the project in question uses very few outside developed librarie

Re: [fpc-pascal] is scrypt available?

2015-10-27 Thread wkitty42
On 10/27/2015 06:19 AM, Graeme Geldenhuys wrote: On 2015-10-27 02:02, wkitt...@windstream.net wrote: use someone else's code or to reinvent the wheel... When it comes to security the first rule of thumb applies... Never reinvent the wheel! It takes years for security related code to be well te

Re: [fpc-pascal] is scrypt available?

2015-10-28 Thread wkitty42
On 10/28/2015 03:48 PM, Graeme Geldenhuys wrote: On 2015-10-27 14:14, wkitt...@windstream.net wrote: the project in question uses very few outside developed libraries or units... we don't want to drag in a whole lot of stuff that's not needed or used by the rest The reason there are many unit

Re: [fpc-pascal] is scrypt available?

2015-10-29 Thread wkitty42
On 10/29/2015 01:08 PM, Frederic Da Vitoria wrote: Good point. I'd even ask the question: do you really need to store the passwords? IOW, do you want to be able to send them back to the user? Or do you only need to check them? in the use case being studied, passwords can only be compared or res

Re: [fpc-pascal] is scrypt available?

2015-10-30 Thread wkitty42
On 10/30/2015 11:30 AM, Frederic Da Vitoria wrote: 2015-10-30 0:33 GMT+01:00 mailto:wkitt...@windstream.net>>: On 10/29/2015 01:08 PM, Frederic Da Vitoria wrote: Good point. I'd even ask the question: do you really need to store the passwords? IOW, do you want to be able to

Re: [fpc-pascal] is scrypt available?

2015-10-30 Thread wkitty42
On 10/30/2015 12:06 PM, Jonas Maebe wrote: Frederic Da Vitoria wrote on Fri, 30 Oct 2015: 2015-10-30 16:39 GMT+01:00 Jonas Maebe : Never ever use CRC32 in a crypto context, it's completely unsuited and easily cracked. The subject of this thread is already about finding an implementation for

Re: [fpc-pascal] [fpc-other] FPC Pestering Peacock (3.0.0) release

2015-11-26 Thread wkitty42
On 11/26/2015 04:18 AM, Jonas Maebe wrote: Joost van der Sluis wrote: We are happy to announce the release of the Free Pascal Compiler version 3.0.0 "Pestering Peacock". Support for getting the announcement on Slashdot by upvoting http://slashdot.org/submission/5285369/free-pascal-compiler-30

Re: [fpc-pascal] [fpc-other] FPC Pestering Peacock (3.0.0) release

2015-11-26 Thread wkitty42
On 11/26/2015 11:00 AM, Jonas Maebe wrote: Michael Van Canneyt wrote on Thu, 26 Nov 2015: On Thu, 26 Nov 2015, Jonas Maebe wrote: It doesn't seem like it will make it :/ If anyone else wants to submit an alternate announcement, feel free. There's another editor on duty now compared to when I

Re: [fpc-pascal] Lack of 'volatile' a serious issue. Any other such caveats?

2015-12-19 Thread wkitty42
On 12/18/2015 06:16 AM, R. Diez wrote: [...] > "for loop variable value reliable after loop?" > http://lists.freepascal.org/pipermail/fpc-pascal/2015-October/045446.html > [...] > language behaviour that may be unexpected if you are used to > e.g. C, but that is considered normal in Pascal

Re: [fpc-pascal] Lack of 'volatile' a serious issue. Any other such caveats?

2015-12-19 Thread wkitty42
On 12/19/2015 11:33 AM, Sven Barth wrote: Am 19.12.2015 15:54 schrieb [...] not really... backwards compatibility and all that... borland's TP and BP do the same... at least back as far as v6... i can't get to my v5 or v3 to test but i daresay that they, too, do the same... looking forward fro

Re: [fpc-pascal] Assigning string constant to a WideString and the Format function

2015-12-24 Thread wkitty42
On 12/24/2015 07:44 AM, Lubos Pintes wrote: Hello, Here is a minimal program, it doesn't work as I expected either because there is a bug somewhere in the RTL, or, more probably, I misunderstood something. Basically, I am reading an UTF-8 encoded text from stdin, and collecting it in a WideChar a

Re: [fpc-pascal] ideU version 1.0.0.

2015-12-26 Thread wkitty42
On 12/26/2015 06:55 AM, Vojtěch Čihák wrote: Hello Fred, just for curiosity, your mails (on fpc-pascal) sometimes appear "Fred van Stappen" and sometimes "fredvs". Why? Do you have more accounts? most likely different client software... both set to use the same account but one with one "real

Re: [fpc-pascal] ideU version 1.0.0.

2015-12-26 Thread wkitty42
On 12/26/2015 11:13 AM, fredvs wrote: Hello Fred, just for curiosity, your mails (on fpc-pascal) sometimes appear "Fred van Stappen" and sometimes "fredvs". Why? Do you have more accounts? most likely different client software... both set to use the same account but one with one "real name"

Re: [fpc-pascal] Recovering info from a backtrace with an external debug file

2016-02-10 Thread wkitty42
On 02/10/2016 09:47 PM, Luiz Americo Pereira Camara wrote: Hi, I compiled a program with -Xg (generating an external debug info file *.dbg) And deployed the executable without the debug info When an exception occurs i get a backtrace with only addresses How to get the line number, method name

Re: [fpc-pascal] Please someone explain this to me

2016-02-11 Thread wkitty42
On 02/11/2016 06:51 AM, Michael Van Canneyt wrote: On Thu, 11 Feb 2016, Mattias Gaertner wrote: Michael Van Canneyt hat am 11. Februar 2016 um 04:27 geschrieben: [...] Lazarus IDE shows a tooltip when you hover over an identifier with the mouse. I suspect it will take one on the team less than

Re: [fpc-pascal] Happy tickets benchmark

2016-02-13 Thread wkitty42
On 02/13/2016 04:21 PM, Vojtěch Čihák wrote: I can confirm, Inc(); is slower. Change decreased time from 440 to 390 ms. my 10 run averages seems to all be right in the same neighborhood... maybe my machine has a lot more going on in the background which is affecting my simplistic testing? A

Re: [fpc-pascal] Happy tickets benchmark

2016-02-17 Thread wkitty42
On 02/17/2016 06:28 AM, Serguei TARASSOV wrote: On 17/02/2016 12:00, fpc-pascal-requ...@lists.freepascal.org wrote: small remark for your testing series: AVG makes no sense, you should test against MIN - why ? the measured results are contaminated by other activities on your system, so the fast

Re: [fpc-pascal] Primitive Record Wrappers

2016-02-29 Thread wkitty42
On 02/29/2016 10:08 PM, Mazola Winstrol wrote: There is a problem in my design. The code won't compile if i try to specialize with a type which doesn'y supports arithmetic operators e.g String types. apparently i'm missing something... why should arithmetic operators be recognized for strings?

Re: [fpc-pascal] SOLVED fpSelect fails with UDP sockets?

2016-04-03 Thread wkitty42
On 04/03/2016 12:32 PM, Klaus Hartnegg wrote: dadr.sin_family := AF_INET; dadr.sin_addr.s_bytes[1] := 127; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 0; dadr.sin_addr.s_bytes[2] := 1; shouldn't this be dadr.sin_addr.s_bytes[1] := 127; dadr.sin_addr.s_bytes[2]

Re: [fpc-pascal] FPC 3: disabling automatic AnsiString codepage conversionx

2016-04-04 Thread wkitty42
On 04/04/2016 06:23 AM, tobiasgie...@gmail.com wrote: OK, I just confirmed. Adding clocale to my 5-line test program doesn't affect the DefaultSystemCodePage result, but as soon as I add cwstring to the uses clause, then DefaultSystemCodePage returns 65001. On Mac, not even cwstring does that.

Re: [fpc-pascal] fpc/lazarus and kinect sample

2016-05-10 Thread wkitty42
On 05/10/2016 04:33 PM, Björn Lundin wrote: I found the nice article "Programming the Microsoft Kinect in Pascal" by Michaël Van Canneyt, in Blaise Pascal Magazine. (Nr 5 / 2013) However, I wonder if anyone have seen the sample code somewhere published on the web ? I do not get it all quite toge

[fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
what is the best/easiest way to increase the size of a set if the set is defined as the following? const CMaxCount = 255; type TMsgAreas = set of 0..CMaxCount; var MsgAreas : TMsgAreas; is a set of sets possible? how is a set of sets defined? how are the elements in

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
On 06/15/2016 10:36 AM, Santiago A. wrote: El 15/06/2016 a las 15:55, wkitt...@windstream.net escribió: what is the best/easiest way to increase the size of a set if the set is defined as the following? const CMaxCount = 255; type TMsgAreas = set of 0..CMaxCount; var

Re: [fpc-pascal] how to expand a set?

2016-06-15 Thread wkitty42
On 06/15/2016 10:36 AM, Marco van de Voort wrote: In our previous episode, wkitt...@windstream.net said: what is the best/easiest way to increase the size of a set if the set is defined as the following? Uses classes.tbits nice! we used to do bit flags back in the TP/BP days but i forget how

[fpc-pascal] building current trunk

2016-06-21 Thread wkitty42
my newly minted fpc 3.0.0 but i'm running into the following... [ 53%] Compiled package utils-fprcp Start compiling package utils-h2pas for target x86_64-linux. Executing command "/home/wkitty42/development/fpc/trunk/bin/plex h2pas/scan.l h2pas/scan.pas" The installer encountered

Re: [fpc-pascal] Severe bug (?) dividing comp variables in 3.0.0

2016-06-29 Thread wkitty42
On 06/29/2016 10:56 AM, greim wrote: Hi, there seems to be a very strange effect with dividing comp variables in 3.0.0: Dividing a comp variable x by any number which is not 1 or x gives result 0. Tested on a i386 machine. It works fine with for example with fpc 2.6.4. I know I can use int64

Re: [fpc-pascal] Porting code from Windows D2007, missing Windows functions

2016-07-14 Thread wkitty42
On 07/14/2016 08:31 AM, Bo Berglund wrote: [...] But this line: OurZipper.Entries.AddFileEntry(ParamStr(I), ParamStr(I)); seems to add the files to zip into some kind of internal list. Why does it take the same argument twice? i found the following in the interface section of zipper.pp TZip

Re: [fpc-pascal] Weird string behavior

2016-07-23 Thread wkitty42
On 07/23/2016 06:13 AM, Jonas Maebe wrote: [...] var s1,s2,s3: AnsiString; r1,r2,r3: RawByteString; begin s1:='A'; // 1252 s2:='Aä'; // 1252 writeln('s1="',s1,'" cp=',StringCodePage(s1)); writeln('s2="',s1,'" cp=',StringCodePage(s2)); writeln('s2="',s2,'" cp=',StringCodePage(s2))

[fpc-pascal] old school crc32

2016-07-23 Thread wkitty42
this is driving me battier than i already am :( i have a binary file that contains a record of data... the first field of the data is a crc32 value of a string of characters... the string of characters is lower cased before being fed to the crc32 function... i need to calculate the same crc32

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 05:03 AM, Mark Morgan Lloyd wrote: Have you tried running your test case through a different implementation? I use http://www.wolfgang-ehrhardt.de/crchash_en.html i'm trying to use only what is available in FPC... i will take a look at others, though... [time passes] ok, i loo

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 05:12 AM, Giuliano Colla wrote: What I'd do in your place would be to forget about strings, and use just an array of bytes. that's why i'm using a pchar, starting at var[0] and length(var)-1 ;) This way you're sure that you don't have in the way the string length value and some

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 06:41 AM, Tony Whyman wrote: On 24/07/16 00:18, wkitt...@windstream.net wrote: i've already checked the polynomial ($edb88320) is the same in both, the original implementation (converted to TP4 in 1988) and this implementation... Are you sure that you are dealing with a CRC algor

Re: [fpc-pascal] old school crc32

2016-07-24 Thread wkitty42
On 07/24/2016 10:15 AM, geneb wrote: I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. hey gene! fancy seeing you here instead of the flightgear areas ;) ;) ;) i do have all of SWAG here... back in the day, we grabbed each new release as it was ava

Re: [fpc-pascal] old school crc32

2016-07-25 Thread wkitty42
On 07/25/2016 11:22 AM, geneb wrote: On Sun, 24 Jul 2016, wkitt...@windstream.net wrote: On 07/24/2016 10:15 AM, geneb wrote: I don't know if you've looked at SWAG yet, but there's a couple of 32 bit CRC routines there. hey gene! fancy seeing you here instead of the flightgear areas ;) ;) ;)

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-23 Thread wkitty42
On 08/23/2016 11:40 AM, Dennis wrote: Thanks a lot. I wonder if there is any catch. you mean like having to create an account, having to provide a phone number or having to run it in a winwhatever environment? ;) Anyway, I gave up Delphi after Delphi 5 and stick to FPC since then. However,

Re: [fpc-pascal] FPC trunk internal error 200310221

2016-08-24 Thread wkitty42
On 08/24/2016 07:27 AM, C Western wrote: I have recently started seeing FPC internal error 200310221 when compiling a changed program with lazarus using the trunk fpc version. If I do a build, the problem goes away, only to recur after a random number of changes/recompiles. The program I am worki

Re: [fpc-pascal] Free Delphi 10.1 Berlin Starter Edition

2016-08-24 Thread wkitty42
On 08/24/2016 04:04 AM, brian wrote: On Tue, 23 Aug 2016 23:40:06 +0800, you wrote: It should maybe be noted that this download apparently requires that you have Windows 10? that sucks even worse than it not supporting other OSes... i'm glad i didn't waste my time downloading it and trying to

Re: [fpc-pascal] Smart link in FreeBSD multi-arch ?

2016-10-17 Thread wkitty42
On 10/17/2016 10:47 PM, fredvs wrote: @fpc-team: Why not register the concept of "smart-linking", nobody knows that word in other language. IMO, it would be good to add in wikipedia a article about "smartlink" and not forget to say that the concept of "smart-linking" comes from fpc. it does not

Re: [fpc-pascal] Blind Users

2016-11-07 Thread wkitty42
On 11/07/2016 09:51 AM, Graeme Geldenhuys wrote: If you have Git installed (highly recommended), you can get fpGUI source code from GitHub using the following command: git close https://github.com/graemeg/fpGUI.git typo! git clone https://github.com/graemeg/fpGUI.git -- NOTE: No off-lis

Re: [fpc-pascal] TFileStream.WriteBuffer() and RAM used ?

2016-12-10 Thread wkitty42
On 12/10/2016 08:54 AM, fredvs wrote: One minute of recording stereo 16 bit is +- 10 megas. at what sampling rate? that makes a big difference, too... if you record at 44hz and you drop to 22hz, the data size will be half... -- NOTE: No off-list assistance is given without prior approval.

Re: [fpc-pascal] ppcjvm issues

2017-01-17 Thread wkitty42
On 01/17/2017 01:07 PM, Lars wrote: i.e. if you have a fake free procedure that can be called, then why program in garbage collection in the first place.. can you not IFDEF it so that it does actual work in a non-garbage collecting environment? seems to be the obvious answer there... -- NOT

Re: [fpc-pascal] WebAssembly Target

2017-03-16 Thread wkitty42
On 03/16/2017 06:56 AM, Graeme Geldenhuys wrote: On 2017-03-11 23:23, Daniel Gaspary wrote: I was reading about the new Firefox making WebAssembly publicly available ("On Tuesday Firefox 52 became the first browser to support WebAssembly My system (FreeBSD) is compiling Firefox 52 in the back

Re: [fpc-pascal] Array clearing

2017-04-01 Thread wkitty42
On 04/01/2017 07:31 AM, Jürgen Hestermann wrote: I am wondering what the purpose of filling all array elements with zero's could be. If I want to discard all elements I would simply delete the whole array (setlength(MyArray,0) ). consider this: when using a string var and writing to a binary fi

Re: [fpc-pascal] Array clearing

2017-04-01 Thread wkitty42
On 04/01/2017 02:33 PM, Jürgen Hestermann wrote: Am 2017-04-01 um 19:42 schrieb wkitt...@windstream.net: consider this: when using a string var and writing to a binary file... you reuse the string var for each value written... if you don't clear the string var between fills then the binary will

Re: [fpc-pascal] machine readable grammar of object pascal?

2017-05-08 Thread wkitty42
On 05/08/2017 04:49 AM, Mattias Gaertner wrote: On Mon, 8 May 2017 09:22:48 +0100 Graeme Geldenhuys wrote: On 2017-05-08 04:26, nore...@z505.com wrote: which is like a variable, but called a const ;-) I'm slowly but surely loosing all hope for Object Pascal. The language is becoming more an

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread wkitty42
On 05/07/2017 02:33 PM, Mark Morgan Lloyd wrote: Has anybody used FPC to talk to a vehicle via the OBD connector? Can anybody give me a quick summary of the position of FPC on Android etc.? (Graeme, that includes FPCgui if it's relevant). We've been caught short by a vehicle problem that appear

Re: [fpc-pascal] Vehicle management

2017-05-08 Thread wkitty42
On 05/08/2017 12:09 PM, Mark Morgan Lloyd wrote: On 08/05/17 16:00, wkitt...@windstream.net wrote: as it is GPL, source code availability is required... that author has no choice but to supply it... Yes, but it looks as though he's been asked in the past and has claimed that "it needed tidyin

Re: [fpc-pascal] FPC 64bit for windows

2017-05-15 Thread wkitty42
On 05/15/2017 07:41 AM, Graeme Geldenhuys wrote: But again, I don't know why the FPC team doesn't make an official full 64-bit Windows release?? IIRC, they say it is because 32bit winwhatever stuff will run on 64bit winwhatever stuff and because of that there's no real reason to build 64bit o

Re: [fpc-pascal] FPC Graphics options?

2017-05-15 Thread wkitty42
On 05/15/2017 11:28 AM, James Richters wrote: I am trying to run your sample program. I am able to compile it, but when I try to run it I get: Agg2dconsole.exe - System Error The Program can't start because freetype.dll is missing from your computer. Try reinstalling the program to fix the pro

Re: [fpc-pascal] [FPC-Pascal] FPC Graphics options?

2017-05-23 Thread wkitty42
On 05/22/2017 05:38 PM, James Richters wrote: I cannot reproduce it on my machine after the r714 fix. Can you send me a small example program, that demonstrates the problem, as well as detailed steps to reproduce? > Here is a simple sample program that has the issue for me on both my windows 10

Re: [fpc-pascal] FPC Graphics options?

2017-05-23 Thread wkitty42
On 05/22/2017 07:13 PM, James Richters wrote: The problem is not the ALT-tab from the graphics window, it's ALT being pressed when the window focus changes. CTRL is also affected, but not shift. this is really sounding like a problem i remember from early GUIs several decades ago... when swit

Re: [fpc-pascal] X64 only - Can't determine which overloaded function to call

2017-06-15 Thread wkitty42
On 06/15/2017 08:20 AM, James Richters wrote: Strangely: LY:=Round(30.1-(BYA+SYA)); Also compiles fine with both Win32 and Win64 have you tried 30.0 as well? it looks like something needs a real number for this on the 64bit side... -- NOTE: No off-list assistance is given without prior ap

Re: [fpc-pascal] ptccrt missing keys

2017-06-21 Thread wkitty42
On 06/21/2017 12:31 PM, James Richters wrote: There is one thing I am wondering about, I'm not sure if it's something that could be (or maybe already is) addressed with pctcrt. That is the typmatic keyboard rate. I wish it to be much faster than it is. I seem to remember that on DOS systems t

Re: [fpc-pascal] FPDoc - how to document overloaded functions?

2017-07-13 Thread wkitty42
On 07/13/2017 06:30 AM, Michael Van Canneyt wrote: I'm not sure I understand what you're trying to achieve ? @graeme: maybe you could mock up what you are wanting/expecting from this particular situation? that way we (TINW) could compare the two and see the difference?? -- NOTE: No off-l

Re: [fpc-pascal] Defining sonames?

2017-08-15 Thread wkitty42
On 08/14/2017 09:19 AM, Fred van Stappen wrote: A concrete example. A Linux/FreeBSD fpc release was compiled using the pascal headers for libX11.so.6 and using symlink libX11.so >> libX11.so.6.0.8. This release was installed on a system (with libX11-dev too to make it work). ok, that's fine

Re: [fpc-pascal] Multi-OS fp.ini and fp.cfg ?

2017-08-16 Thread wkitty42
On 08/16/2017 04:27 PM, Ched wrote: Dear FPCers, Would it be not too hard to make fp.ini and fp.cfg containing sections dedicated to one OS (bot read by others, but kept untouched) ? I'm working on my source codes both under Linux and under Windows ; when switching from one to the other, the

Re: [fpc-pascal] sending new parameters to existing instance

2017-08-27 Thread wkitty42
On 08/27/2017 12:18 PM, James Richters wrote: I have a windows console application I wrote with Freepascal.I can send it a command line parameter for a file to use have it working so if I just double click on the file I wish to open with my program, it launches and opens it. I am wondering

Re: [fpc-pascal] Using Serial in a TCP/RS232 gateway, how to set buffer sizes?

2017-09-08 Thread wkitty42
On 09/08/2017 04:34 AM, Bo Berglund wrote: Next I unchecked the checkbox before doing the long transfer, and lo-and-behold(!) now there are no losses anymore! So the action of writing text to the listbox in the LogHex function was actually causing the application to lose incoming serial data!

Re: [fpc-pascal] Syntax to select constant or variable with function call

2017-09-24 Thread wkitty42
On 09/24/2017 01:55 AM, Michael Van Canneyt wrote: Then define function Find_Color(anArray :PVGA256Array; r ,g ,b : Word) : Byte;  Var   Dist,closest:Double;   i,bestchoice:Byte; begin    Closest:=20;    For i:= 0 to 255 do   Begin Dist :=  ((R-AnArray^[i].R))*((R-AnArray

Re: [fpc-pascal] CRT unit and Windows' terminal

2017-10-14 Thread wkitty42
for what ever reason, your code arrived here looking to be in UTF8 or ISO-8859-1 format... lazarus loaded is as ASCII but the box characters in the code were obviously not the ASCII ones you are speaking of (eg: ALT-201)... i tried to convert it to UTF8 in lazarus but the look was still the s

Re: [fpc-pascal] FPC vs. Lazarus regarding some units...

2017-10-29 Thread wkitty42
On 10/29/2017 07:07 AM, Juha Manninen wrote: On Sun, Oct 29, 2017 at 2:53 AM, Cleverson Casarin Uliana wrote: Why some units like the mentioned MMSystem are delivered with Lazarus but not with FPC? MMSystem is not delivered with Lazarus. I don't know what you are writing about. does the de

Re: [fpc-pascal] FPC 3.0.4 released!

2017-12-04 Thread wkitty42
On 12/03/2017 01:48 PM, pasc...@piments.com wrote: How do I get off this list ?! the same way you got on it... follow the mailman link attached to every post on th elist, sign in and turn the list off for you... ___ fpc-pascal maillist  -  fpc-pas

Re: [fpc-pascal] Again heaptrc dump interpretation

2017-12-10 Thread wkitty42
On 12/10/2017 03:45 PM, denisgolovan wrote: True heap size : 7276691456 Should be : 7276691456 IIUC, if these two do not match, you might have a memory leak... keep up also with your memory blocks allocated and freed... -- NOTE: No off-list assistance is given without prior approval.

Re: [fpc-pascal] Freepascal CLI library

2018-01-13 Thread wkitty42
On 01/13/2018 04:53 PM, Darius Blaszyk wrote: Is there a library available that can handle this kind of input from the command line? Though not difficult to write something from scratch (I already started on it), I feel like this has to be available already. Anyone has a tip for me? not specifi

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/13/2018 07:28 PM, Darius Blaszyk wrote: not specific to CLI apps but are you, perhaps, thinking of CheckOptions and HasOption? No I do not look for commandline handling. Rather a CLI interaction library. Which allows to interact with the application during runtime. Similar to how sphin

Re: [fpc-pascal] Freepascal CLI library

2018-01-14 Thread wkitty42
On 01/14/2018 01:15 PM, Bart wrote: On Sun, Jan 14, 2018 at 6:00 PM, wrote: really... i think most folks have a general YesNo routine that returns some value which they then use to determine which way the code flows... I used to have a general Prompt(Question: String; Allowed: TCharSet; Def

Re: [fpc-pascal] Scoped enums and inferred types

2018-02-21 Thread wkitty42
On 02/21/2018 05:16 AM, Sven Barth via fpc-pascal wrote: I simply rely on my IDE (Lazarus, Visual Studio) to complete long identifier names for me so that I don't have to. *shrugs* exactly my thoughts, too... -- NOTE: No off-list assistance is given without prior approval. *Please k

Re: [fpc-pascal] uses in 'filename'

2018-02-22 Thread wkitty42
On 02/22/2018 09:49 AM, Michael Van Canneyt wrote: On Thu, 22 Feb 2018, Mattias Gaertner wrote: On Thu, 22 Feb 2018 12:48:21 +0100 (CET) Michael Van Canneyt wrote: First of all, normally it won't work either way, because you must use "unit foo;" and "unit bar;" in the files. >> No, I can use

Re: [fpc-pascal] Lazarus Mailing list down?

2018-04-03 Thread wkitty42
On 04/03/2018 07:00 AM, Torsten Bonde Christiansen wrote: Hi All. I haven't gotten any mails on the Lazarus mailing list since 31/03-2018 - and the two mails I sent today doesn't seem to have gone through. this one seems to have made the trip just fine... Kind regards, Torsten. __

Re: [fpc-pascal] 0030208: "not" doesn't work properly on bitpacked booleans

2018-04-05 Thread wkitty42
On 04/05/2018 02:11 PM, Luca Olivetti wrote: El 03/04/18 a les 13:14, Luca Olivetti ha escrit: I was going to report a bug but I see it's already fixed https://bugs.freepascal.org/view.php?id=30208 however it's still there in 3.0.4, released a year and a half later than the fix. Will the fix be

Re: [fpc-pascal] Using constants instead of comments

2018-04-18 Thread wkitty42
On 04/17/2018 11:06 PM, James Richters wrote: 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 what's wrong with traditional IFDEF?? use something like this... {$IFDEF DEBUG} writeln ('bl

Re: [fpc-pascal] Next language feature for pas2js...

2018-05-01 Thread wkitty42
On 05/01/2018 07:09 AM, Ryan Joseph wrote: In PHP I always just load the file into string and loop over it line by line using regex to cut out the parts I need. I like it because it’s so easy to write and gets the job done. What ever I would make it Pascal would be 10x larger probably. FWIW: yo

Re: [fpc-pascal] C# stackalloc

2018-06-02 Thread wkitty42
On 06/02/2018 02:01 AM, Ryan Joseph wrote: So it looks like my idea wasn’t that crazy after all. ;) just because more than one person comes up with the same or similar idea does not mean that it is not crazy or worse ;) ;) ;) -- NOTE: No off-list assistance is given without prior approval

Re: [fpc-pascal] round(2.5)=2

2018-06-14 Thread wkitty42
On 06/13/2018 04:17 AM, Michael Schnell wrote: On 12.06.2018 23:12, Klaus Hartnegg wrote: No, it does not depend on the hardware, but on the setting of $N. Turbo Pascal with $N+ rounds like FreePascal. But the default is $N-. In this mode Turbo Pascal always rounds up. What exactly does $N

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 02:38 PM, Jim Lee wrote: The most common scenario for me is this: "I wonder if fpc (or Lazarus) already has ". Go to the wiki and browse haphazardly, looking for [...] that may be part of your problem... you're looking in a wiki instead of a more proper place... all the FPC docs

Re: [fpc-pascal] TFPGObjectList error

2018-07-01 Thread wkitty42
On 07/01/2018 03:13 PM, Jim Lee wrote: That is exactly the documentation I'm talking about.  I've seen all of them.  I got to them via the wiki, so I suppose I should have said "The wiki, and documentation linked to from there". oh!! ok, well... i think the docs.var one i pointed out above is

Re: [fpc-pascal] fpdoc error with XML parsing

2018-07-02 Thread wkitty42
On 07/02/2018 04:11 PM, Graeme Geldenhuys wrote: What is illegal about this fpdoc XML project file? fpdoc from FPC 3.1.1 keeps giving an exception error reading the XML document. The issue it has is with the XML Comment I have on lines 2-5 (ignore the line wrapping caused by my email client). If

Re: [fpc-pascal] fpdoc error with XML parsing

2018-07-03 Thread wkitty42
On 07/02/2018 07:07 PM, Graeme Geldenhuys wrote: From that error message it doesn't seem to like the "--macro" part inside the xml comment. It seems fpdoc wants to process that "--" as the end of the comment. this was where i was headed... if the multi-line comments work properly, perhaps it i

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread wkitty42
On 07/03/2018 03:26 AM, C Western wrote: On 02/07/18 23:13, Wolf wrote: Who is shooting whom in the foot? Wolf If you compile with range checks on, you get a runtime error. why are so many folks NOT developing with all the checks (range, heap, stack, etc) turned ON and then turning them

Re: [fpc-pascal] FPC_PCHAR_LENGTH dog slow

2018-07-03 Thread wkitty42
On 07/03/2018 12:01 PM, Tomas Hajny wrote: On Tue, July 3, 2018 17:15, Ryan Joseph wrote: Why is that so crazy slow? Does it need to iterate the entire length of the string to know it’s length? > Yes, that's indeed the difference between Pascal strings (Short/Ansi/Wide/UnicodeString) and C-like

Re: [fpc-pascal] Loss of precision when using math.Max()

2018-07-03 Thread wkitty42
On 07/03/2018 12:41 PM, Ralf Quint wrote: And no "new language" can absolve the programmer from properly doing their work. Everything else is just a quick hack, not a properly designed program... Welcome Back, Ralf! we've missed you O:) O:) O:) -- NOTE: No off-list assistance is given wit

  1   2   >