Re: [Lazarus] Question

2021-12-21 Thread Евгений Кадисов via lazarus
Thank you for your help. I have found the cause. In version 2.0.12 one can
not use TStream.GetSize. Now my program works fine.

вт, 21 дек. 2021 г. в 16:34, wkitty42--- via lazarus <
lazarus@lists.lazarus-ide.org>:

> On 12/21/21 8:28 AM, wkitt...@windstream.net wrote:
> >git log --pretty=oneline ae9017^..871307 | grep -Ei -e "UTF-?8"
>
>
> i forgot to also add this list of commits that appear to be specific to
> various
> FPC versions used behind Lazarus or used to compile Lazarus...
>
>git log --pretty=oneline ae9017^..871307 | grep -Ei -e "fpc"
>
>c476a94462550eaff34b932a47797798a0231523 IDE: fixed compile with fpc
> 3.0.4
>
>90cbe5eed994dd1743b0e36c8180894c633cc34a lazwiki: fixed compile with
> fpc 3.2
>
>d6eb3f3a05bff9ec84e98b5a27f3609698997be1 TUTF8Process: workaround for
> the
> poNoConsole->poDetached change. Better hacks for old FPC versions without
> TProcessClassTemplate. Issue #35991
>
>f7c69baac6b2c088660674d178d682af744f1d0c LazUtils: Dont override
> TProcess.Execute for TProcessUTF8 starting from FPC 3.2. Issue #35991
>
>2838eb631edeb4bc450043e8a747b51227796b12 LazUtils: Delete very old code
> for
> TProcessUTF8 that was needed for FPC 2.x.
>
>90bde32386685bf9675c506c9479a054ceed4b63 chmhelp: fixed compile fpc
> 3.0.4
>
>
>
>
> --
>   NOTE: No off-list assistance is given without prior approval.
> *Please keep mailing list traffic on the list where it belongs!*
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Question

2021-12-21 Thread Евгений Кадисов via lazarus
Thank you once more. It turned out that the problem was not solved. When I
have installed new version of Lazarus (2.0.12 instead of 2.0.10), my
program failed to work. I want to return old version of Lazrus but I do not
know how to do it.

пн, 20 дек. 2021 г. в 18:21, wkitty42--- via lazarus <
lazarus@lists.lazarus-ide.org>:

> On 12/20/21 6:35 AM, Евгений Кадисов via lazarus wrote:
> > Thank you. It seems I have found the reason.
>
> ok... and the reason/solution is/was? i ask so that others might find it
> if they
> have similar problems...
>
> > пн, 20 дек. 2021 г. в 13:58, wkitty42--- via lazarus
> > mailto:lazarus@lists.lazarus-ide.org>>:
> >
> > On 12/20/21 2:46 AM, Евгений Кадисов via lazarus wrote:
> >  > Dear lazarus programmers. After the change of the Lazarus version
> a command
> >  > "find" fails when it must find a word written with russian
> letters. What
> > must I do?
> >
> >
> > what must you do? maybe provide a little more information?
> > работа со строками lazarus
> > what version of laz were you using?
> > are you using UTF-8 or something else?
> > what format are the russian glyphs written in?
>
>
> --
>   NOTE: No off-list assistance is given without prior approval.
> *Please keep mailing list traffic on the list where it belongs!*
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Question

2021-12-20 Thread Евгений Кадисов via lazarus
Thank you. It seems I have found the reason.

пн, 20 дек. 2021 г. в 13:58, wkitty42--- via lazarus <
lazarus@lists.lazarus-ide.org>:

> On 12/20/21 2:46 AM, Евгений Кадисов via lazarus wrote:
> > Dear lazarus programmers. After the change of the Lazarus version a
> command
> > "find" fails when it must find a word written with russian letters. What
> must I do?
>
>
> what must you do? maybe provide a little more information?
>
> what version of laz were you using?
> are you using UTF-8 or something else?
> what format are the russian glyphs written in?
>
>
> --
>   NOTE: No off-list assistance is given without prior approval.
> *Please keep mailing list traffic on the list where it belongs!*
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] Question

2021-12-19 Thread Евгений Кадисов via lazarus
Dear lazarus programmers. After the change of the Lazarus version a command
"find" fails when it must find a word written with russian letters. What
must I do?
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] Asteroids in Pascal

2021-11-21 Thread Евгений Кадисов via lazarus
Hi.
My operating system is kubuntu 21.04. How can I execute system commands
from my graphical lazarus program?

вс, 21 нояб. 2021 г. в 14:18, Graeme Geldenhuys via lazarus <
lazarus@lists.lazarus-ide.org>:

> On 2021-11-09 6:32 p.m., Anthony Walter via lazarus wrote:
> > I've included a copy of the entire game logic code. Check it out here:
>
> Such a cool game. :-D Thank you for sharing.
>
> Regards,
>Graeme
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] TTimer simple issue

