Re: [fpc-pascal] Small OSX GUI apps

2008-09-17 Thread Jonas Maebe
On 17 Sep 2008, at 01:58, Jon wrote: if you're coming from Win32 programming, you may want to read this: http://developer.apple.com/documentation/Porting/Conceptual/win32porting/win32porting.html Interesting document. Do I have to install Interface Builder and XCode to use FPC? You have

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread [EMAIL PROTECTED]
Hi! I have a similar problem when using threads with synchronize... And I understand that threads in FPC/Lazarus under Linux/BSD works like this: When you call synchronize from inside of you thread, this sends a message to application thread with the procedure that will be used to synchronize

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Graeme Geldenhuys
On 9/17/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When you call synchronize from inside of you thread, this sends a message to application thread with the procedure that will be used to synchronize AND WAIT FOR a response from application thread of the execution of sync procedure. BUT

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Henry Vermaak
On 17/09/2008, Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 9/17/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: When you call synchronize from inside of you thread, this sends a message to application thread with the procedure that will be used to synchronize AND WAIT FOR a response from

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Graeme Geldenhuys
On 9/17/08, Henry Vermaak [EMAIL PROTECTED] wrote: Delphi has code in its WaitFor function that prevents this deadlock from occuring. They basically wait on the SyncEvent and the handle of the thread, calling CheckSynchonize when the SyncEvent triggers. I'm not sure if this is possible

Re: [fpc-pascal] Small OSX GUI apps

2008-09-17 Thread Felipe Monteiro de Carvalho
On Tue, Sep 16, 2008 at 9:58 PM, Jon [EMAIL PROTECTED] wrote: Depends on who you ask. But Apple has made it clear that they want to move forward primarily with Cocoa. How good is the FPC for each? Is there a separate install for both? Carbon is stable. Cocoa support is experimental. It needs

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Michael Van Canneyt
On Wed, 17 Sep 2008, Graeme Geldenhuys wrote: On 9/17/08, Henry Vermaak [EMAIL PROTECTED] wrote: Delphi has code in its WaitFor function that prevents this deadlock from occuring. They basically wait on the SyncEvent and the handle of the thread, calling CheckSynchonize when the

Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Vincent Snijders
Paul schreef: Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe If I try to compile the project, this error pops up: FATAL: Can't find unit interfaces used by project 1 in project file at line: uses

Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Paul
- Original Message - From: Vincent Snijders [EMAIL PROTECTED] To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Wednesday, September 17, 2008 2:16 PM Subject: Re: [fpc-pascal] Can't resize form in WinCE No idea. Please paste the compiler options in an email:

Re: [fpc-pascal] TThread.WaitFor not returning?

2008-09-17 Thread Graeme Geldenhuys
On 9/17/08, Michael Van Canneyt [EMAIL PROTECTED] wrote: CheckSynchronize must be called by the main thread on a regular basis in the event loop, so this is normal. CheckSynchronize is called in the main eventloop. This happens on application termination. The gLog singleton is freed in the

Re: [fpc-pascal] Small OSX GUI apps

2008-09-17 Thread Ingemar Ragnemalm
Jon [EMAIL PROTECTED] wrote: Thank you for your replies Jonas if you're coming from Win32 programming, you may want to read this: http://developer.apple.com/documentation/Porting/Conceptual/win32porting/win32porting.html Interesting document. Do I have to install Interface Builder

Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Mattias Gaertner
On Wed, 17 Sep 2008 09:30:16 +0200 Paul [EMAIL PROTECTED] wrote: Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe If I try to compile the project, this error pops up: FATAL: Can't find unit

Re: [fpc-pascal] BLOCKWRITE-restrictions in writing .bmp-file?

2008-09-17 Thread Пётр Косаревский
IF (((NDum) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); IF (((NDum + 1) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); IF (((NDum + 2) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); 1. If NDum = 4k (e.g. 12=4*3), you write two times; if NDum

Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Vincent Snijders
Mattias Gaertner schreef: On Wed, 17 Sep 2008 09:30:16 +0200 Paul [EMAIL PROTECTED] wrote: Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe Lazarus-0.9.25-16602-fpc-2.2.2-20080916-cross-arm-wince-win32.exe My guess: you forgot to cross compile the LCL. Tools /

Re: [fpc-pascal] Can't resize form in WinCE

2008-09-17 Thread Mattias Gaertner
On Wed, 17 Sep 2008 20:24:27 +0200 Vincent Snijders [EMAIL PROTECTED] wrote: Mattias Gaertner schreef: On Wed, 17 Sep 2008 09:30:16 +0200 Paul [EMAIL PROTECTED] wrote: Installed these packages Lazarus-0.9.25-16602-fpc-2.2.2-20080916-win32.exe

Re: [fpc-pascal] BLOCKWRITE-restrictions in writing .bmp-file?

2008-09-17 Thread Arjan van Dijk
IF (((NDum) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); IF (((NDum + 1) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); IF (((NDum + 2) MOD 4)0) THEN BLOCKWRITE(OutFile,Pixel,SIZEOF(Pixel)); 1. If NDum = 4k (e.g. 12=4*3), you write two times;

Re: [fpc-pascal] Help converting h-file

2008-09-17 Thread Koenraad Lelong
Henry Vermaak schreef: 2008/9/15 Koenraad Lelong : ... I think I'm missing some file to link in, but I think I included every seems like it's not finding libc? henry Thanks, but I do have -Fl/opt/arcom/arm-linux/lib/* in the script and /opt/arcom/arm-linux/lib contains a libc.a,

Re: [fpc-pascal] Help converting h-file

2008-09-17 Thread Henry Vermaak
On 17/09/2008, Koenraad Lelong [EMAIL PROTECTED] wrote: Thanks, but I do have -Fl/opt/arcom/arm-linux/lib/* in the script and /opt/arcom/arm-linux/lib contains a libc.a, libc.so, libc.so.6 and a libc-2.3.3.so. I tried with -Fl/opt/arcom/arm-linux/lib with the same result. libc.a contains

[fpc-pascal] FreeBSD/x86_64 snapshots

2008-09-17 Thread Marco van de Voort
Hello, The first snapshots of x86_64-FreeBSD are rolling in: a 26MB snapshot is available at (all binaries, just needs a fpc.cfg) http://www.stack.nl/~marcov/snapshot-freebsd-x86_64-r11798.tar.bz2 Problems: - I had some odd problems on a 7.1.1-PRERELEASE2 machine. Looked like a binutils (AR)