Re: [fpc-pascal] Strange floating-point result

2022-11-11 Thread Thomas Kurz via fpc-pascal
Understood, ok. Thanks for your explanation. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange floating-point result

2022-11-11 Thread Jonas Maebe via fpc-pascal
On 11/11/2022 11:49, Thomas Kurz via fpc-pascal wrote: Why do I have to explicitly cast Integer to Double here? Because 1.2E6 can be represented exactly by single precision. You can use -CF64 to force floating point constants to have at least 64 bits precision. Or you can use {$excessprecisio

[fpc-pascal] Strange floating-point result

2022-11-11 Thread Thomas Kurz via fpc-pascal
Hello, by chance, I stumbled upon a strange behavior in floating-point calculation. Here's the example: program Project1; var f: double; n: integer = 1758; m: integer = 0; begin f := n * 1.2E6 + (2*m+1) * 50E3; // 2109650048 f := Double(n) * 1.2E6 + Double(2*m+1) * 50E3; // 210965000

Re: [fpc-pascal] Strange "division by zero" error using variants

2022-05-24 Thread Michalis Kamburelis via fpc-pascal
That's a funny interaction between Variants and Pascal's ambiguous (logical or bitwise) "and" :) Both the operators and the types are ambiguous -> making the boolean short-circuit evaluation not possible. Indeed one workaround is to cast the variants to Booleans explicitly, which makes it use logi

Re: [fpc-pascal] Strange "division by zero" error using variants

2022-05-24 Thread Florian Klämpfl via fpc-pascal
Am 24.05.22 um 19:28 schrieb Thomas Kurz via fpc-pascal: Dear all, please consider the following code: program Project1; {$booleval off} var v1, v2: variant; a: boolean; b: integer; begin a := true; b := 0; // this works as expected: if a and (b > 0) and ((0+1) mod b =

[fpc-pascal] Strange "division by zero" error using variants

2022-05-24 Thread Thomas Kurz via fpc-pascal
Dear all, please consider the following code: program Project1; {$booleval off} var v1, v2: variant; a: boolean; b: integer; begin a := true; b := 0; // this works as expected: if a and (b > 0) and ((0+1) mod b = 0) then Writeln ('ok'); v1 := true; v2 := 0; // this gives

Re: [fpc-pascal] Strange behavior in generics.collections TDictionary

2022-01-26 Thread Sven Barth via fpc-pascal
Am 25.01.2022 um 18:48 schrieb Thomas Kurz via fpc-pascal: Consider the following code: *** PROGRAM project1; {$mode objfpc} {$longstrings on} // see output below {$modeswitch advancedrecords} USES Variants, Generics.Collections, SysUtils; TYPE TRecord = PACKED RECORD FID: NativeUInt; F

[fpc-pascal] Strange behavior in generics.collections TDictionary

2022-01-26 Thread Thomas Kurz via fpc-pascal
Consider the following code: *** PROGRAM project1; {$mode objfpc} {$longstrings on} // see output below {$modeswitch advancedrecords} USES Variants, Generics.Collections, SysUtils; TYPE TRecord = PACKED RECORD FID: NativeUInt; FKey: String; CONSTRUCTOR Create (AID: NativeUInt; AKey: Strin

Re: [fpc-pascal] Strange output from make when building 3.2.0

2021-02-25 Thread Sven Barth via fpc-pascal
Am 25.02.2021 um 13:38 schrieb Bo Berglund via fpc-pascal: On Thu, 25 Feb 2021 10:59:14 +0100, Marco van de Voort via fpc-pascal wrote: Op 2021-02-25 om 10:12 schreef Bo Berglund via fpc-pascal: I am installing fpc 3.2.0 on a notebook running Ubuntu 20.04 LTS When I execute make clean and mak

Re: [fpc-pascal] Strange output from make when building 3.2.0

2021-02-25 Thread Bo Berglund via fpc-pascal
On Thu, 25 Feb 2021 13:38:30 +0100, Bo Berglund via fpc-pascal wrote: >>Missing FPC install.  It can't find a "fpc" binary > >Is this a hen-and-egg situation? > >I am installing fpc/lazarus for the first time on this computer and I am doing >it from sources. So there is no previous compiler excep

