Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Antônio
function CharLength(const S: string; Index: Integer): Integer; begin Result := 1; assert((Index > 0) and (Index <= Length(S))); if SysLocale.FarEast and (S[Index] in LeadBytes) then Result := StrCharLength(PChar(S) + Index - 1); end; -- ___ Laz

Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Antônio
I have found the Delphi function, which does not work fine also. It is: function WrapText(const Line, BreakStr: string; const BreakChars: TSysCharSet; MaxCol: Integer): string; const QuoteChars = [, '"']; var Col, Pos: Integer; LinePos, LineLen: Integer; BreakLen, BreakPos: Integer;

Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Felipe Monteiro de Carvalho
You could try updating to the latest rev. We are already at rev27595 If it doesn't work, then I recommend Maxim's instructions. A bug report + test project For me wordwrap always worked. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Laza

Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Antônio
Lazarus 0.9.29 r24105 FPC 2.4.0 i386-win32-win32/win64 Windows XP Antônio 2010/10/7 Felipe Monteiro de Carvalho : > On Wed, Oct 6, 2010 at 2:09 PM, Antônio wrote: >> Is there any length limit to WrapText function? > > No there shouldn't be. > > Also, please always say which fpc, lazarus and oper

Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Felipe Monteiro de Carvalho
On Wed, Oct 6, 2010 at 2:09 PM, Antônio wrote: > Is there any length limit to WrapText function? No there shouldn't be. Also, please always say which fpc, lazarus and operating systems versions you are using in posts about problems. thanks, -- Felipe Monteiro de Carvalho -- __

Re: [Lazarus] Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode

2010-10-06 Thread zeljko
On Wednesday 06 October 2010 23:23, Mattias Gaertner wrote: > On Tue, 5 Oct 2010 23:43:35 +0100 > > Frank Church wrote: > > On 5 October 2010 03:58, Frank Church wrote: > > > I am trying to rebuild the IDE after installing new packages and I get > > > this error message repeatedly. > > > > > > /h

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd wrote: >waldo kitty wrote: > >> FWIW: there is probably a FORTRAN compiler for *nix... whether or not it >> can take your existing FORTRAN code and compile it to a library for *nix >> is another question... and, as noted above, there may not

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd wrote: >waldo kitty wrote: > >> FWIW: there is probably a FORTRAN compiler for *nix... whether or not it >> can take your existing FORTRAN code and compile it to a library for *nix >> is another question... and, as noted above, there may not

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:22:55 +, Mark Morgan Lloyd wrote: >Bo Berglund wrote: >> On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund >> wrote: >> >> I found this converter by googling (offered on several websites, but >> basically the same everywhere): >> http://sourceforge.net/projects/fortran2

Re: [Lazarus] Using 5dpo for serial comm...

2010-10-06 Thread Bo Berglund
On Thu, 07 Oct 2010 02:14:47 +, Mark Morgan Lloyd wrote: >> If I now close the port with my button and then try to open it again >> there is an exception that forces the program to end. > >Check port ownership, the groups the current user is in, and look at >dmesg output. > Hmm, what do you

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund wrote: I found this converter by googling (offered on several websites, but basically the same everywhere): http://sourceforge.net/projects/fortran2pascal/ but unfortunately it only handles Fortran77 code, whereas our code is Fo

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Mark Morgan Lloyd
waldo kitty wrote: FWIW: there is probably a FORTRAN compiler for *nix... whether or not it can take your existing FORTRAN code and compile it to a library for *nix is another question... and, as noted above, there may not be any real need to keep those routines in FORTRAN... it may be pretty

Re: [Lazarus] Using 5dpo for serial comm...

2010-10-06 Thread Mark Morgan Lloyd
Bo Berglund wrote: I'm sorry to bother you again but I can't grip the serial posrt handling at all I have installed 5dpo serial component in Lazarus on Ubuntu 10 (a virtual machine in VMWare, which uses the host COM1 serial port) and tried the following test: - Created a form with an Open/Cl

[Lazarus] Please change the default button in Project options dialog

2010-10-06 Thread Zaher Dirkey
Would you please change the default button in Project options dialog from "Test" to "Ok" button. Thanks in advance. -- Zaher Dirkey -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/la

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread waldo kitty
On 10/6/2010 17:34, Bo Berglund wrote: I have a question that might be OT here, but I will try nevertheless: i don't see anything OT about it but then again, i'm just a lowly user like you :P We have a Windows application written in Delphi for data analysis and display. It uses GLScene as th

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread David W Noon
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund wrote about [Lazarus] Converting Fortran to FPC?: [snip] > So my question now is if there is any experience of either porting > Fortran code to FPC or of compiling Fortran code for a Windows DLL > into the corresponding function in Linux? I doubt yo

