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 2

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: http://www.mail-archive.c

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 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 > > >

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

2013-05-04 Thread Jonas Maebe
On 03 May 2013, at 23:21, Graeme Geldenhuys wrote: > 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-w

[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 ___ fpc-pas

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: pointe

[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 wrote: > 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 pla

[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 execu

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 instal

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 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; > if insock<

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 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 similar to this, but no

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 wrote: > > On Sat, May 4, 2013 at 5:40 PM, Lud

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 > 6

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.

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 - Hard

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 > 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 me on XP an

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

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

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 > On 05/04/2013 05:05 PM, Zaher Dirkey wrote: > > > > On Sat, May 4, 2013 at 5:40 PM, Ludo Brands > > wrote: > > > > Can you show the code you use? You tested on Windows, linux, Mac, > ...? > > > > > > Only on Windows XP > > > > > This is a sm

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 > 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 wrote: > On 05/04/201

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. > > Ac

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 i

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 yi

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 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 Socket.Select(1, sl

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 http://lists.freepascal.

[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, s