Re: [fpc-pascal] Strange output from make when building 3.2.0

2021-02-25 Thread Bo Berglund via fpc-pascal
On Thu, 25 Feb 2021 10:59:14 +0100, Marco van de Voort via fpc-pascal wrote: > >Op 2021-02-25 om 10:12 schreef Bo Berglund via fpc-pascal: >> I am installing fpc 3.2.0 on a notebook running Ubuntu 20.04 LTS >> When I execute make clean and make sourceinstall I get this strange output >> message:

Re: [fpc-pascal] Strange output from make when building 3.2.0

2021-02-25 Thread Marco van de Voort via fpc-pascal
Op 2021-02-25 om 10:12 schreef Bo Berglund via fpc-pascal: I am installing fpc 3.2.0 on a notebook running Ubuntu 20.04 LTS When I execute make clean and make sourceinstall I get this strange output message: :~/dev/fpc/3.2.0$ time make sourceinstall PREFIX=$HOME make: -iVSPTPSOTO: Command n

[fpc-pascal] Strange output from make when building 3.2.0

2021-02-25 Thread Bo Berglund via fpc-pascal
I am installing fpc 3.2.0 on a notebook running Ubuntu 20.04 LTS When I execute make clean and make sourceinstall I get this strange output message: :~/dev/fpc/3.2.0$ time make sourceinstall PREFIX=$HOME make: -iVSPTPSOTO: Command not found What does it mean? What have I missed to prepare? I h

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

2020-08-13 Thread Sven Barth via fpc-pascal
Am 13.08.2020 um 22:37 schrieb Bo Berglund via fpc-pascal: I am working on the conversion of a service application from Windows/Delphi to Linux/FPC. When going through the code I found this procedure, which I do not quite understand the workings of, can someone please explain how it operates? p

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

2020-08-13 Thread Bo Berglund via fpc-pascal
I am working on the conversion of a service application from Windows/Delphi to Linux/FPC. When going through the code I found this procedure, which I do not quite understand the workings of, can someone please explain how it operates? procedure Swap2(var Source); var H, L: word; begin H := Hi

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-05 Thread Виктор Матузенко via fpc-pascal
Reported: https://bugs.freepascal.org/view.php?id=37496 вт, 4 авг. 2020 г. в 15:25, Joost van der Sluis : > Op 01-08-2020 om 14:32 schreef Виктор Матузенко via fpc-pascal: > > Error: Undefined symbol: > > DPARSER_$$_PARSEHEXU32UNSAFE$PCHAR$PCHAR$LONGWORD$$LONGWORD > > > > What's my next step? Sen

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-04 Thread Joost van der Sluis
Op 01-08-2020 om 14:32 schreef Виктор Матузенко via fpc-pascal: Error: Undefined symbol: DPARSER_$$_PARSEHEXU32UNSAFE$PCHAR$PCHAR$LONGWORD$$LONGWORD What's my next step? Sending the example to bug tracker? Yes, please. Regards, Joost ___ fpc-pasca

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-01 Thread code dz via fpc-pascal
removing inline keyword resolve the problem seems a bug ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-01 Thread Виктор Матузенко via fpc-pascal
сб, 1 авг. 2020 г. в 13:26, Alexey via fpc-pascal < fpc-pascal@lists.freepascal.org>: > Did you try to delete all "lib" dirs in your project? (compiled units) > Yes, I did. The error is reproducible and the same each time I run clean build. I've got a minimal reproducible example with similar er