Re: [Lazarus] Bug in double click to open de fields editor

2010-10-06 Thread Maxim Ganetsky
07.10.2010 0:26, silvioprog пишет: Hi, To reproduce the error, paste some dataset in a datamodule (or form), and try double click to open the fields editor. The fields editor opens and closes abruptly. With right click in the component and using the "Edit Fields" option, the fields editor open

Re: [Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund wrote: I found this converter by googling (offered on several websites, but basically the same everywhere): http://sourceforge.net/projects/fortran2pascal/ but unfortunately it only handles Fortran77 code, whereas our code is Fortran90 syntax. Tried

[Lazarus] Converting Fortran to FPC?

2010-10-06 Thread Bo Berglund
I have a question that might be OT here, but I will try nevertheless: We have a Windows application written in Delphi for data analysis and display. It uses GLScene as the data rendering engine and it uses 3 Fortran DLL:s to do the number crunching. I want to port the whole thing to Lazarus/FPC a

Re: [Lazarus] Error: Can't call the resource compiler "/usr/bin/fpcres", switching to external mode

2010-10-06 Thread Mattias Gaertner
On Tue, 5 Oct 2010 23:43:35 +0100 Frank Church wrote: > On 5 October 2010 03:58, Frank Church wrote: > > > I am trying to rebuild the IDE after installing new packages and I get this > > error message repeatedly. > > > > /home/rchurch/.programs/lazarus/0.9.29/lazarus_0929_27548/share/lazarus/id

[Lazarus] Using 5dpo for serial comm...

2010-10-06 Thread Bo Berglund
I'm sorry to bother you again but I can't grip the serial posrt handling at all I have installed 5dpo serial component in Lazarus on Ubuntu 10 (a virtual machine in VMWare, which uses the host COM1 serial port) and tried the following test: - Created a form with an Open/Close button, an edit b

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Felipe Monteiro de Carvalho
It was to Leonardo M. Ramé. I had recently updated ImageMagick and I vaguelly remembered having fixed something similar, but it seams that it wasn't exactly this fix. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.free

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread silvioprog
Thanks to all. ;) 2010/10/6 Sergei Gorelkin > Sergei Gorelkin wrote: > >> Marcos Douglas wrote: >> >> Well, the problem was fixed. >>> Bug reporter: http://bugs.freepascal.org/view.php?id=16884 >>> Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 >>> >>> Unfortuately, not. Issue #1688

Re: [Lazarus] WrapText length limit?

2010-10-06 Thread Maxim Ganetsky
06.10.2010 16:09, Antônio пишет: Is there any length limit to WrapText function? I have used it to a 3 paragraphs text and have got an error. The final part of the text was not wrapped. Please make a bug report and attach test project to it. -- Best regards, Maxim Ganetsky ma

[Lazarus] Bug in double click to open de fields editor

2010-10-06 Thread silvioprog
Hi, To reproduce the error, paste some dataset in a datamodule (or form), and try double click to open the fields editor. The fields editor opens and closes abruptly. With right click in the component and using the "Edit Fields" option, the fields editor open normaly. Again, the error appears on

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Marcos Douglas
On Wed, Oct 6, 2010 at 3:24 PM, Sergei Gorelkin wrote: > Marcos Douglas wrote: > >> Well, the problem was fixed. >> Bug reporter: http://bugs.freepascal.org/view.php?id=16884 >> Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 >> > Unfortuately, not. Issue #16884 was a race condition whic

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Sergei Gorelkin wrote: Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing b

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Marcos Douglas wrote: Well, the problem was fixed. Bug reporter: http://bugs.freepascal.org/view.php?id=16884 Solution: http://cia.vc/stats/project/fpc/.message/b8ef19 Unfortuately, not. Issue #16884 was a race condition which was causing the thread to start executing before it was completely

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Marcos Douglas
On Wed, Oct 6, 2010 at 11:23 AM, Sergei Gorelkin wrote: > Tobias Giesen пишет: >> >> Hi, >> >> I think you shouldn't create suspended threads anyway. The Windows >> API docs say that suspend/resume is only for debuggers. To synchronize >> threads or to delay the starting of a thread you should use

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread waldo kitty
On 10/6/2010 08:44, Felipe Monteiro de Carvalho wrote: Did you download the latest code from svn? If not, then you should always do that before proposing a patch. who is this reply to? with no quote, it is like a lost spirit caught between the physical and spiritual realms... --

Re: [Lazarus] Using Lazarus on Embedded Linux?

2010-10-06 Thread Flávio Etrusco
2010/10/6 Michael Schnell > On 09/27/2010 01:29 PM, Henry Vermaak wrote: > > > I'd consider disks which firmware can't handle power failure to be broken. > Luckily this hasn't happened to me (yet, heh). > > I found a comment on this in another forum: > > > > You can use i

Re: [Lazarus] StringGrid header row is always blank at runtime?

2010-10-06 Thread Jesus Reyes
--- El mié 6-oct-10, Graeme Geldenhuys escribió: > > Clearing the columns also looses the rowcount. Is this a > bug too? > Initially it supposed to work that way so in this case grid's mental lapses are not a bug, but I'm open to change it if people need it. > > I tried your suggested pat

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Sergei Gorelkin
Tobias Giesen пишет: Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you should use events, WaitForMultipleObjects etc. Creating a suspended TThread is a d

Re: [Lazarus] Memory leak in TThread class

2010-10-06 Thread Tobias Giesen
Hi, I think you shouldn't create suspended threads anyway. The Windows API docs say that suspend/resume is only for debuggers. To synchronize threads or to delay the starting of a thread you should use events, WaitForMultipleObjects etc. Cheers, Tobias -- __

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Felipe Monteiro de Carvalho
Thanks, applied in rev16088 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Leonardo M . Ramé
On 2010-10-06 14:44:25 +0200, Felipe Monteiro de Carvalho wrote: > Did you download the latest code from svn? If not, then you should > always do that before proposing a patch. > > -- > Felipe Monteiro de Carvalho > > -- Yes, as I allways do. -- Leonardo M. Ramé http://leonardorame.blogspot.c

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Felipe Monteiro de Carvalho
Did you download the latest code from svn? If not, then you should always do that before proposing a patch. -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/list

Re: [Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Leonardo M . Ramé
On 2010-10-06 09:31:32 -0300, Leonardo M. Ramé wrote: > Hi, I'm trying to compile the ImageMagick FPC pakgage from > /packages/imagemagick/examples on Ubuntu 10.04 and found it looks for the > library > libWand, but this library is now called libMagickWand. Does anyone > tested if the package stil

[Lazarus] ImageMagick on Ubuntu 10.04

2010-10-06 Thread Leonardo M . Ramé
Hi, I'm trying to compile the ImageMagick FPC pakgage from /packages/imagemagick/examples on Ubuntu 10.04 and found it looks for the library libWand, but this library is now called libMagickWand. Does anyone tested if the package still works with the new library?. Thanks in advance, -- Leonardo

[Lazarus] WrapText length limit?

2010-10-06 Thread Antônio
Is there any length limit to WrapText function? I have used it to a 3 paragraphs text and have got an error. The final part of the text was not wrapped. Antônio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepa

Re: [Lazarus] Using Lazarus on Embedded Linux?

2010-10-06 Thread Michael Schnell
On 09/27/2010 01:29 PM, Henry Vermaak wrote: I'd consider disks which firmware can't handle power failure to be broken.  Luckily this hasn't happened to me (yet, heh). I found a comment on this in another forum: > You can use in

Re: [Lazarus] Non trivial fcl-web demos?

2010-10-06 Thread Frank Church
On 6 October 2010 10:29, Joost van der Sluis wrote: > On Mon, 2010-09-20 at 20:15 +0100, Frank Church wrote: > > > > Are there any non trivial fcl-web demos I can download to try out? > > Does there exist something like a 'non-trivial website demo'? Most > websites out there are trivial? > > May

Re: [Lazarus] Non trivial fcl-web demos?

2010-10-06 Thread Graeme Geldenhuys
On 6 October 2010 11:44, Graeme Geldenhuys wrote: > > Did you know you spelled "Free Pascal" wrong it the header banner? :-) >  Free Pascal is two words, not one. This page too in the content (but now you got the header image correct). http://www.lazarussupport.com/lazarus/Compiler?section

Re: [Lazarus] Non trivial fcl-web demos?

2010-10-06 Thread Graeme Geldenhuys
On 6 October 2010 11:29, Joost van der Sluis wrote: > > Maybe somewhat late, but maybe look at http://www.lazarussupport.com. Did you know you spelled "Free Pascal" wrong it the header banner? :-) Free Pascal is two words, not one. -- Regards,   - Graeme - __

Re: [Lazarus] Non trivial fcl-web demos?

2010-10-06 Thread Joost van der Sluis
On Mon, 2010-09-20 at 20:15 +0100, Frank Church wrote: > > Are there any non trivial fcl-web demos I can download to try out? Does there exist something like a 'non-trivial website demo'? Most websites out there are trivial? Maybe somewhat late, but maybe look at http://www.lazarussupport.com.