Re: [fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-09-01 Thread Bo Berglund via fpc-pascal
On Mon, 31 Aug 2020 12:01:33 +0200, Bo Berglund via fpc-pascal wrote: >Thanks, I was worried about reading more data than specified. >Now I can let the loop in Execute read say 10 bytes or so with timeout >ane process these, then loop back after firing off the event. Just a

Re: [fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-08-31 Thread Bo Berglund via fpc-pascal
On Mon, 31 Aug 2020 11:15:10 +0200 (CEST), Michael Van Canneyt via fpc-pascal wrote: > > >On Mon, 31 Aug 2020, Bo Berglund via fpc-pascal wrote: > >> On Fri, 21 Aug 2020 21:03:31 +0200, Bo Berglund via fpc-pascal >> wrote: >> >> But when doing this I have

Re: [fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-08-31 Thread Bo Berglund via fpc-pascal
On Fri, 21 Aug 2020 21:03:31 +0200, Bo Berglund via fpc-pascal wrote: >Instead I need to add a thread for reading data so I can have an event >driven reception of data. It would read available data and fire off a >NotifyEvent to handle the incoming data in the main application. I

Re: [fpc-pascal] Lazarus start problem after power outage on RPi4

2020-08-24 Thread Bo Berglund via fpc-pascal
tart fix the paths in Tools / Options / Env. / Files to point to >the right fpc. Same paths, different RPi. It worked fine so I can continue working where I left off. Thanks. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pas

[fpc-pascal] Lazarus start problem after power outage on RPi4

2020-08-24 Thread Bo Berglund via fpc-pascal
before I stopped at 00:31 after finally fixing a persistent bug. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-08-21 Thread Bo Berglund via fpc-pascal
cated than it should be. Thank you very much for this! I do not need break or non-standard baudrates so I will cut that away when testing it. Instead I need to add a thread for reading data so I can have an event driven reception of data. It would read available data and fire off a NotifyEvent t

[fpc-pascal] Using built-in serial instead of synaser and the like for Linux console app?

2020-08-21 Thread Bo Berglund via fpc-pascal
y no posts describing solutions using serial... As it is built-in to fpc one would assume it is the preferred way, but for some reason it looks like it is not... (I am using fpc 3.0.4 + Lazarus 2.0.8 on a RaspberryPi (3 and 4)) -- Bo Berglund Developer

Re: [fpc-pascal] Raspberry PI download

2020-08-14 Thread Bo Berglund via fpc-pascal
e od sudo. Everything this script installs is directed towards the pi home dir and below. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange swap function, what does it do?

2020-08-13 Thread Bo Berglund via fpc-pascal
like this instead where CmdProgNum is a smallint value and the built-in swap function is used: FR.CmdProgNum := Swap(FR.CmdProgNum); So the code uses a mix of these and I do not understand what the strange looking function does... -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Raspberry PI download

2020-08-13 Thread Bo Berglund via fpc-pascal
e? You will need the seed compiler if you have an empty RPi to start with... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 00:08:01 +0200, Bo Berglund via fpc-pascal wrote: >But I would like to enumerate the subdirectories themselves (without >the content). Turns out that there is a procedure FindAllDirectories() in fileutil... It does exactly what I need. :) I wonder why Google failed to

Re: [fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-25 Thread Bo Berglund via fpc-pascal
On Sat, 25 Jul 2020 10:51:37 +0200, Bart via fpc-pascal wrote: >On Sat, Jul 25, 2020 at 12:24 AM Bo Berglund via fpc-pascal > wrote: > >> But I would like to enumerate the subdirectories themselves (without >> the content). > >Take a look at how FindAllFiles

[fpc-pascal] Is there a FindAllDirs command like FindAllFiles?

2020-07-24 Thread Bo Berglund via fpc-pascal
to faDirectory, but there is no discussion in the article on how it can be set to something else and what will be the result in such a case. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] Getting size of file without opening it?

2020-07-24 Thread Bo Berglund via fpc-pascal
On Fri, 24 Jul 2020 00:29:10 +0200 (CEST), Michael Van Canneyt wrote: > > >On Fri, 24 Jul 2020, Bo Berglund via fpc-pascal wrote: > >> I am using FindAllFiles in order to list the files in a directory and >> it works fine. >> >> But I also need the size and

[fpc-pascal] Getting size of file without opening it?

2020-07-23 Thread Bo Berglund via fpc-pascal
file! This is not what I want, I may not even be allowed to open the file. So is there a *cross-platform* way to retrieve the size of the files too? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https

Re: [fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

2020-07-19 Thread Bo Berglund via fpc-pascal
On Sun, 19 Jul 2020 17:51:59 +0200 (CEST), Michael Van Canneyt wrote: > > >On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote: > >> On Sun, 19 Jul 2020 08:46:14 +0200 (CEST), Michael Van Canneyt >> wrote: >> >>> Various RunCommand procedures in proce

Re: [fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

2020-07-19 Thread Bo Berglund via fpc-pascal
the call and these are somewhat non-obvious: poWaitOnExit (if I don't use this will the call return at once?) poDetached(what does this do?) poRunIdle (what does this do?) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - f

Re: [fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

2020-07-19 Thread Bo Berglund via fpc-pascal
as the processing program and when looking back there I see now I used RunCommandInDir. And it is also Windows/Linux. This was a project built entirely with Lazarus/Fpc of course. -- Bo Berglund Developer in Sweden ___ fpc-pascal maill

Re: [fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

2020-07-19 Thread Bo Berglund via fpc-pascal
On Sun, 19 Jul 2020 08:46:14 +0200 (CEST), Michael Van Canneyt wrote: > > >On Sun, 19 Jul 2020, Bo Berglund via fpc-pascal wrote: > >> I am porting an old application from Delphi to Lazarus and Windows to >> Linux. >> This application has a unit ExecWait, which was

[fpc-pascal] CrossPlatform problem, INFINITE not defined on Linux

2020-07-19 Thread Bo Berglund via fpc-pascal
hen porting to Linux.... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
etween Windows and Linux behaviour because on Windows the original code works fine without any screen mess. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
old keyboard read behaviour. Removing Keyboard and Crt from uses does not change anything, but the display now is sensible at least. So Keyboard is not needed it seems. At least it does not add anything in this program. So I will have to live with q to break the loop... -- Bo Berglund Develo

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
for the loop to break. Then I used this but it needs the crt unit: repeat ch := ReadKey; until ch='q'; {q} and now the user just needs to hit q without any follow-up ENTER. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist -

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
ve off Power save is not involved here... >I guess it was the first command. >You can try it. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
Windows this does not happen (same code just compiled on Windows or Linux). -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Writeln() behaves differently on Windows and Linux, why?

2020-07-09 Thread Bo Berglund via fpc-pascal
? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Copying a Pchar to an array of bytes

2020-05-24 Thread Bo Berglund via fpc-pascal
On Tue, 19 May 2020 19:22:55 +0200, Luca Olivetti wrote: >Move(Hello^,buffer,len) or: Move(Hello[0],buffer,len); -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-

Re: [fpc-pascal] Delphi TService

2020-05-24 Thread Bo Berglund via fpc-pascal
y project including the half/baked attempt at defining TService as a child of TDaemon And it ends with Lazarus unloading from memory (aka crashing)... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to implement a simple tcp/ip connection?

2020-05-24 Thread Bo Berglund via fpc-pascal
On Tue, 19 May 2020 18:25:54 +0200, Giuliano Colla wrote: >Now I'm planning to look in more detail the old Delphi implementation, >in order to see how they were tacking advantage of Libc. If you're >interested I'll let you know my results. > Yes, please! -- Bo Berglund Develop

Re: [fpc-pascal] Optimizing code generation fpc (lazarus)?

2020-05-17 Thread Bo Berglund via fpc-pascal
On Sun, 17 May 2020 11:15:17 +0200, Bo Berglund via fpc-pascal wrote: Maybe a stupid question, but... I am struggling with porting a Windows service application written with D7/D2007 back in 2004-2006 or so. I need to get it moved to Linux because of Windows 10 issues. Now I am handling a lot

[fpc-pascal] Optimizing code generation fpc (lazarus)?

2020-05-17 Thread Bo Berglund via fpc-pascal
f the code and finding FPC equivalents for others. But it would be so much easier if the compiler could disregard functions that are not called in the project and therefore not try to compile them at all. Or is this impossible due to the way the compile/linking is working? -- Bo Berglund Developer

Re: [fpc-pascal] How to implement a simple tcp/ip connection?

2020-05-17 Thread Bo Berglund via fpc-pascal
h it in Delphi 2007 to add ifdefs in a lot of places in order to prepare for the conversion into Lazarus and now I am in Lazarus trying to weed out the remaining issues. Not close yet... But it seems like my use of LNet in any case has been accepted by FPC/Lazarus as a replacement for

Re: [fpc-pascal] How to implement a simple tcp/ip connection?

2020-05-16 Thread Bo Berglund via fpc-pascal
m the Delphi native components... (Note: Delphi 7/Delphi 2007) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to implement a simple tcp/ip connection?

2020-05-14 Thread Bo Berglund via fpc-pascal
s. Can be installed into Lazarus via OnLine Package Manager. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Best practice porting a Windows service application to Linux?

2020-04-22 Thread Bo Berglund via fpc-pascal
On Wed, 22 Apr 2020 07:56:38 +0200, Sven Barth via fpc-pascal wrote: >Bo Berglund via fpc-pascal schrieb am >Mi., 22. Apr. 2020, 05:33: > >> But what about the general service framework? >> The existing code uses a class inherited from TService, does this >> exist o

[fpc-pascal] Best practice porting a Windows service application to Linux?

2020-04-21 Thread Bo Berglund via fpc-pascal
stable and less prone to strange side effects. In any case I have left Delphi for FPC/Lazarus nowadays... TIA -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-14 Thread Bo Berglund via fpc-pascal
On Mon, 13 Apr 2020 21:41:31 +0200, Joost van der Sluis wrote: >Op 12-04-2020 om 12:01 schreef Bo Berglund via fpc-pascal: >> This is something I have been wondering about for a while.. >> When I install FPC from sources I have to create a config file by >> using this comma

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Bo Berglund via fpc-pascal
me both on Windows (where I always configure the explorer to show hidden files) and on Linux where I always use an ls -la alias ll in order not to hide files. Never understood the reason for hiding stuff... Thanks for replying! -- Bo Berglund Developer in Sweden ___

Re: [fpc-pascal] Search path order for fpc.cfg

2020-04-12 Thread Bo Berglund via fpc-pascal
ke yesterday). Why does fpc look for .fpc.cfg in the user home dir when it is otherwise looking for fpc.cfg? And if this is so, should not samplecfg be smart enough to drop off the correctly named cfg file if the target dir is the user's home dir? -- Bo Berglund Developer in Sweden __

Re: [fpc-pascal] Killing the mail list

2020-03-22 Thread Bo Berglund via fpc-pascal
ust seamlessly continued working. This is a LOT BETTER than the web based forums where you have no overview (I also use the Lazarus forum, but I could not live without the mirrored mail list.) -- Bo Berglund Developer in Sweden ___ fpc-pascal maill

Re: [fpc-pascal] fpmmap arm-linux issue

2020-02-17 Thread Bo Berglund via fpc-pascal
al.org/cgi-bin/mailman/listinfo/fpc-pascal >> This reply above winds up in a thread named "Demo threads.pp can't run" from May 2004 Seems like there must be a message header problem here. -- Bo Berglund Developer in Sweden ___ fpc

Re: [fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

2020-02-16 Thread Bo Berglund via fpc-pascal
On Thu, 13 Feb 2020 09:36:46 -0700 (MST), jollytall wrote: >I have just completed the first release of such an interface for TensorFlow. >You can check it at github.com/tensorflowforpascal. Did you notice the date of the previous post in this thread? It was done 2017-12-07 -- Bo Be

Re: [fpc-pascal] Writing to a drive which may be spun down

2019-11-21 Thread Bo Berglund via fpc-pascal
accumulated 35510 access time values which average 15 ms with a max of 327 ms. All since the last reboot. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Add API to official documentation search

2019-11-17 Thread Bo Berglund via fpc-pascal
rtl/baseunix/fpopen.html Look at the example, specifically the top comment of the example: { Program to demonstrate the fdOpen, fdwrite and fdCLose functions. } Is this a typo or indication of early, later changed naming convention? Should be fp at the start of the names rather than fd, right? --

Re: [fpc-pascal] Compile fpc twice or only once during install?

2019-07-12 Thread Bo Berglund
rfluous? >> > >AFAIK the make file cycle through the compiler build process 3, starting a >new cycle with the compiler from the previous cycle. So no need to make all >a 2nd time, it is implicit in the make file recipe. Thanks! No need to change

[fpc-pascal] Compile fpc twice or only once during install?

2019-07-12 Thread Bo Berglund
uperfluous? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] MD5 Hash of StringList

2019-07-04 Thread Bo Berglund
gt; >Warning! That's platform dependent code due the new line sequences. Maybe: MyStringList.LineBreak := #10; Hash := Md5Print(MD5String(MyStringlist.Text)); Then the new line issue may be solved? -- Bo Berglund Developer in Sweden ___ fpc-

Re: [fpc-pascal] MD5 Hash of StringList

2019-07-04 Thread Bo Berglund
creator, but the content of the stringlist is available as property Text... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Changing compiler modes

2019-07-01 Thread Bo Berglund
t: For X := 1 to 10 do Begin If somethingmakesmewanttoexit then break; If somethinmakesmewanttoskipthenextthing then continue; Regularprocessing; End; -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pa

Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows

2019-04-21 Thread Bo Berglund
https://sourceforge.net/projects/freepascal/files/Bootstrap/2.6.4/ -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows

2019-04-21 Thread Bo Berglund
mkdir -p ~/dev/fpc cd ~/dev/fpc svn co https://svn.freepascal.org/svn/fpc/tags/release_3_0_0/ 3.0.0 This will get you the complete sources for FreePascal 3.0.0 The svn command on Windows is exactly the same but the creation of the directory tree is not. -- Bo Berglund Dev

Re: [fpc-pascal] how to customize so Pandroid would be usable from Lazarus for windows

2019-04-20 Thread Bo Berglund
e in the website of FPC, The subversion service for FPC/Lazarus and the bugtracker. The host machine needs maintenance and this will result in some downtime of some services. FTP, Lazarus website, wiki and mailinglists will be unaffected as they are hosted on different machines. Michael. --

Re: [fpc-pascal] Lazarus Release 2.0.2

2019-04-16 Thread Bo Berglund
rmal make of bigide is straightforward too. Thanks for having the repositories available so easily! -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpPDF and support of Latin2 charset

2019-03-28 Thread Bo Berglund
ct. > >There are 1000's of cases like this in all kinds of open source projects. > Graeme, this is interesting. The link you provided in your signature gets me to a place where versions are displayed and the last one is 1.4.1 from 2015-09-02. Is this a final version not in need of any new stuff?

Re: [fpc-pascal] blocked on fpc-devel

2019-02-23 Thread Bo Berglund
On Fri, 22 Feb 2019 16:03:10 +, Graeme Geldenhuys wrote: >On 2019-02-18 6:09 p.m., Bo Berglund wrote: >> Borland discussions. > >Does Borland (now Embarcadero) still have a news server (or web forum) >of their own? Last I remember, Embarcadero didn't have the talent t

Re: [fpc-pascal] blocked on fpc-devel

2019-02-18 Thread Bo Berglund
s of a large number of mail lists. Highly recommended as it gives you an easy to navigate archive of discussion threads. I have ALL of the posts in this list archived in Forte's newsreader dating back to Sept 2003... Same for the Lazarus and Borland discussions. I can search them without going on-line

Re: [fpc-pascal] CLI argument parsers

2019-01-16 Thread Bo Berglund
On Tue, 15 Jan 2019 20:02:05 +0100, Martok wrote: >Am 14.01.2019 um 18:05 schrieb Bo Berglund: >> By changing the subject of an existing (very old thread) and post new >> content you have screwed up the message handling of threads so this >> conversation now gets stuff

Re: [fpc-pascal] CLI argument parsers (was: Resource compilation)

2019-01-14 Thread Bo Berglund
Resource compilation" thread dating back a year and 3 months... Please start new threads from scratch instead. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] FPC-based http/s server

2018-12-12 Thread Bo Berglund
f various types. And there is a dedicated forum where the maintainers can be reached for questions and advice: https://www.atozed.com/forums/forumdisplay.php?fid=9 -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freep

Re: [fpc-pascal] TStringList.DelimitedText seems not to work...

2018-11-19 Thread Bo Berglund
Parse.Delimiter := #9; Parse.StrictDelimiter := true; Parse.DelimitedText := Data; p := Parse.Count; Now p=4 like it should be and the database insert works OK. If I do not set the StrictDelimiter, what is the delimitedtext breaking on? Whitepace, line breaks and what else? -- Bo Berg

[fpc-pascal] TStringList.DelimitedText seems not to work...

2018-11-19 Thread Bo Berglund
uld be what it should use (I think it has been mentioned here in the last year, but I cannot find it) -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/

Re: [fpc-pascal] Building FPC from sources on Linux Mint 19, make clean errors out

2018-11-05 Thread Bo Berglund
the new version 3.0.4 Adding FPC=~/bin/ppcx64 as a command line argument to make fixed it all. Maybe I should recompile 3.0.4 with itself in true Wirth spirit? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.o

[fpc-pascal] Building FPC from sources on Linux Mint 19, make clean errors out

2018-11-05 Thread Bo Berglund
to this command before (I have built FPC/Lazarus on a number of different Linux machine using the exact same procedure). What does this mean and what can I do to fix it? Does it need to be fixed? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-04 Thread Bo Berglund
ect); begin //Put your code here Application.Terminate; //The application will disappear from view... end; If you want your form to be responsive you also need this inside loops in your program: Application.ProcessMessages; Otherwise the form will feel like a dead brick while the Timer

Re: [fpc-pascal] Windows programming tutorials for FPC

2018-11-02 Thread Bo Berglund
andling: var F: file; FileName: string; begin FileName := ; AssignFile(F, Filename); Rewrite(F); Writeln(F, 'text to write'); CloseFile(F); end; etc, etc, etc -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
n compiling fpc 3.0.4 anymore! Thank you for your input! -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
On Tue, 23 Oct 2018 19:38:05 +0200, Sven Barth via fpc-pascal wrote: >Bo Berglund schrieb am Di., 23. Okt. 2018, 18:13: > >> On Tue, 23 Oct 2018 17:08:40 +0200, Sven Barth via fpc-pascal >> wrote: >> >> >Why don't you simply use the distribution independ

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
On Tue, 23 Oct 2018 18:12:41 +0200, Bo Berglund wrote: > >sudo apt-get install -y libx11-dev libgdk-pixbuf2.0-dev libcairo2-dev >gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev >libpango1.0-dev > >Is this what I need also on Ubuntu (i386)? I did do sudo apt insta

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
ro2-dev gir1.2-coglpango-1.0 libpangox-1.0-dev xorg-dev libgtk2.0-dev libpango1.0-dev Is this what I need also on Ubuntu (i386)? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/

Re: [fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
On Tue, 23 Oct 2018 17:01:39 +0200, Bo Berglund wrote: >Grateful for any links to a working seed compiler. I found a tarball on this location: ftp://freepascal.stack.nl/pub/mirrors/fpc/dist/3.0.0/i386-linux/fpc-3.0.0.i386-linux.tar It must contain somewhere inside the file I need, any id

[fpc-pascal] Where can I download the fpc 3.0.0 seed compiler for Linux on i386 x64?

2018-10-23 Thread Bo Berglund
? I have had the same problem for RaspberryPi computers in the past but then I managed to get hold of a seed compiler and now there is no problems installing fpc/lazarus on RPi boxes. Different story with Linux on a PC (with Intel CPU)... Grateful for any links to a working seed compiler. -- Bo

Re: [fpc-pascal] How to append data to a file of byte?

2018-10-14 Thread Bo Berglund
binary IO. I am pretty uncomfortable using streams. Don't really know how they work... (I am an old hand, started using Pascal on the Apple II, then T-Pascal on IBM PC etc. That was back in the 1980:es... Delphi since about 1995-96) -- Bo Berglund Developer in Sweden

[fpc-pascal] How to append data to a file of byte?

2018-10-14 Thread Bo Berglund
only to work with text files. What do I use to append binary data to an existing binary file? This throws an error at SeekEof: AssignFile(F, FileName); if AppendToFile then SeekEof(F) else Rewrite(F,1); BlockWrite(F, Buf[0], Length(Buf)); CloseFile(F); -- Bo Berglund

Re: [fpc-pascal] Bitmap-as-const-and-write-to-file-thingy

2018-09-20 Thread Bo Berglund
ove. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-24 Thread Bo Berglund
ogs T/H every 20 minutes. I will probably just build myself a copy of this and put it at the summer home. It can be set to transfer its data to the RPi2 at that location via the WiFi network. Of course I have to resort to C and C++ programming then... -- Bo Berglund Developer in Swe

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-24 Thread Bo Berglund
ogs T/H every 20 minutes. I will probably just build myself a copy of this and put it at the summer home. It can be set to transfer its data to the RPi2 at that location via the WiFi network. Of course I have to resort to C and C++ programming then... -- Bo Berglund Developer in Swe

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-23 Thread Bo Berglund
On Thu, 23 Aug 2018 09:00:07 +0200, Bo Berglund wrote: > >I will need a higher resolution GetTickCount for this... Is there in fact a way (on Linux - Raspbian) to get a tickcount with higher resolution than 1 ms? I need us so I can time between two events (pulse rise and pulse fall)

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-23 Thread Bo Berglund
uess it "sleeps" for a certain number of microseconds... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-22 Thread Bo Berglund
On Wed, 22 Aug 2018 23:19:28 +0200, Bo Berglund wrote: >I wonder if there are any demo projects around for reading the AM2302 >DHT sensor on a RaspberryPi through FreePascal? >Any links to sample code would be appreciated. >I have used it on an ESP-07 WiFi module (C language

[fpc-pascal] Reading AM2302 temp/humid sensor on RaspberryPi?

2018-08-22 Thread Bo Berglund
/Lazarus. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] why can't we define class operator for old fashion object type, but ok for 'advanced record' type?

2018-08-17 Thread Bo Berglund
On Sat, 18 Aug 2018 03:19:55 +0200, Sven Barth via fpc-pascal wrote: >In Delphi objects are deprecated Huh? ObjectPascal deprecating objects? Sounds far-fetched. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pas

Re: [fpc-pascal] Pascal units to connect to an Exchange server

2018-07-20 Thread Bo Berglund
On Fri, 20 Jul 2018 07:43:43 -0300, luciano de souza wrote: > >2018-07-19 16:51 GMT-03:00, Bo Berglund : >> On Thu, 19 Jul 2018 15:29:12 -0300, luciano de souza >> wrote: >> >>>Hello all, >> >From a Linux machine connected to a Windows m

Re: [fpc-pascal] Syntax changes suggestions

2018-07-19 Thread Bo Berglund
d in polite communication. >Everybody, please, think twice whether your post adds value (repetition of >arguments and previously declined feature requests does not, attacks even >less). > >Thank you > >Tomas >(one of FPC mailing list moderators) +1 And please move this t

Re: [fpc-pascal] Pascal units to connect to an Exchange server

2018-07-19 Thread Bo Berglund
accomplish by mixing in Exchange and Outlook????? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to find address of record member

2018-07-08 Thread Bo Berglund
On Sun, 08 Jul 2018 18:28:34 +0200, Bo Berglund wrote: >I tried this: >var > offs: word; >begin > ... > offs := @FAppData.Info - @FAppData; //Info is 4th member of record > address := AppBase + (AppNumber -1) * (SizeOf(TAppData) div 2) + >offs; > >But it wa

Re: [fpc-pascal] How to find address of record member

2018-07-08 Thread Bo Berglund
On Sun, 8 Jul 2018 17:16:01 +0200, Martin wrote: >On 08/07/2018 17:07, Bo Berglund wrote: >> Say I have a record type defined like this: >> >>TAppData = packed record //Total 8 bytes per app >> ActiveToken: word; //Matches constant for app if active >

[fpc-pascal] How to find address of record member

2018-07-08 Thread Bo Berglund
if fixed offset constants are used, like 3 in the example. Is there some way to get the address within the record of a member value? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Embedding DLL into EXE for Windows 32 bit?

2018-07-07 Thread Bo Berglund
e... Maybe it is not possible to do such a conversion I am after? -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Embedding DLL into EXE for Windows 32 bit?

2018-07-07 Thread Bo Berglund
then be used to link into the program? I am looking at FPC 3.0.4 with Lazarus 1.8.4 on Windows 32 bit and compatibility with Delphi 7-XE5 32 bit. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

[fpc-pascal] How to list USB devices on Windows?

2018-06-26 Thread Bo Berglund
: $ lsusb | grep 07f2: Bus 001 Device 004: ID 07f2:0003 Microcomputer Applications, Inc. Is there some way I can do this on Windows so I can create a list of the device type I work with? Or is there an FPC command already? -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Migrate Delphi XE5 to FPC/Lazarus, any advice?

2018-06-08 Thread Bo Berglund
On Fri, 8 Jun 2018 09:59:35 +0200, Mattias Gaertner wrote: >Better ask such question on the Lazarus list or forum Sorry, I was using my newsreader in GMane and did not notice I was in the wrong NG... -- Bo Berglund Developer in Sweden ___ fpc-pas

Re: [fpc-pascal] Migrate Delphi XE5 to FPC/Lazarus, any advice?

2018-06-08 Thread Bo Berglund
On Fri, 08 Jun 2018 07:25:21 +0200, Bo Berglund wrote: >I think I will change foot here and look at the 1D first since this is >a pure Delphi native application. Uses Delphi's own graphics. Forgot to ask if Lazarus is able to read the dproj project file used by Delphi XE5? -- Bo Be

Re: [fpc-pascal] Migrate Delphi XE5 to FPC/Lazarus, any advice?

2018-06-07 Thread Bo Berglund
ia VTK (which no longer supports Borland compilers). I think 3D is out for FPC... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Migrate Delphi XE5 to FPC/Lazarus, any advice?

2018-06-06 Thread Bo Berglund
appreciated! -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] FPC code to migrate Outlook PST file to MBOX format?

2018-05-23 Thread Bo Berglund
ity of fpc, which I have installed on my laptop. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-25 Thread Bo Berglund
g and searching with my > favourite NNTP client of choice. Same here! (btw I dropped off this topic because I had a fall from the roof of my house and am currently hospitalized. Got my laptop yesterday though...) -- Bo Berglund Developer in Sweden

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-07 Thread Bo Berglund
completed the Lazarus config program with the new function and verified that it works. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
ct parameters towards the HTTP.Post function. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
I have found that show how to use it for simulating POST from a form like the one I showed... -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Prorammatically sending file using HTTP POST?

2018-04-04 Thread Bo Berglund
meone have a suggestion on how to do this? By the way, I am using the Indy10 components via the indylaz package. Lazarus is 1.8.0 and FPC 3.0.4 on Windows7. -- Bo Berglund Developer in Sweden ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org h

<    1   2   3   4   5   6   >