Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
. CentOS 7, dropped using init.d for systemctl - on my CentOS 6 machine, it works perfectly... 8... does socket.pp get affected at RUN-TIME, by environment variables? (did not notice my first pass through)... On Wed, Jan 29, 2020 at 8:43 AM wrote: > On 1/29/20 8:54 AM, Ozz Nixon via fpc-devel wr

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Hi! > > 29.01.2020 18:07, Ozz Nixon via fpc-devel: > > 1. My code does not directly interact with any environment variables. > > Ok. > > > ExecStart=/usr/local/bin/coderunner2 > > I'd suggest, as a qu

[fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
I am not sure how this is occurring, however, my socket daemon on Linux - is launched by hand ./program is able to send to the socket: Socket.Write(#218+#196+#191); And the terminal (any) will display the single highbit characters. If systemctl start myprogram... that same call sends '???'.

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
rg> wrote: > > Op 29/01/2020 om 16:07 schreef Ozz Nixon via fpc-devel: > > 1. My code does not directly interact with any environment variables. > > Unit cwstring and clocale might do on startup. This might influence e.g. > widestring/unicodestring<-> ansistring conversi

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
hanks, Ozz On Wed, Jan 29, 2020 at 7:39 AM Marco van de Voort < c...@pascalprogramming.org> wrote: > > Op 29/01/2020 om 14:23 schreef Ozz Nixon via fpc-devel: > > I am not sure how this is occurring, however, my socket daemon on Linux - > is launched by hand ./progra

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
t.txt export LC_ALL=C /usr/local/bin/coderunner2 Nothing writes to the file when systemctl starts it. However, if I ./coderunner2.sh I get: Starting LANG=en_US LOCALE= So, I guess try FPC 3.0.x??? On Wed, Jan 29, 2020 at 9:42 AM Nikolai Zhubr via fpc-devel < fpc-devel@lists.freepascal.org> wrote

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-01-29 Thread Ozz Nixon via fpc-devel
I have waited this long now :-) I only run 2.6.4 as something I developed didn't work correctly when compiled with 3.0.0, 3.0.2... Ozz On Wed, Jan 29, 2020 at 10:11 AM Sven Barth via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Ozz Nixon via fpc-devel schrieb am Mi., > 2

Re: [fpc-devel] Linux Binary - Socket Output affected by SystemCtl, HELP!

2020-02-02 Thread Ozz Nixon via fpc-devel
be a good day :-) On Wed, Jan 29, 2020 at 11:28 AM Nikolai Zhubr via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Hi! > > 29.01.2020 19:04, Ozz Nixon via fpc-devel: > > cat /etc/test.txt > > > > ls -alrt /etc/test.txt > > -rw-r--r-- 1 root root 0 J

Re: [fpc-devel] TStrings and BOM

2020-01-01 Thread Ozz Nixon via fpc-devel
Just make your own descendent - jeez. On Wed, Jan 1, 2020 at 5:02 PM Werner Pamler wrote: > Am 01.01.2020 um 17:01 schrieb Ondrej Pokorny: > > Isn't the TStrings.WriteBOM property good enough? Why to have yet > > another not-very-useful overload? > > To be honest I think Bart's idea of making

[fpc-devel] Windows Console App

2020-04-25 Thread Ozz Nixon via fpc-devel
Anyone ever experience making a console app (cross-platform), but, on windows when the app finishes, it appears to have put an uppercase C or D in the keyboard buffer, so the Prompt now has C:\>D ??? Every time I run my app, be it show help screen and end, or actually execute - when it finishes

Re: [fpc-devel] Windows Console App

2020-04-26 Thread Ozz Nixon via fpc-devel
-- > *From:* fpc-devel on behalf of > Ozz Nixon via fpc-devel > *Sent:* Saturday, April 25, 2020 8:21:13 PM > *To:* FPC developers' list > *Cc:* Ozz Nixon > *Subject:* [fpc-devel] Windows Console App > > Anyone ever experience making a console app (cross-platform), b

Re: [fpc-devel] Windows Console App

2020-04-26 Thread Ozz Nixon via fpc-devel
, > > I would like to know how you did that since it was exactly what I was > searchomg for a while ago... > > Could you send me a piece of code? > > Greetings > > Gerhard > > > ----- Original Message - > From: Ozz Nixon via fpc-devel > To: FPC developers

Re: [fpc-devel] Windows Console App

2020-04-26 Thread Ozz Nixon via fpc-devel
t; range of solutions. This email was started because of something odd on > Windows recently for me... > > > > Ozz > > > On Sun, Apr 26, 2020 at 1:27 AM Gerhard Scholz wrote: > > Hi, > > I would like to know how you did that since it was exactly what I was > search

Re: [fpc-devel] Feature request/discussion - SetLengthNoInit

2020-09-16 Thread Ozz Nixon via fpc-devel
Then, I would suggest it gets bolted into strutils, or sysutils. There are many good reasons to optimize Setlength(), especially for script authors :-) Currently, I am working (learning) Alpha Controls (alphaskins), and trying to find a fit into FCL/LCL, or Graeme's GUI. And if I tweak too much,

Re: [fpc-devel] Console problem in Lazarus trunk

2020-07-25 Thread Ozz Nixon via fpc-devel
Probably not your issue - but, if you have Avasta Anti-Virus - it can foobar Lazarus and Delphi console apps - where the Console is showing, but you cannot find it. Not on Taskbar, not in TaskList, etc. If you put an exclusion on your binary folder, then it works. Took me about 2 days to figure

[fpc-devel] Just wanted to share...

2021-12-23 Thread Ozz Nixon via fpc-devel
As some of you who know me, know I wrote all kinds of interpreter and pcode compilers. Last night I decided to compile my latest engine in delphi. I ran a script that does over 18 million double = double + 0.5 Fpc build takes 1m 26.8s Delphi takes over 15min... I have up and walked away, when I

Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-07 Thread Ozz Nixon via fpc-devel
Ok, I'll check it out. Thanks guys, did not realize it was a pointer, too many years writing scripts instead of code. Thanks!! On Thu, Jan 6, 2022, 11:51 PM Michael Van Canneyt wrote: > > > On Thu, 6 Jan 2022, Ozz Nixon via fpc-devel wrote: > > > Procedure Make_Language_File(

Re: [fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Ozz Nixon via fpc-devel
Just incase someone needs to know: (public release, not a custom build). Free Pascal Compiler version 3.0.4 [2017/10/06] for i386 Copyright (c) 1993-2017 by Florian Klaempfl and others C:\FPC\3.0.4\bin\i386-Win32\fpc.exe [options] [options] On Thu, Jan 6, 2022 at 6:50 PM Ozz Nixon wrote: >

[fpc-devel] Now sure why this raises Runtime Error 216

2022-01-06 Thread Ozz Nixon via fpc-devel
Without SetLength(var,0) at the end I get Runtime Error 216 once, adding those - assuming FPC now required me to zero out those fields, I now get the error twice. Code: Program MakePrompts; Type Language_File = Record Description:Array of Char; {null terminated string}