2020-10-27 Thread Евгений Кадисов via lazarus
The problem of your code is  that the variable  is not initialized.
Regards
Evgueny

вт, 27 окт. 2020 г. в 15:28, Santiago A. via lazarus <
lazarus@lists.lazarus-ide.org>:

> El 18/10/2020 a las 19:18, Lars via lazarus escribió:
>
> When building a simple TTimer demo I cannot seem to get it working
>
> Any idea what the problem could be if you paste this code into your form
> with a memo?
>
> var
>   TimeSpent: integer;
>
> procedure TForm2.Button1Click(Sender: TObject);
> var
>   i, answer: integer;
> begin
>   Timer1.enabled := false;
>   TimeSpent := 0;
>   Timer1.Enabled := true;
>   Timer1.interval := 1;
>   for i := 0 to 9 do
>   begin
> answer := i * answer;
>   end;
>
>   memo1.lines.add('time spent: ' + inttostr(timespent));
>
> end;
>
> procedure TForm2.Timer1Timer(Sender: TObject);
> begin
>   inc(TimeSpent);
> end;
>
> It says
> time spent: 0
> Whereas the time should be a lot.
>
> Regards,
> Lars
>
>
> I don't know what are you trying to do, but if you are trying to find out
> how long it takes certain process, you should try other approach. Timer is
> low precision and it is only fired by events, so you must process event's
> queue.
>
> A first and bad approach:
>
> for i := 0 to 9 do
> begin
>answer := i * answer;
>application.processmessages; //<-- process event queue
> end;
>
> But this is very not a very efficient way. The best is to get the start
> time, get the end time and subtract.
>
> var
>   StartTime,EndTime:TDataTime;
>   i, answer: integer;
> begin
>  StartTime:=now;
>  for i := 0 to 9 do
>  begin
> answer := i * answer;
>  end;
>  EndTime:=now;
>  memo1.lines.add('time spent: ' + TimeToStr(EndTime-StarTime) );
> end;
>
> But TDateTime is not accurate at all if you are measuring short periods
> (milliseconds).
>
> EpikTimer is a component with much better precision.
>
> https://wiki.lazarus.freepascal.org/EpikTimer
>
>
> --
> Saludos
>
> Santiago A.
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] call stack

2020-06-18 Thread Евгений Кадисов via lazarus
Hi everybody.
In what cases can be such a situation. The call stack is full of strange
stuff and does not contain any string of the debugged code.
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazarus (2.0.6) on ubuntu 19.10 fails

2020-03-10 Thread Евгений Кадисов via lazarus
Solved after upgrading lazarus.

вс, 8 мар. 2020 г. в 07:13, Евгений Кадисов :

> There is no executable to run.
>
> вс, 8 мар. 2020 г. в 01:41, Juha Manninen via lazarus <
> lazarus@lists.lazarus-ide.org>:
>
>> On Thu, Mar 5, 2020 at 3:15 PM Евгений Кадисов via lazarus <
>> lazarus@lists.lazarus-ide.org> wrote:
>>
>>> Lazarus writes that it compiles and builds with "sucess" but is 'unable
>>> to run "/home/eugen/aux/lmarka/project1"'
>>>
>>
>> Can you run the executable from console? If not, what is the error
>> message?
>>
>> Juha
>>
>> --
>> ___
>> lazarus mailing list
>> lazarus@lists.lazarus-ide.org
>> https://lists.lazarus-ide.org/listinfo/lazarus
>>
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] lazarus (2.0.6) on ubuntu 19.10 fails

2020-03-07 Thread Евгений Кадисов via lazarus
There is no executable to run.

вс, 8 мар. 2020 г. в 01:41, Juha Manninen via lazarus <
lazarus@lists.lazarus-ide.org>:

> On Thu, Mar 5, 2020 at 3:15 PM Евгений Кадисов via lazarus <
> lazarus@lists.lazarus-ide.org> wrote:
>
>> Lazarus writes that it compiles and builds with "sucess" but is 'unable
>> to run "/home/eugen/aux/lmarka/project1"'
>>
>
> Can you run the executable from console? If not, what is the error message?
>
> Juha
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] lazarus (2.0.6) on ubuntu 19.10 fails

2020-03-05 Thread Евгений Кадисов via lazarus
Hi anybody.
I have installed lazarus (2.0.2) . My operating system is Ubuntu
19.10.Earlier lazarus (lazarus 1.8.x? on earlier ubuntu 18.04) was working
well. After some progress in developing my program code I have installed a
new version and began receiving some strange results. Lazarus writes that
it compiles and builds with "sucess" but is 'unable to run
"/home/eugen/aux/lmarka/project1"'
Has anybody an answer for this problem?
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] "No program file "/home/eugen/aux/lmarka/unit1" found".

2020-03-02 Thread Евгений Кадисов via lazarus
Solved. Thanks. There was an error in run parameters.

