Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-04 Thread Graeme Geldenhuys
Hi, John Lee made the suggestion that an unofficial 64-bit Windows compiler archive be made available - for those people like me. You can now download it from the Free Pascal FTP site: ftp://ftp.freepascal.org/fpc/dist/2.6.2/x86_64-win/ [ readme.txt ]-- 64 bit win fpc

Re: [fpc-pascal] How to detect if a project is a simple program or a application?

2013-05-04 Thread João Marcelo Vaz
Hi Silvio, I'm trying to detect if a project is a simple program or a application. Please download a small test here: https://www.dropbox.com/s/w6a9gb4b9hnjit5/prova.zip On Windows it works fine, but on Linux not. This behavior was discussed on this thread:

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
On Sat, May 4, 2013 at 8:47 AM, silvioprog silviop...@gmail.com wrote: repeat if Socket.CanRead(timeout) then begin insock:=Socket.Accept; if insock-1 then //start working with insock else //deal with error end; until ThreadTerminated; Ludo Thank

[fpc-pascal] Porting C variable declaration

2013-05-04 Thread Darius Blaszyk
Hi, I came across a pointer variable in C which also get's assigned integer values. Anyone has an idea how to port this in FPC? The variable is declared as: static void *x=0; Later on it get's assigned as this: x= 1; Regards, Darius ___

Re: [fpc-pascal] Porting C variable declaration

2013-05-04 Thread Jonas Maebe
On 04 May 2013, at 10:25, Darius Blaszyk wrote: I came across a pointer variable in C which also get's assigned integer values. Anyone has an idea how to port this in FPC? The variable is declared as: static void *x=0; Later on it get's assigned as this: x= 1; var x: pointer;

[fpc-pascal] Compileability of target WinCE restored

2013-05-04 Thread Sven Barth
Hello together! I've now restored the possiblity to compile arm-wince and i386-wince in revision 24420. Sorry for the long time of broken compilation and the resulting inconvenience. I'm planning to setup automated test suite runs for arm-wince to avoid such problems in the future. Regards,

Re: [fpc-pascal] Compileability of target WinCE restored

2013-05-04 Thread Zaher Dirkey
Did tried my modification in the bug tracker? On Sat, May 4, 2013 at 2:09 PM, Sven Barth pascaldra...@googlemail.comwrote: Hello together! I've now restored the possiblity to compile arm-wince and i386-wince in revision 24420. Sorry for the long time of broken compilation and the resulting

[fpc-pascal] fpc does not invoke correct compiler

2013-05-04 Thread denisgolovan
Hi all I experience inconsistency using fpc wrapper. See below. When I invoke fpc using command line fpc -Px86_64 ... it correctly executes cross-compiler (ppcrossx64) under Linux 32 bit. But if I try to push -Px86_64 into a separate file (opts.cfg) and run with fpc @opts.cfg it just executes

Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-04 Thread Andrew Brunner
I wanted to mention that Lazarus comes with a 64bit FPC 2.6.2 from binaries... Guys, Graeme is well meaning here. I agree that most of us first go to x64 downloads for binaries. Thinking 32 to 64 or reverse is onerous on typical end users. I need 64bit FPC binaries too. Presently I

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
On Sat, May 4, 2013 at 8:45 AM, Ludo Brands ludo.bra...@free.fr wrote: Take a look at TBlockSocket.InternalCanRead and TBlockSocket.CanRead in synapse on how to set up select correctly. Then do something like repeat if Socket.CanRead(timeout) then begin insock:=Socket.Accept;

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Ludo Brands
On 05/04/2013 04:31 PM, Zaher Dirkey wrote: ​I have put Select before Accept and it doesn't work, it blocked forever ​ without accepting any connection. Accept function who block the thread and get new connection. Can you show the code you use? You tested on Windows, linux, Mac, ...?

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
On Sat, May 4, 2013 at 5:40 PM, Ludo Brands ludo.bra...@free.fr wrote: Can you show the code you use? You tested on Windows, linux, Mac, ...? ​Only on Windows XP source here https://sourceforge.net/p/minilib/source/ci/master/tree/socket/source/mnServers.pas about line 323 i changed it to

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
But mnServer is works with me for a years, and there is mnHttpServer demo and it is work fine too without Select before Accept https://sourceforge.net/p/minilib/source/ci/master/tree/socket/demo/lazarus/ On Sat, May 4, 2013 at 6:05 PM, Zaher Dirkey parm...@gmail.com wrote: On Sat, May 4, 2013

Re: [fpc-pascal] Win64 release of FPC 2.6.2 missing

2013-05-04 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: Guys, Graeme is well meaning here. I agree that most of us first go to x64 downloads for binaries. Thinking 32 to 64 or reverse is onerous on typical end users. I need 64bit FPC binaries too. Presently I install the Lazarus to get 64bit

Re: [fpc-pascal] fpc does not invoke correct compiler

2013-05-04 Thread Marco van de Voort
In our previous episode, denisgolovan said: I experience inconsistency using fpc wrapper. See below. When I invoke fpc using command line fpc -Px86_64 ... it correctly executes cross-compiler (ppcrossx64) under Linux 32 bit. But if I try to push -Px86_64 into a separate file (opts.cfg)