Re: [fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-08-01 Thread Alexey via fpc-pascal
Did you try to delete all "lib" dirs in your project? (compiled units)___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange "Undefined symbol" error in FPC 3.2.0

2020-07-31 Thread Виктор Матузенко via fpc-pascal
Hi! I have pretty large program which compiles and runs fine with FPC 3.0.2, but if I try to compile it with FPC 3.2.0 (win32, i386, downloaded installer here https://sourceforge.net/projects/freepascal/files/Win32/3.2.0/ ), I get the following error: odd_gardens.pp(37,44) Error: Undefined symbol

Re: [fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
On Sat, Nov 23, 2019 at 7:47 PM Bart wrote: As I was afraid: User error! Cfg.JSONOptions := Cfg.JSONOptions + [joIgnoreTrailingComma]; This forces a reload of the file (since Filename isn't empty at this point). (B.t.w. fpc trunk raise an error : An unhandled exception occurred at $00438A84: EJ

Re: [fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Michael Van Canneyt
On Sat, 23 Nov 2019, Bart via fpc-pascal wrote: Hi, I experienced some strange behaviour with TJSONConfig.Clear. I'm using fpc 3.0.4 32-bit on Win10-64. (While I do have fpc trunk as well, the program is a Lazaurs GUI program and I don't like using Lazarus (trunk) in combination with fpc trun

[fpc-pascal] Strange experience with TJsonConfig.Clear

2019-11-23 Thread Bart via fpc-pascal
Hi, I experienced some strange behaviour with TJSONConfig.Clear. I'm using fpc 3.0.4 32-bit on Win10-64. (While I do have fpc trunk as well, the program is a Lazaurs GUI program and I don't like using Lazarus (trunk) in combination with fpc trunk.) I have a TJSONConfig that I use to store address

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-18 Thread Mattias Gaertner
On Thu, 18 Jan 2018 20:31:20 +0100 Darius Blaszyk wrote: > > Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function > > CompareName. > > I'm using FPC 3.0.4 indeed. No dependency to the LCL. Laz2_DOM is in LazUtils, not in the LCL. Mattias _

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-18 Thread Vojtěch Čihák
: [fpc-pascal] Strange issue with TXMLConfig Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function > CompareName. I'm using FPC 3.0.4 indeed. No dependency to the LCL. Darius ___ fpc-pascal maillist  -  fpc-pascal@lists.freepa

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-18 Thread Darius Blaszyk
Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function CompareName. I'm using FPC 3.0.4 indeed. No dependency to the LCL. Darius ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/list

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Vojtěch Čihák
The second TDOMNode from unit DOM (fcl-xml) has that function too, in FPC 3.0.4. V. __ Od: Vojtěch Čihák Komu: FPC-Pascal users discussions Datum: 18.01.2018 00:30 Předmět: Re: [fpc-pascal] Strange issue with TXMLConfig Hi, I can

Re: [fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Vojtěch Čihák
Hi, I can only say that TDOMNode from Laz2_DOM in trunk has function CompareName.   V. __ Od: Darius Blaszyk Komu: FPC-Pascal users discussions Datum: 18.01.2018 00:11 Předmět: [fpc-pascal] Strange issue with TXMLConfig All of a

[fpc-pascal] Strange issue with TXMLConfig

2018-01-17 Thread Darius Blaszyk
All of a sudden I get a crash in my app trying to read a path from an XML file. The crash comes from the function TDOMNamedNodeMap.Find that crashes on this line: C := TDOMNode(FList.List^[I]).CompareName(name); The strange thing is that a simplified example app does not crash! In any case I'm 1

[fpc-pascal] Strange file

2016-01-09 Thread Ched
Hello All, Each time I use fp (text mode ide) under linux or win-xp (3.0 and 2.6.4), there appears a new emtpy file in the directory: dummy.$$$ . Apparently it's safe to remove it even when fp is running. But what's its use ? Season's greeting, Ched' __

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 5:39 PM, Frederic Da Vitoria wrote: 2014/1/22 waldo kitty mailto:wkitt...@windstream.net>> the string type is/was a 256 character array with the 0th (zero-th) element containing the length of the string... this allowed one to immediately know how many characters to read

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Frederic Da Vitoria
2014/1/22 waldo kitty > the string type is/was a 256 character array with the 0th (zero-th) > element containing the length of the string... this allowed one to > immediately know how many characters to read at once... it was much faster > than iterating thru the array looking for a nul byte as d

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread waldo kitty
On 1/22/2014 1:00 PM, Jürgen Hestermann wrote: Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delp

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Sven Barth
On 22.01.2014 19:00, Jürgen Hestermann wrote: Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delph

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Florian Klämpfl
Am 22.01.2014 19:00, schrieb Jürgen Hestermann: > > Am 2014-01-22 07:41, schrieb leledumbo: >> Jürgen Hestermann wrote >>> Realy? >>> But why that? >>> It cannot be negative. >>> Using integer instead of unsigned values reduces the possible (positive) >>> range >>> and produces such illogical (to

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-22 Thread Jürgen Hestermann
Am 2014-01-22 07:41, schrieb leledumbo: Jürgen Hestermann wrote Realy? But why that? It cannot be negative. Using integer instead of unsigned values reduces the possible (positive) range and produces such illogical (to me) compiler warnings. Delphi compatibility and maximum data size limitatio

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread leledumbo
Jürgen Hestermann wrote > Realy? > But why that? > It cannot be negative. > Using integer instead of unsigned values reduces the possible (positive) > range > and produces such illogical (to me) compiler warnings. Delphi compatibility and maximum data size limitation AFAIK (2 GB). -- View this

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Jürgen Hestermann
Am 2014-01-21 18:43, schrieb Howard Page-Clark: On 21/01/2014 17:33, Jürgen Hestermann wrote: I always wondered why I get a compiler message for the following code ... if i+length(M) Length is declared in the compiler/RTL to return an integer result. Realy? But why that? It cannot be negati

Re: [fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Howard Page-Clark
On 21/01/2014 17:33, Jürgen Hestermann wrote: I always wondered why I get a compiler message for the following code ... if i+length(M) Length is declared in the compiler/RTL to return an integer result. Howard ___ fpc-pascal maillist - fpc-pascal

[fpc-pascal] Strange message about mixed signed expression

2014-01-21 Thread Jürgen Hestermann
I always wondered why I get a compiler message for the following code snipped: function Match(M,F : UTF8String) : boolean; var i : Cardinal; ... if i+length(M)___ fpc-pascal

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 12:37, schrieb Darius Blaszyk: Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
> Am 08.05.2013 11:40, schrieb Darius Blaszyk: > > Am 08.05.2013 11:20, schrieb Darius Blaszyk: > I'm working on a glut app but I keep on getting the message: Error: Can't > assign local procedure/function to procedure variable The error is at this > line: glutDisplayFunc(@redrawfunc); And th

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:40, schrieb Darius Blaszyk: Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (w

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
> Am 08.05.2013 11:20, schrieb Darius Blaszyk: > >> I'm working on a glut app but I keep on getting the message: Error: Can't >> assign local procedure/function to procedure variable The error is at this >> line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in >> the same

Re: [fpc-pascal] Strange error message

2013-05-08 Thread Sven Barth
Am 08.05.2013 11:20, schrieb Darius Blaszyk: I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is

[fpc-pascal] Strange error message

2013-05-08 Thread Darius Blaszyk
I'm working on a glut app but I keep on getting the message: Error: Can't assign local procedure/function to procedure variable The error is at this line: glutDisplayFunc(@redrawfunc); And the callback (which is declared in the same .inc file) is declared as: procedure redrawfunc; cdecl; I

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Darius Blaszyk
Hi Tomas, That did the trick! I didn't notice the dialogs unit in the implementation section. After removing it everything works fine now. I got opencv running on windows and displaying the webcam feed on a opengl texture. I will put the code on the ccr as soon as I have access again. In the co

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 11:07, dhkblas...@zeelandnet.nl wrote: > Second try. My previous email with attachement got blocked > probably. I will send the files now in two emails. Just put everything > together in one folder. First, I'd recommend renaming your main program from video.pp to something

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Tomas Hajny
On Thu, May 17, 2012 10:11, dhkblas...@zeelandnet.nl wrote: Hi, > I have a simple application that uses glut and opencv. > However as soon as I add the opencv wrapper unit to the uses clause I > get: > > video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" > found > > The compiler d

Re: [fpc-pascal] Strange compile error

2012-05-17 Thread Sven Barth
On 17.05.2012 10:11, dhkblas...@zeelandnet.nl wrote: Hi, I have a simple application that uses glut and opencv. However as soon as I add the opencv wrapper unit to the uses clause I get: video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found The compiler does not recognize the

[fpc-pascal] Strange compile error

2012-05-17 Thread dhkblaszyk
Hi, I have a simple application that uses glut and opencv. However as soon as I add the opencv wrapper unit to the uses clause I get: video.pp(10,1) Fatal: Syntax error, "UNIT" expected but "PROGRAM" found The compiler does not recognize the main unit anymore. I have searched the opencv.p

Re: [fpc-pascal] Strange arm-linux cross-compilation errors

2011-03-29 Thread Jonas Maebe
On 29 Mar 2011, at 13:12, Felipe Monteiro de Carvalho wrote: In this thread: http://www.lazarus.freepascal.org/index.php/topic,12585.0.html I though that maybe posting here would help, since the user has some problems with some strange errors which say nothing to me =) The last question/answ

[fpc-pascal] Strange arm-linux cross-compilation errors

2011-03-29 Thread Felipe Monteiro de Carvalho
In this thread: http://www.lazarus.freepascal.org/index.php/topic,12585.0.html I though that maybe posting here would help, since the user has some problems with some strange errors which say nothing to me =) -- Felipe Monteiro de Carvalho ___ fpc-pasc

Re: [fpc-pascal] Strange behavior with GLib API call

2010-04-18 Thread Matthias Klumpp
Fixed! It was some really strange interference with different g_types... The reason for all this was some duplicate code. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] Strange behavior with GLib API call

2010-04-18 Thread Matthias Klumpp
Hello! I am developer of the Listaller Project, a cross-distribution software manager & installer which uses PackageKit and is completely programmed in Pascal. (YES, I better did this in C++, when I started the project two years ago, I decided to play risky) At time I have a very big problem with a

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 17:04:55 +0200 Jonas Maebe wrote: > Unlikely. You can always disable the explicitly with -O-. Without a > compilable example program that demonstrates the problem I cannot help > further. Ok... Thanks! Will try to extract the important part. John _

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread Jonas Maebe
On 05 Apr 2010, at 16:36, John Coppens wrote: > gives: > > 654 if ch = eofchar then > (gdb) n > 655 sy := sps[ch] > (gdb) > 659 goto 1; > (gdb) > 661 symbol_read := true; > > Does this have anything to do with optimizations? Unlikely. You can always disable

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 16:21:33 +0200 Jonas Maebe wrote: > This usually means that you modified the file since it was loaded in > the debugger. And it still gives some strange result: if ch = eofchar then sy := sps[ch] else begin error(erchar); nextch; g

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread Jonas Maebe
On 05 Apr 2010, at 16:27, John Coppens wrote: > Doesn't gdb detect source code changes? It's been a while, but I seem to > remember gdb warning about the C source file having been changed. GDB warns if *on startup* the time stamp of a source file is newer than that of the binary. If you change

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
On Mon, 5 Apr 2010 16:21:33 +0200 Jonas Maebe wrote: > > I haven't seen this kind of problem before, not in Pascal nor in C. > > Why is the '... to 1' appearing in the listing? > > This usually means that you modified the file since it was loaded in > the debugger. That was it - but it seems sl

Re: [fpc-pascal] Strange debugging issue

2010-04-05 Thread Jonas Maebe
On 05 Apr 2010, at 16:17, John Coppens wrote: > I haven't seen this kind of problem before, not in Pascal nor in C. > Why is the '... to 1' appearing in the listing? This usually means that you modified the file since it was loaded in the debugger. Jonas___

[fpc-pascal] Strange debugging issue

2010-04-05 Thread John Coppens
Hi all, When trying to debug a series of events in a program, parts of source lines disappear - apart from the fact that the execution secuence seems very off. This extract from the source file: if ch = eofchar then sy := sps[ch] else begin error(erchar); next

Re: [fpc-pascal] Strange WinCE Bug

2010-03-19 Thread Felipe Monteiro de Carvalho
thanks =) nicknames can be tricky... -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strange WinCE Bug

2010-03-19 Thread Graeme Geldenhuys
Try the following... Yury Sidorov Cheers, G. On 19 March 2010 03:27, Felipe Monteiro de Carvalho wrote: > Or at least does anyone know the e-mail of the user "jura" which > submited the previous wince tests so that I can ask him how he did it? -- Regards, - Graeme - _

Re: [fpc-pascal] Strange WinCE Bug

2010-03-18 Thread Felipe Monteiro de Carvalho
Or at least does anyone know the e-mail of the user "jura" which submited the previous wince tests so that I can ask him how he did it? thanks, -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freep

Re: [fpc-pascal] Strange WinCE Bug

2010-03-11 Thread Felipe Monteiro de Carvalho
On Thu, Mar 11, 2010 at 8:15 AM, Bernd Mueller wrote: > it looks, as if 2.4.x was not so well tested on Wince. Perhaps you could run > the test suite and see if it is a compiler problem. How can I do this? -- Felipe Monteiro de Carvalho ___ fpc-pascal

Re: [fpc-pascal] Strange WinCE Bug

2010-03-11 Thread Bernd Mueller
Felipe Monteiro de Carvalho wrote: What do you recommend? Simply creating a report? http://www.freepascal.org/testsuite/cgi-bin/testsuite.cgi?os=17&cpu=6&version=0&date= it looks, as if 2.4.x was not so well tested on Wince. Perhaps you could run the test suite and see if it is a compiler pr

[fpc-pascal] Strange WinCE Bug

2010-03-11 Thread Felipe Monteiro de Carvalho
Hello, Who maintains the wince port and the arm port? Some users are experiencing a very wierd bug in wince-arm which happens in pure lcl app or kol app + lnet (no idea what the common factor is). It also happens in some devices, but not all of them and acording to the reports it doesn't happen i

Re: [fpc-pascal] Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.

2010-03-07 Thread Jonas Maebe
On 07 Mar 2010, at 19:18, Schindler Karl-Michael wrote: > If I use Pa_IsFormatSupported from portaudio with a different sample rate > than the default, I get a division by zero error or other arithmetic error. ... > gdb backtrace shows that it is deep down in Apple libs (probably the reason, >

[fpc-pascal] Strange error with Pa_IsFormatSupported from portaudio when used with Pascal headers AND Mac OS X.

2010-03-07 Thread Schindler Karl-Michael
Hi If I use Pa_IsFormatSupported from portaudio with a different sample rate than the default, I get a division by zero error or other arithmetic error. However, it needs very special conditions. It does not occur with the same Pascal program on linux. Also the very similar test program pa_devs

Re: [fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Graeme Geldenhuys
Paul Ishenin wrote: will be useless. Who wants to know that it was raised in Warn function? Better to assign a caller address to that exception. For this we have 'at' keyword. Thanks Paul! Your explanation makes perfect sense. Amazingly enough, I have been using exceptions for many years, and

Re: [fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Paul Ishenin
Graeme Geldenhuys wrote: Hi, While porting DUnit2 to Free Pascal I came across the following code. I have never seen syntax like that, yet it is accepted by FPC and Delphi compilers. Is this documented in FPC docs? What does the '... at ' do? Unfortunately I don't have any docs (fpc, delp

[fpc-pascal] Strange syntax in raising exceptions

2009-07-15 Thread Graeme Geldenhuys
Hi, While porting DUnit2 to Free Pascal I came across the following code. I have never seen syntax like that, yet it is accepted by FPC and Delphi compilers. Is this documented in FPC docs? What does the '... at ' do? Unfortunately I don't have any docs (fpc, delphi or kylix) available here o

Re: [fpc-pascal] Strange error

2009-06-08 Thread Graeme Geldenhuys
Hans Mårtensson wrote: All right, but with former versions of FPC there was no message if all memory was freed. I've been getting the memory usage output for some time already. So that is normal when heaptrc unit is enabled. And because the message is marked "error", I thought that it migh

Re: [fpc-pascal] Strange error

2009-06-08 Thread Hans Mårtensson
Vincent Snijders wrote: Hans Mårtensson schreef: When compiling a windows program with FPC version 2.2.4 with the switch -dDEBUG (using the default configuration), after running the program I get the following message: - Error Heap dump by heaptrc unit 0 memory b

Re: [fpc-pascal] Strange error

2009-06-08 Thread Vincent Snijders
Hans Mårtensson schreef: When compiling a windows program with FPC version 2.2.4 with the switch -dDEBUG (using the default configuration), after running the program I get the following message: - Error Heap dump by heaptrc unit 0 memory blocks allocated: 0/0 0 memo

[fpc-pascal] Strange error

2009-06-08 Thread Hans Mårtensson
When compiling a windows program with FPC version 2.2.4 with the switch -dDEBUG (using the default configuration), after running the program I get the following message: - Error Heap dump by heaptrc unit 0 memory blocks allocated: 0/0 0 memory blocks freed: 0/0 0 unf

Re: [fpc-pascal] Strange issue with threads

2009-05-23 Thread Luca Olivetti
En/na Jonas Maebe ha escrit: Is there a hard limit on the number of threads under windows? I'm pretty sure there is one for every OS. If so, why no exception when I try to create more? Because the Windows version of tthread.create does not check for any errors. You can submit a bug report

Re: [fpc-pascal] Strange issue with threads

2009-05-23 Thread Jonas Maebe
On 22 May 2009, at 17:03, Luca Olivetti wrote: While I was testing an unrelated issue, I discovered this: under windows, with fpc 2.2.4, I try to start 1 thread (I know it's absurd but it's just a test) and have all of them linger around for 10 seconds. The thread actually started are 1

[fpc-pascal] Strange issue with threads

2009-05-22 Thread Luca Olivetti
While I was testing an unrelated issue, I discovered this: under windows, with fpc 2.2.4, I try to start 1 thread (I know it's absurd but it's just a test) and have all of them linger around for 10 seconds. The thread actually started are 121. The problem is that no exception is raised, so how

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Vinzent Höfler
Marco van de Voort wrote: In our previous episode, Tom Verhoeff said: This means that the if statement is passed 7 times without problem with x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say? :-

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: > What makes things complicated, is that the program has a GUI > through Lazarus, and that it is rather biggish, making it difficult > to isolate the problem. > > The place where it complains is a simple statement Sorry, forgot to mention a test/remedy

Re: [fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Marco van de Voort
In our previous episode, Tom Verhoeff said: > > This means that the if statement is passed 7 times without problem with > x = -1, and on the 8th pass, where x = -1 again, it bails out with an FPE. Hmm, didn't the x87 copro stack had 7ish registers? And recursive you say? :-) ___

[fpc-pascal] Strange Floating Point Exception problem

2008-08-22 Thread Tom Verhoeff
I have an application (for optimizing decisions in the dice game Yahtzee) that uses Real and runs well with FPC on Mac OS X (PPC), but that fails with a Floating Point Exception (FPE) under Windows (FPC 2.2.0). What makes things complicated, is that the program has a GUI through Lazarus, and that

[fpc-pascal] Strange behaviour about class properties

2008-02-07 Thread Adrian Maier
Hello, I have the following class : FDK_record = class private TABLE: FDK_table; procedure SET_COLUMN( field_index: integer; field_value: string ); function GET_COLUMN( field_index: integer ): string ; procedure SET_COLUMN ( field_name: strin

Re: [fpc-pascal] strange "with" usage

2007-06-08 Thread memsom
> In a delphi app I came across the following syntax; > > with PropInfo^, PropType^^ do > > Which results in a "Error: Illegal qualifier". Has anyone an idea of what > is meant here and how to port that to FPC? I'm puzzled. with PropInfo^, PropType^^ do [...] is the same as with PropInfo^ d

Re: [fpc-pascal] strange "with" usage

2007-06-08 Thread Michael Van Canneyt
On Fri, 8 Jun 2007, [EMAIL PROTECTED] wrote: > In a delphi app I came across the following syntax; > > with PropInfo^, PropType^^ do > > Which results in a "Error: Illegal qualifier". Has anyone an idea of what > is meant here and how to port that to FPC? I'm puzzled. There is an extra (o

Re: [fpc-pascal] strange "with" usage

2007-06-08 Thread Vincent Snijders
[EMAIL PROTECTED] schreef: In a delphi app I came across the following syntax; with PropInfo^, PropType^^ do Which results in a "Error: Illegal qualifier". Has anyone an idea of what is meant here and how to port that to FPC? I'm puzzled. You have to check the definition carefully. IIRC f

[fpc-pascal] strange "with" usage

2007-06-08 Thread dhkblaszyk
In a delphi app I came across the following syntax; with PropInfo^, PropType^^ do Which results in a "Error: Illegal qualifier". Has anyone an idea of what is meant here and how to port that to FPC? I'm puzzled. Darius ___ fpc-pascal maillist -

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
On Fri, 07 Jul 2006 20:14:13 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > or compile your code in tp mode (fpc -h for help about command line > parameters). > > Vincent > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lis

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread Vincent Snijders
Marc Santhoff wrote: Am Freitag, den 07.07.2006, 14:40 -0300 schrieb John Coppens: PrevProc: ShTableLine = DummyShLine; Use PrevProc: ShTableLine = @DummyShLine; to tell fpc it's an address and no function call. or compile your code in tp mode (fpc -h for help about command line

Re: [fpc-pascal] Strange error message?

2006-07-07 Thread Marc Santhoff
Am Freitag, den 07.07.2006, 14:40 -0300 schrieb John Coppens: > PrevProc: ShTableLine = DummyShLine; Use PrevProc: ShTableLine = @DummyShLine; to tell fpc it's an address and no function call. Have fun, Marc ___ fpc-pascal maillist - fpc-

[fpc-pascal] Strange error message?

2006-07-07 Thread John Coppens
Hi... I was trying to compile some old TP code and got a strange error message: program test_reg; type ShTableLine= procedure(n: integer); procedure DummyShLine(Nr: integer); begin end; {DummyShLine} procedure UseIt; const PrevProc: ShTableLine = DummyShLine; begin end; be

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Jonas Maebe
On 9 jan 2006, at 17:18, Peter Rosendahl wrote: Thank you for your quick answer, how do I get the new version? Is the 2.0.2 available at this point the FIXED version, 2.0.2 is 2.0.2. It will not change. or do I have to recompile from some unstable source ? If you are using Windows, you c

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
Thank you for your quick answer, how do I get the new version? Is the 2.0.2 available at this point the FIXED version, or do I have to recompile from some unstable source ? /Peter JM> On 9 jan 2006, at 17:03, Peter Rosendahl wrote: >> With the EXACT same code compiled with different version

Re: [fpc-pascal] Strange!!

2006-01-09 Thread Jonas Maebe
On 9 jan 2006, at 17:03, Peter Rosendahl wrote: With the EXACT same code compiled with different versions of Freepascal, one reads the string[2] as 2 letter and the other version reads the entire line as string[2]. please can anyone explain this to and possible find a solution It is a bu

[fpc-pascal] Strange!!

2006-01-09 Thread Peter Rosendahl
Hello, I'm a beinner at Pascal, (Ok was 10years since I did someting serious) and have noticed a strange thing when compiling with 2.0.2 version. This is the part where I read a TEXT file with numbers. Procedure Openfile; { Module 1 } VAR Infile : Text; Filename : String[12];

Re: [fpc-pascal] strange compiler message

2005-11-07 Thread Michalis Kamburelis
[EMAIL PROTECTED] wrote: Hi, When I want to compile a unit, I get a strange error message: Warning: Comment level 2 found The lines involved do contain comments that use brackets {}. Anybody any ideas what might be causing the compiler messages?? "Comment level 2 found" is only a warning,

Re: [fpc-pascal] strange compiler message

2005-11-07 Thread L505
>When I want to compile a unit, I get a strange error message: > >Warning: Comment level 2 found Usually a simple mistake, such as an {open comment that you forgot to close.. they can be tricky to see with your eyes at times. -- L505 http://z505.com ___

  1   2   >