вс, 1 мар. 2020 г. в 13:54, Евгений Кадисов :

> My program is a GUI project that was edited by putting "Buttons" (etc) on
> a form.
>
> вс, 1 мар. 2020 г. в 11:38, Mattias Gaertner via lazarus <
> lazarus@lists.lazarus-ide.org>:
>
>> On Sun, 1 Mar 2020 07:28:50 +0300
>> Евгений Кадисов via lazarus  wrote:
>>
>> > Hi anybody.
>> > I have installed lazarus (2.0.2) . My operating system is Ubuntu
>> > 19.10. When there are no more errors (only hints and warnings) and I
>> > give the command F9 (run) Lazarus answers with a strange output:
>> > "No program file "/home/eugen/aux/lmarka/unit1" found". Can any one
>> > say what is wrong?
>>
>> If compile works and run fails, check
>> Run / Run parameters ...
>>
>> What are your settings there?
>>
>> Mattias
>> --
>> ___
>> lazarus mailing list
>> lazarus@lists.lazarus-ide.org
>> https://lists.lazarus-ide.org/listinfo/lazarus
>>
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] "No program file "/home/eugen/aux/lmarka/unit1" found".

2020-03-01 Thread Евгений Кадисов via lazarus
My program is a GUI project that was edited by putting "Buttons" (etc) on a
form.

вс, 1 мар. 2020 г. в 11:38, Mattias Gaertner via lazarus <
lazarus@lists.lazarus-ide.org>:

> On Sun, 1 Mar 2020 07:28:50 +0300
> Евгений Кадисов via lazarus  wrote:
>
> > Hi anybody.
> > I have installed lazarus (2.0.2) . My operating system is Ubuntu
> > 19.10. When there are no more errors (only hints and warnings) and I
> > give the command F9 (run) Lazarus answers with a strange output:
> > "No program file "/home/eugen/aux/lmarka/unit1" found". Can any one
> > say what is wrong?
>
> If compile works and run fails, check
> Run / Run parameters ...
>
> What are your settings there?
>
> Mattias
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] "No program file "/home/eugen/aux/lmarka/unit1" found".

2020-02-29 Thread Евгений Кадисов via lazarus
Hi anybody.
I have installed lazarus (2.0.2) . My operating system is Ubuntu 19.10.
When there are no more errors (only hints and warnings) and I give the
command F9 (run) Lazarus answers with a strange output:
"No program file "/home/eugen/aux/lmarka/unit1" found". Can any one say
what is wrong?
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


Re: [Lazarus] spilling related accesviolation when rebuilding lazarus (extgraphics) with 3.3.1

2020-02-29 Thread Евгений Кадисов via lazarus
Hi anybody.
I have installed lazarus (2.0.2). When there are no more errors (only hints
and warnings) and I give the command F9 (run) Lazarus answers with a
strange output:
"No program file "/home/eugen/aux/lmarka/unit1" found". Can any one say
what is wrong?

сб, 29 февр. 2020 г. в 16:12, Marco van de Voort via lazarus <
lazarus@lists.lazarus-ide.org>:

>
> For a while now I have had problems building custom lazarus.
>
> The error is always something spilling related, and this case in
> extgraphics, code that uses an open array of tpoint.
>
> I tried to copy and paste the relevant code in a separate unit and
> compile with the arguments that lazarus lists of "build ide", but no
> success.
>
> Anybody also has this? I have seen this since december occasionally, but
> recently it got really more frequent.
>
> Verbose: Compiling lcltranslator.pas
> lcltranslator.pas(356,9) Warning: Case statement does not handle all
> possible cases
> Verbose: Compiling extdlgs.pas
> Verbose: Compiling C:\repo\lazarus\lcl\forms\calcform.pas
> Verbose: Compiling C:\repo\lazarus\lcl\widgetset\wsextdlgs.pp
> calcform.pas(598,3) Warning: Case statement does not handle all possible
> cases
> Verbose: Compiling extgraphics.pas
> extgraphics.pas(229,7) Error: Compilation raised exception internally
> Verbose: Compilation aborted
> Debug: An unhandled exception occurred at $0049383D:
> Debug: EAccessViolation: Access violation
> Debug:   $0049383D  GET_ALIAS,  line 1137 of rgobj.pas
> Debug:   $0049664E  INSTR_SPILL_REGISTER,  line 2575 of rgobj.pas
> Debug:   $00495E61  SPILL_REGISTERS,  line 2331 of rgobj.pas
> Debug:   $00492D23  DO_REGISTER_ALLOCATION,  line 637 of rgobj.pas
> Debug:   $00483DA9  DO_REGISTER_ALLOCATION,  line 896 of cgobj.pas
> Debug:
>
>
> --
> ___
> lazarus mailing list
> lazarus@lists.lazarus-ide.org
> https://lists.lazarus-ide.org/listinfo/lazarus
>
-- 
___
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus