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

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

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Felipe Monteiro de Carvalho
On Wed, Oct 6, 2010 at 2:09 PM, Antônio antoniog12...@gmail.com 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] WrapText length limit?

2010-10-07 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 felipemonteiro.carva...@gmail.com: On Wed, Oct 6, 2010 at 2:09 PM, Antônio antoniog12...@gmail.com wrote: Is there any length limit to WrapText function? No there shouldn't be.

Re: [Lazarus] WrapText length limit?

2010-10-07 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

Re: [Lazarus] WrapText length limit?

2010-10-07 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-07 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; -- ___

Re: [Lazarus] Memory leak in TThread class

2010-10-07 Thread Luca Olivetti
En/na Sergei Gorelkin ha escrit: 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

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

2010-10-07 Thread Mattias Gaertner
On Wed, 6 Oct 2010 22:41:09 -0200 Zaher Dirkey parm...@gmail.com wrote: Would you please change the default button in Project options dialog from Test to Ok button. Done. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 00:34:29 Bo Berglund wrote: 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 don't know Fortran much but it is a simpler language that

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

2010-10-07 Thread Lukasz Sokol
On 07/10/2010 06:01, Bo Berglund wrote: On Thu, 07 Oct 2010 02:14:47 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk 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

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

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 02:14:47 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk 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,

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 02:19:34 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Yes, I believe there's a GNU FORTRAN but other than eyeballing it to see what sort of parallelisation facilities it provides I've not touched FORTRAN for around 30 years. The

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 02:22:55 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: Bo Berglund wrote: On Wed, 06 Oct 2010 23:34:29 +0200, Bo Berglund bo.bergl...@gmail.com wrote: I found this converter by googling (offered on several websites, but basically the

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

2010-10-07 Thread Mark Morgan Lloyd
Lukasz Sokol wrote: This shows you that root owns all these ports, and dialout group is allowed to use it too, no others (man chmod). So to get your port working, you need to change your user group (add the username to group dialout in /etc/group file), then log out and log in again. I'd

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

2010-10-07 Thread Lukasz Sokol
On 07/10/2010 10:07, Mark Morgan Lloyd wrote: Lukasz Sokol wrote: This shows you that root owns all these ports, and dialout group is allowed to use it too, no others (man chmod). So to get your port working, you need to change your user group (add the username to group dialout in

Re: [Lazarus] Using Lazarus on Embedded Linux?

2010-10-07 Thread Michael Schnell
On 10/06/2010 06:48 PM, Flávio Etrusco wrote: What's the date of this post? Yesterday. In a second post he sent a link to the data sheet: http://www.stec-inc.com/downloads/ssd_datasheets/SLCFxxx_G_M2PU_I_61000-05610.pdf I'm not absolutely sure the wording there definitively rules out that

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77 though. There's also

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Felipe Monteiro de Carvalho
Try using the same url with port 8080 -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Font.Handle

2010-10-07 Thread Juha Manninen (gmail)
Hi How to get rid of Font.Handle in the following code? Font.Handle is deprecated;. Font := TFont.Create; Font.Name := ''; Font.CharSet := CS; DC := GetDC(0); try Save := SelectObject(DC, HGDIOBJ(Font.Handle)); GetTextMetrics(DC, tm); ... do something ...

Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source

2010-10-07 Thread Frank Church
On 3 October 2010 10:25, Frank Church vfcli...@gmail.com wrote: I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at http://devblog.brahmancreations.com/content/build-scripts-for-installing-freepascal-and-lazarus-from-source .

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Mark Morgan Lloyd
Bo Berglund wrote: On Thu, 07 Oct 2010 09:04:04 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: A few seconds Googling comes up with http://community.freepascal.org:1/bboards/message?message_id=145352forum_id=24105 which points at a Windows-based converter, still '77

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

2010-10-07 Thread Michael Schnell
Did you check with minterm or similar that the serial port is in fact working for you ? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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

2010-10-07 Thread silvioprog
Yes, my Lazarus version: Lazarus 0.9.29 r27589 FPC 2.5.1 i386-win32-win32/win64 Reported in: http://bugs.freepascal.org/view.php?id=17572 Thanks Maxim ;) 2010/10/6 Maxim Ganetsky gan...@narod.ru Make sure that you are using latest Lazarus revision and if the issue still persists create a

Re: [Lazarus] Font.Handle

2010-10-07 Thread Felipe Monteiro de Carvalho
Is it really deprecated? I don't think it is a good idea to deprecate it, too many programs use it to get the Windows handles, so it should keep doing what it does on Windows. For other platforms a new method can be created. In fact I am in need of solving this issue at the moment. Do we already

Re: [Lazarus] Font.Handle

2010-10-07 Thread Paul Ishenin
07.10.2010 16:56, Juha Manninen (gmail) wrote: Hi How to get rid of Font.Handle in the following code? Font.Handle is deprecated;. Font.Reference.Handle Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2010-10-07 Thread Mark Morgan Lloyd
Michael Schnell wrote: Did you check with minterm or similar that the serial port is in fact working for you ? Good point. I usually use gtkterm since it doesn't make assumptions about modems etc. which is more use for talking to instrumentation. -- Mark Morgan Lloyd markMLl .AT.

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 11:43:16 +0200, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: Try using the same url with port 8080 Tried: http://community.freepascal.org:8080/bboards/message?message_id=145352forum_id=24105 Same result. Our IT department has very strict taps on

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Felipe Monteiro de Carvalho
The contents of the page are small. I'll just copy here: Fortran to Pascal Notify me of responses HI! I've read about a very good converter from Fortran 77 to Pascal, ForPasC, and tried to download it, but all the links seem to be broken. Could anybody provide me with the program, perhaps for

[Lazarus] Setting NoGUI from command line

2010-10-07 Thread Leonardo M . Ramé
Hi, I'm trying to compile, from command line, an app that needs the widget type NoGUI. How can I set this parameter?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Gustavo Enrique Jimenez
Hi 2010/10/6 Bo Berglund bo.bergl...@gmail.com: 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

Re: [Lazarus] Setting NoGUI from command line

2010-10-07 Thread Mattias Gärtner
Zitat von Leonardo M. Ramé l.r...@griensu.com: Hi, I'm trying to compile, from command line, an app that needs the widget type NoGUI. How can I set this parameter?. lazbuild -h shows all command line parameters. You need the --widgetset=nogui. Mattias --

Re: [Lazarus] Setting NoGUI from command line

2010-10-07 Thread Leonardo M . Ramé
On 2010-10-07 15:48:21 +0200, Mattias Gärtner wrote: Zitat von Leonardo M. Ramé l.r...@griensu.com: Hi, I'm trying to compile, from command line, an app that needs the widget type NoGUI. How can I set this parameter?. lazbuild -h shows all command line parameters. You need the

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Bart
Please do not post copyrighted code here. Bart On 10/7/10, Antônio antoniog12...@gmail.com wrote: 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

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Antônio
Delphi / Kylix Cross-Platform Runtime Library } { System Unit } { } { Copyright (c) 1988-2002 Borland Software Corporation

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Antônio
Anyway, this function does not work. Antônio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Michael Van Canneyt
That may be so, but then we would have to put the Borland copyright notice in all source files that use this. This is not possible/allowed. Michael. On Thu, 7 Oct 2010, Antônio wrote: Delphi / Kylix Cross-Platform Runtime Library } { System Unit

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Antônio
You should not use this because it does not work. Antônio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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

2010-10-07 Thread Koenraad Lelong
Op 07-10-10 12:41, Michael Schnell schreef: Did you check with minterm or similar that the serial port is in fact working for you ? -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

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

2010-10-07 Thread Zaher Dirkey
On Thu, Oct 7, 2010 at 6:00 AM, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Wed, 6 Oct 2010 22:41:09 -0200 Zaher Dirkey parm...@gmail.com wrote: Would you please change the default button in Project options dialog from Test to Ok button. Done. Thanks :) , another favor View -

[Lazarus] WinCE help needed

2010-10-07 Thread zeljko
Hi all, I'm currently doing something for WinCe and wondering howto get WLan connection status (I need signal strength). Any idea how to do that ? tnx. zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread C Western
On 10/07/2010 02:32 PM, Gustavo Enrique Jimenez wrote: Hi 2010/10/6 Bo Berglundbo.bergl...@gmail.com: 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

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 15:09:15 +0200, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: http://www.irpcsoft.com/download/forpascsetup.exe that it the link for the windows/dos version, i don't know if there is a linux version. I downloaded and tried it but the result was not very

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

2010-10-07 Thread Bo Berglund
On Thu, 07 Oct 2010 09:23:44 +0100, Lukasz Sokol el.es...@gmail.com wrote: On 07/10/2010 06:01, Bo Berglund wrote: On Thu, 07 Oct 2010 02:14:47 +, Mark Morgan Lloyd markmll.laza...@telemetry.co.uk wrote: If I now close the port with my button and then try to open it again there is an

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

2010-10-07 Thread Bo Berglund
On Thu, 07 Oct 2010 10:19:15 +0100, Lukasz Sokol el.es...@gmail.com wrote: On 07/10/2010 10:07, Mark Morgan Lloyd wrote: I'd suggest not doing that manually, since there might be an /etc/gshadow file that needs to be kept in step. Gnome will have a user management program which should be

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 21:36:14 Bo Berglund wrote: I think that I would need a lot of time to go over this and just get it to work correctly according to the comments in the code And then I would not know if it actually did the right conversions. You have the original DLLs to test

[Lazarus] how to report the following bug ?

2010-10-07 Thread ik
Hello, I'm using Archlinux, and recently they changed the name of libgdk_pixbuf-2.0.so to libgdk_pixbuf.so . This is a problem with compiling Lazarus (maybe FPC packages itself, did not checked). The thing is, that I do not know how to report (and even preferred offer a patch) it. The change btw

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

2010-10-07 Thread Bo Berglund
On Thu, 07 Oct 2010 17:27:49 +0200, Koenraad Lelong lazar...@de-brouwerij.be wrote: When I'm having problems with serial-comms, I use minicom/hyperterminal. I disable all handshaking. I have plugged in a test-connector in the port : with a 9pin connector shortcircuit pins 2 and 3. Then if I send

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Thu, 7 Oct 2010 21:52:14 +0300, Juha Manninen (gmail) juha.mannine...@gmail.com wrote: On Thursday 07 October 2010 21:36:14 Bo Berglund wrote: I think that I would need a lot of time to go over this and just get it to work correctly according to the comments in the code And then I would

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

2010-10-07 Thread Maxim Ganetsky
07.10.2010 19:37, Zaher Dirkey пишет: View - Units Make the edit for search as an active controls (Focused) and View - Forms Done. -- Best regards, Maxim Ganetsky mailto:gan...@narod.ru -- ___ Lazarus mailing list

Re: [Lazarus] WrapText length limit?

2010-10-07 Thread Bart
On 10/7/10, Antônio antoniog12...@gmail.com wrote: Delphi / Kylix Cross-Platform Runtime Library } { System Unit } { } { Copyright (c)

Re: [Lazarus] how to report the following bug ?

2010-10-07 Thread Andreas Schneider
On Thu, 7 Oct 2010 22:25:18 +0200, ik ido...@gmail.com wrote: Hello, I'm using Archlinux, and recently they changed the name of libgdk_pixbuf-2.0.so [1] to libgdk_pixbuf.so . This is a problem with compiling Lazarus (maybe FPC packages itself, did not checked). The thing is, that I do

Re: [Lazarus] how to report the following bug ?

2010-10-07 Thread ik
I did not uninstalled it: $ locate gdk_pixbuf /usr/lib/libgdk_pixbuf-2.0.so /usr/lib/libgdk_pixbuf-2.0.so.0 /usr/lib/libgdk_pixbuf-2.0.so.0.2200.0 /usr/lib/libgdk_pixbuf_xlib-2.0.so.0 /usr/lib/libgdk_pixbuf_xlib-2.0.so.0.2200.0 The first entry is a symlink I've created, the rest created by the

Re: [Lazarus] Build scripts for Freepascal and Lazarus compilation from source

2010-10-07 Thread Thierry B.
Frank Church a écrit : On 3 October 2010 10:25, Frank Church vfcli...@gmail.com mailto:vfcli...@gmail.com wrote: I have posted an article and some code on some bash scripts I have developed to install FPC and Lazarus from source at

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Juha Manninen (gmail)
On Thursday 07 October 2010 23:33:37 Bo Berglund wrote: What I meant is that I found the Delphi code for the ForToPas program. Since it did not work I tried to open the ForToPas project in D7 and correct the erroneous code. But it is written in a very strange way so it would need a lot of

Re: [Lazarus] Converting Fortran to FPC?

2010-10-07 Thread Bo Berglund
On Fri, 8 Oct 2010 01:56:10 +0300, Juha Manninen (gmail) juha.mannine...@gmail.com wrote: Apparently the automatic conversion doesn't work. You must do it manually. It is not only a bad thing because then you also must understand the code while converting it. Yeah, yet another language to