Re: [fpc-pascal] Problems with ImageMagick Win64

2013-05-04 Thread Andrew Brunner
http://bugs.freepascal.org/view.php?id=24346 Can someone please apply patch? Thanks. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpGUI Toolkit v1.0 release for FPC 2.6.2

2013-05-04 Thread Paul Breneman
There is a new i386-win32 release with FPC 2.6.2 and fpGUI 1.0 here: http://www.turbocontrol.com/easyfpgui.htm Hopefully the i386-linux and arm-linux releases will be updated soon. -- Regards, Paul Breneman www.dbReplication.com - VCL database replication components www.TurboControl.com -

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Ludo Brands
On 05/04/2013 05:05 PM, Zaher Dirkey wrote: On Sat, May 4, 2013 at 5:40 PM, Ludo Brands ludo.bra...@free.fr mailto:ludo.bra...@free.fr wrote: Can you show the code you use? You tested on Windows, linux, Mac, ...? ​Only on Windows XP This is a small test program that works for

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread silvioprog
2013/5/4 Zaher Dirkey parm...@gmail.com On Sat, May 4, 2013 at 8:47 AM, silvioprog silviop...@gmail.com wrote: repeat if Socket.CanRead(timeout) then begin insock:=Socket.Accept; if insock-1 then //start working with insock else //deal with error end;

Re:[fpc-pascal] fpc does not invoke correct compiler

2013-05-04 Thread denisgolovan
Ok, I see. Thanks for the explanation. Regards, Denis Golovan ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread silvioprog
2013/5/4 Ludo Brands ludo.bra...@free.fr On 05/04/2013 05:05 PM, Zaher Dirkey wrote: On Sat, May 4, 2013 at 5:40 PM, Ludo Brands ludo.bra...@free.fr mailto:ludo.bra...@free.fr wrote: Can you show the code you use? You tested on Windows, linux, Mac, ...? Only on Windows XP

Re: [fpc-pascal] How to detect if a project is a simple program or a application?

2013-05-04 Thread silvioprog
2013/5/4 João Marcelo Vaz jms...@gmail.com Hi Silvio, I'm trying to detect if a project is a simple program or a application. Please download a small test here: https://www.dropbox.com/s/w6a9gb4b9hnjit5/prova.zip On Windows it works fine, but on Linux not. This behavior was discussed

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
Hmm there is diffrents Yours res:=select(sock+1,@readfds,@writefds,@exceptfds,@tv); Mine c := WinSock2.select(0, PSetRead, PSetWrite, nil, @TimeVal); 0 here in mine, in yours sock+1 (FHandle+1 in mine). I will take more testing. On Sat, May 4, 2013 at 8:01 PM, Ludo Brands ludo.bra...@free.fr

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Ludo Brands
On 05/04/2013 08:00 PM, Zaher Dirkey wrote: Hmm there is diffrents Yours res:=select(sock+1,@readfds,@writefds,@exceptfds,@tv); Mine c := WinSock2.select(0, PSetRead, PSetWrite, nil, @TimeVal); 0 here in mine, in yours sock+1 (FHandle+1 in mine). I will take more testing. According

Re: [fpc-pascal] Porting C variable declaration

2013-05-04 Thread Darius Blaszyk
Thanks Jonas! Jonas Maebe schreef op 4 mei '13: On 04 May 2013, at 10:25, Darius Blaszyk wrote: I came across a pointer variable in C which also get's assigned integer values. Anyone has an idea how to port this in FPC? The variable is declared as: static void *x=0; Later on it get's

Re: [fpc-pascal] FPC cross compilation error: cannot find -lgcc

2013-05-04 Thread patspiper
On 12/04/13 00:11, patspiper wrote: On 12/04/13 00:08, patspiper wrote: On 11/04/13 23:25, Marco van de Voort wrote: In our previous episode, patspiper said: Cross compilation from Ubuntu 32 bit to Win32, WIn64, and Linux 64 works well with FPC 2.6.0. With FPC 2.7.1, any cross compilation

Re: [fpc-pascal] How to close TInetServer without except?

2013-05-04 Thread Zaher Dirkey
On Sat, May 4, 2013 at 9:42 PM, Ludo Brands ludo.bra...@free.fr wrote: However, in your code you do if (c = 0) or (c = SOCKET_ERROR) then begin Error; which is not correct. c=0 is the result of select returning after a timeout. It is not an error. The fact that if

Re: [fpc-pascal] Compileability of target WinCE restored

2013-05-04 Thread Sven Barth
On 04.05.2013 13:28, Zaher Dirkey wrote: Did tried my modification in the bug tracker? Do you mean regarding the Canvas problems? Sorry, not yet... :( Regards, Sven ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] CoreFoundation Freepascal MAC OSX

2013-05-04 Thread m...@rpzdesign.com
Anybody have any success with the included units for CoreFoundation on Mac OSX. I was trying to use CFSetGetCount( ) function call, it is clearly defined in CFSet.pas and yet the linker error is: Identifier Not Found CFSetGetCount But magically, the constants from CFBase.pas compile OK, so