Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Ludo Brands
On 05/09/2013 05:19 AM, Bruce Tulloch wrote: > > This tells me that the test at the top of fpc_AnsiStr_Decr_Ref: > > cmpl $0,(%eax) > jne .Ldecr_ref_continue > ret > .Ldecr_ref_continue: > > passed (i.e. (%eax) was NOT nil) but sometime during the execution of > the follo

[fpc-pascal] ImageMagick and Static Linking

2013-05-08 Thread Andrew Brunner
Image Magick comes with static libraries and dynamic libraries. Is there any way to make ImageMagick unit support the *.lib files? I'm trying to avoid having to distribute the ImageMagick dlls. Thanks, -- Andrew Brunner Aurawin LLC 15843 Garrison Circle Austin, TX 78717 https://aurawin.com Au

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
So here's some more diagnostic at the point of the SEGV: (gdb) disass Dump of assembler code for function _$SYSTEM$_Ll1637: => 0x0118ace1 <+0>: cmpl $0x0,(%edx) End of assembler dump. (gdb) i reg eax0xb6c77158 -1228443304 ecx0xb6c76c04 -1228444668 edx

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
I've not managed to trap it again, but based on the information I have from the last time it occurred I can say the error happened here: --- a/rtl/i386/i386.inc +++ b/rtl/i386/i386.inc @@ -1523,7 +1523,7 @@ movl(%eax),%edx subl$8,%edx // [102] If l^<0 then exit;

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
Michael, thanks for your feedback. One thing that confuses me in light of Jonas' reply, if what you say is correct (that local variables that have just come into scope are not guaranteed to be nil) then assignment of Result := ''; at the first line of foo may arbitrarily SEGV because fpc_AnsiStr_D

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Bruce Tulloch
Thanks Jonas, that confirms what I suspected. Next time I trap an instance of this (rare) fault I will inspect exactly which CPU instruction raised the SEGV inside fpc_AnsiStr_Decr_Ref in search of a source of memory corruption. Bruce. On Wed, May 8, 2013 at 11:49 PM, Jonas Maebe wrote: > > On

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-08 Thread waldo kitty
On 5/8/2013 17:50, Sven Barth wrote: On 08.05.2013 22:27, waldo kitty wrote: On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to us

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-08 Thread Sven Barth
On 08.05.2013 22:27, waldo kitty wrote: On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override .

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-08 Thread waldo kitty
On 5/8/2013 12:22, Mark Morgan Lloyd wrote: waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop. perhaps the message is too long

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread waldo kitty
On 5/8/2013 04:34, Fred van Stappen wrote: >The point is nevertheless that you answered to an existing thread with a >completely new/unrelated question. OK, my fault, i wanted to answer to my own tread an that answer appears like a new one ( i used ( RE: ... ) in place of (Re: ...). ). that

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread patspiper
On 08/05/13 16:45, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: svn) and probably hasn't worked correctly in 10 years or so (if it ever worked really correctly, given that adding -Xd to OPT never never was correct). It was the best that could be done then. The best that

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread silvioprog
2013/5/8 Zaher Dirkey > Maybe it use the thread again, try many requests if there is more threads? > It keep only one thread. :) Sorry Michael, Zaher and friends. A friend tested it in Delphi on Window XP and it's same to Free Pascal. -- Silvio Clécio My public projects - github.com/silviopro

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Zaher Dirkey
Maybe it use the thread again, try many requests if there is more threads? On Wed, May 8, 2013 at 4:35 PM, silvioprog wrote: > 2013/5/8 Michael Van Canneyt > >> On Wed, 8 May 2013, silvioprog wrote: >> >>> Oops, >>> >>> 2013/5/8 silvioprog >>> [...] >>> uses >>> resolve, winsock; >>>

Re: [fpc-pascal] systemh.inc(117, 16) Error: Duplicate identifier "FarPointer"

2013-05-08 Thread Mark Morgan Lloyd
waldo kitty wrote: You are trying to build with 2.7.1. If you are absolutely sure that the current compiler is built from the exact same version/revision, you can try to use OVERRIDEVERSIONCHECK=1 to override . Stop. perhaps the message is too long and too informative? maybe something like

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 08:13, Bruce Tulloch wrote: After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to fpc_AnsiStr_Decr_Ref (the string who's reference is to be decremented) is nil (i.

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > >> svn) and probably hasn't worked correctly in 10 years or so (if it > >> ever worked really correctly, given that adding -Xd to OPT never > >> never > >> was correct). > > > > It was the best that could be done then. > > The best that could have bee

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread silvioprog
2013/5/8 Michael Van Canneyt > On Wed, 8 May 2013, silvioprog wrote: > >> Oops, >> >> 2013/5/8 silvioprog >> [...] >> uses >> resolve, winsock; >> >> procedure TForm1.Button1Click(Sender: TObject); >> var >> FHostEntry: PHostEnt; >> begin >> FHostEntry := gethostbyname('www.google.co

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 14:57, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: That script probably hasn't been used for ages. It's probably best to remove it in order to prevent confusion like you are encountering. Please don't, since that just makes it hard to add anythin

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > >> That script probably hasn't been used for ages. It's probably best to > >> remove it in order to prevent confusion like you are encountering. > > > > Please don't, since that just makes it hard to add anything. > > I don't understand what you mean by

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Jonas Maebe
On 08 May 2013, at 14:01, Marco van de Voort wrote: In our previous episode, Jonas Maebe said: I also don't know where the "-Xd" comes from in the above compiler invocation. If you added that yourself, remove it again. I inherited it from the buildcrosssnapshot script found in fpcbuild-2.

Re: [fpc-pascal] Cross-building on from Linux/i386 to Linux/x86-64

2013-05-08 Thread Marco van de Voort
In our previous episode, Jonas Maebe said: > >> I also don't know where the "-Xd" comes from in the above compiler > >> invocation. If you added that yourself, remove it again. > > > > I inherited it from the buildcrosssnapshot script found in > > fpcbuild-2.6.2.zip, and never even thought abou

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] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
>The C headers are documented here (I don't know where they are located though): >https://developer.gnome.org/at-spi-cspi/stable/ >Also useable might be this: >http://accessibility.kde.org/developer/atk.php#coreclasses Many thanks Sven, gonna study it...

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
> The usual way to do this is to use the h2pas tool. > > I normally start with > > Preprocess ugly macros > > gcc -E /path/to/header/file > header_processed.c > > and then > > h2pas header_processed.c > > (preferably with some options) > > After that I add missing defines (constants and the

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:46, schrieb Fred van Stappen: > To my knowledge, you are the first to ask about it. > > Michael. OK, guys, i apologize. It was not the wright way to do things moving. Now, if you can be cooler, i asked that because, like you, i was very surprised that some blind developers says

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Fred van Stappen wrote: > To my knowledge, you are the first to ask about it. > > Michael. OK, guys, i apologize. It was not the wright way to do things moving. Now, if you can be cooler, i asked that because, like you, i was very surprised that some blind developers says

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
> To my knowledge, you are the first to ask about it. > > Michael. OK, guys, i apologize. It was not the wright way to do things moving. Now, if you can be cooler, i asked that because, like you, i was very surprised that some blind developers says me that they really want to use fpc but nothing

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:34, schrieb Fred van Stappen: >The point is nevertheless that you answered to an existing thread with a >completely new/unrelated question. OK, my fault, i wanted to answer to my own tread an that answer appears like a new one ( i used ( RE: ... ) in place of (Re: ...). ).

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
>The point is nevertheless that you answered to an existing thread with a >completely new/unrelated question. OK, my fault, i wanted to answer to my own tread an that answer appears like a new one ( i used ( RE: ... ) in place of (Re: ...). ). __

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:24, schrieb Fred van Stappen: > > Except to tell the writer about his/her indecency :) Yep, sorry but with my indecent "PS:...", already 5 answers !... So the question must be : "PS : Why must i be indecent to have some answers..." Thanks and sorry to disturb you. The point i

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
> > Except to tell the writer about his/her indecency :) Yep, sorry but with my indecent "PS:...", already 5 answers !... So the question must be : "PS : Why must i be indecent to have some answers..." Thanks and sorry to disturb you. _

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Schnell
On 05/08/2013 10:17 AM, Sven Barth wrote: Except to tell the writer about his/her indecency :) ... if (s)he insists :-) -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:16, schrieb Michael Schnell: On 05/08/2013 10:07 AM, Fred van Stappen wrote: Toc, toc, toc, is there anybody here ? You hitchhiked a running forum thread. Nobody likes to answer on such indecent posts. Except to tell the writer about his/her indecency :) Regards, Sven _

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Sven Barth
Am 08.05.2013 10:07, schrieb Fred van Stappen: >Hello. >I want add access to AT-SPI interface. > http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface >Does it exist a pascal header for that ?

Re: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Schnell
On 05/08/2013 10:07 AM, Fred van Stappen wrote: Toc, toc, toc, is there anybody here ? You hitchhiked a running forum thread. Nobody likes to answer on such indecent posts. -Michael ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Fred van Stappen wrote: >Hello. >I want add access to AT-SPI interface. > http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface >Does it exist a pascal header for that ? >Does anybody know how to do it, via fpc, not lcl ? >Thanks. Toc, toc, toc, is

RE: [fpc-pascal] AT-SPI fpc compatible ?

2013-05-08 Thread Fred van Stappen
>Hello. >I want add access to AT-SPI interface. > http://en.wikipedia.org/wiki/Assistive_Technology_Service_Provider_Interface >Does it exist a pascal header for that ? >Does anybody know how to do it, via fpc, not lcl ? >Thanks. Toc, toc, toc, is there anybody here ? Nobody have some experience

Re: [fpc-pascal] FPC 2.6.2 throws SEGV in fpc_AnsiStr_Decr_Ref(). How is this possible?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, Bruce Tulloch wrote:  After a random but very long period of time (i.e. very many successful calls) I get a SEGV in the built-in function fpc_AnsiStr_Decr_Ref. GDB reports the argument to fpc_AnsiStr_Decr_Ref (the string who's reference is to be decremented) is nil (i.e.

Re: [fpc-pascal] Re: Is THostResolver creating a thread?

2013-05-08 Thread Michael Van Canneyt
On Wed, 8 May 2013, silvioprog wrote: Oops, 2013/5/8 silvioprog [...] uses   resolve, winsock; procedure TForm1.Button1Click(Sender: TObject); var   FHostEntry: PHostEnt; begin   FHostEntry := gethostbyname('www.google.com.br'); end; ... gethostbyname('www.google.com') ... The res