Re: [Lazarus] Bug tracker login problem.
On Fri, 2 Oct 2009 16:11:56 -0300 Marcelo Borges de Paula mar...@terra.com.br wrote: Does anyone else are having problems to log in Mantis ?? No. What problems? Any error message? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Hello Lazarus-List, Saturday, October 3, 2009, 3:36:46 AM, you wrote: PI Debugger has one set of classes for IDE and another set of classes for PI the debugging itself. PI Classes which has IDE in name are used by IDE to save/load their values PI to/from streams, etc. PI TDBGWatch is used as a base class for the debugger - it has TIDEWatch as PI slave. TGDBMIWatch is a paticular implementation for TDBGWatch which PI works with gdb debugger. Ok, I see that part of the path, but there is still a missing point from my side. In one Watch window procedure the code looks like (not exactly): procedure Update(Watch: TIDEWatch); begin Value:=Watch.Value; end; but manually following the execution flow, Watch.Value gets me to TIDEWatch.GetValue which looks like a default stub. So maybe the parameter should be different, maybe a TBaseWatch ? I was unable to find how to debug the debugger, but that's not a problem by now. procedure THintWindow.Paint ? PI Yes, as I remember I did so but don't remember the reason. Many times PI after I though to remove DT_CENTER too. When I have time to work I will PI look for reasons and remove it. I had removed it to test and no side effect apparently except that there are 2 kinds of tooltips which look similar, the codetools hints and the debugger hints :-? Once removed the DT_CENTER in procedure THintWindow.Paint the codetools hints are still centered :-? PI Yes, just tried and it is indeed so. Probably some bug of FPC or GDB or PI both. Can you report this to the fpc bug tracker? I'll investigate a bit before. PI Can't help with other items. Thank you as usual :) -- Best regards, JoshyFun -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Bug tracker login problem.
Mattias Gaertner wrote: No. What problems? Any error message? Mattias I was not able to log in. No message was returning.() I just reconfigured my password, and now is working. Thanks. Marcelo.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Paul Ishenin escreveu: Yes, as I remember I did so but don't remember the reason. Many times after I though to remove DT_CENTER too. When I have time to work I will look for reasons and remove it. I can confirm that the Delphi behavior is different from Lazarus: it does not center text in Hint windows. Removing DT_CENTER in THintWindow.Paint makes Delphi compatible. BTW: Just yesterday i think of reporting this bug. Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
JoshyFun wrote: Hello Lazarus-List, Saturday, October 3, 2009, 3:36:46 AM, you wrote: PI Debugger has one set of classes for IDE and another set of classes for PI the debugging itself. PI Classes which has IDE in name are used by IDE to save/load their values PI to/from streams, etc. PI TDBGWatch is used as a base class for the debugger - it has TIDEWatch as PI slave. TGDBMIWatch is a paticular implementation for TDBGWatch which PI works with gdb debugger. Ok, I see that part of the path, but there is still a missing point from my side. In one Watch window procedure the code looks like (not exactly): procedure Update(Watch: TIDEWatch); begin Value:=Watch.Value; end; but manually following the execution flow, Watch.Value gets me to TIDEWatch.GetValue which looks like a default stub. So maybe the parameter should be different, maybe a TBaseWatch ? TIDEWatch is just a baseclass On the IDE side you realy deal with a TManagedWatch defined in C:\lazarus_latest\ide\debugmanager.pas Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
JoshyFun wrote: Hello Lazarus-List, I'm trying to improve some debug parts up to where my skills let me and I had found some things that I was unable to understand: 1) I was unable to find how TIDEWatch is connected with GDBMIDebugger, in special the GetValue property getter. As I understand GetValue will return the default value representation so to add override representation, in example memory dump, a new function should be added like GetValue(FormatSet). I am not sure, if formatting should happen in the debugger. IMHO it would be better to have a GetValueStructure or GetValueEx or similat. return a class/structure, that can be formatted by the IDE. My 2 cents / Best Regards Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
JoshyFun escreveu: PI Yes, as I remember I did so but don't remember the reason. Many times PI after I though to remove DT_CENTER too. When I have time to work I will PI look for reasons and remove it. I had removed it to test and no side effect apparently except that there are 2 kinds of tooltips which look similar, the codetools hints and the debugger hints :-? Once removed the DT_CENTER in procedure THintWindow.Paint the codetools hints are still centered :-? Did you rebuild IDE + LCL ? Here, in a simple test the hint was not centered Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Hi JoshyFun, in this context, maybe have a look at: http://bugs.freepascal.org/view.php?id=10665 I don't know if it overlaps with your plans, or is unrelated... Best Regards Martin JoshyFun wrote: Hello Lazarus-List, I'm trying to improve some debug parts up to where my skills let me and I had found some things that I was unable to understand: 1) I was unable to find how TIDEWatch is connected with GDBMIDebugger, in special the GetValue property getter. As I understand GetValue will return the default value representation so to add override representation, in example memory dump, a new function should be added like GetValue(FormatSet). 2) The IDE hints are always draw using DT_CENTER which ruins any multiline representation. Is possible to remove this DT_CENTER from procedure THintWindow.Paint ? 3) In the case of class debug I had added to the result the data returned from evaluating de dereference, something like inspecting Class and Class^ which offers more information. Are this kind of improvements of some interest ? 4) gdb class information looks very strange to me, in example a TMemoryStream dumps: ~type = TMEMORYSTREAM = class : public TCUSTOMMEMORYSTREAM \n ~ private\n ~FCAPACITY : LONGINT;\n ~\n ~ public\n ~procedure SETCAPACITY (TMEMORYSTREAM, ONGINT, );\n ~function REALLOC (TMEMORYSTREAM, ONGINT, ) : POINTER; virtual;\n ~destructor ~DESTROY (TMEMORYSTREAM, OINTER); virtual;\n ~procedure CLEAR (TMEMORYSTREAM);\n ~procedure LOADFROMSTREAM (TMEMORYSTREAM, STREAM, );\n ~procedure LOADFROMFILE (TMEMORYSTREAM, ANSISTRING);\n ~procedure SETSIZE (TMEMORYSTREAM, ONGINT, ); virtual;\n ~function WRITE (TMEMORYSTREAM, onst7, ) : LONGINT; virtual;\n ~end\n Note the missing L in second parameter when LONGINT was expected, or missing T in LOADFROMSTREAM, but the most strange to me is the onst7. What's const7 ? Does anybody know why those letters are missing ? 5) When an exception is raised and stop button is pressed usually the assembler window pops up instead the line where the exception happends, or the nearest line with debug information. I had changed my code to show the assembler window only if no line with debug information is found in the backtrace. But I do not exactly know how that procedure works and maybe I missed something important, or maybe that's the expected behavior :-? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Error Building lazarus with FPC 2.5.1
domini...@savagesoftwaresolutions.com schreef: Hi all, I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here lclmemmanager.pas(104,1) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted Error: /usr/bin/ppcppc returned an error exitcode (normal if you did not specify a source file to be compiled) make[1]: *** [alllclunits.ppu] Error 1 make: *** [lcl] Error 2 I know that FPC 2.5.1 is not officially supported, but was wondering if anyone has a work-around. http://mantis.freepascal.org/view.php?id=14712 Workaround: update to an earlier fpc revision until we have catched up. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Hello Lazarus-List, Saturday, October 3, 2009, 2:40:18 PM, you wrote: M in this context, maybe have a look at: M http://bugs.freepascal.org/view.php?id=10665 M I don't know if it overlaps with your plans, or is unrelated... That's exactly one of the things that I'll try to implement, and the reason that a centered tooltip does not help ;) I wish to indent some information in different lines, but with all information centered the result is more confusing than previously one line information. -- Best regards, JoshyFun -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Paul Ishenin wrote: Yes, as I remember I did so but don't remember the reason. Many times after I though to remove DT_CENTER too. When I have time to work I will look for reasons and remove it. I am wrong. That was Mattias who made text centering for the THintWindow. Best regards, Paul Ishenin. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
On Sat, 03 Oct 2009 23:05:03 +0800 Paul Ishenin webpi...@mail.ru wrote: Paul Ishenin wrote: Yes, as I remember I did so but don't remember the reason. Many times after I though to remove DT_CENTER too. When I have time to work I will look for reasons and remove it. I am wrong. That was Mattias who made text centering for the THintWindow. If I did that, then I thought it was Delphi compatible. If it is not, then it should be changed. Can someone test under Delphi? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Mattias Gaertner escreveu: On Sat, 03 Oct 2009 23:05:03 +0800 Paul Ishenin webpi...@mail.ru wrote: Paul Ishenin wrote: Yes, as I remember I did so but don't remember the reason. Many times after I though to remove DT_CENTER too. When I have time to work I will look for reasons and remove it. I am wrong. That was Mattias who made text centering for the THintWindow. If I did that, then I thought it was Delphi compatible. If it is not, then it should be changed. Can someone test under Delphi? I already tested. It's not centered. See previous mail Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Error Building lazarus with FPC 2.5.1
I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here I just had the same error and was able to fix it like this: public property Capacity; //: Longint read FCapacity write SetCapacity; end; There were a few similar errors in other units, also very easy to fix in a similar way. HTH TOndrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
On Sat, 03 Oct 2009 12:35:00 -0300 Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Mattias Gaertner escreveu: On Sat, 03 Oct 2009 23:05:03 +0800 Paul Ishenin webpi...@mail.ru wrote: Paul Ishenin wrote: Yes, as I remember I did so but don't remember the reason. Many times after I though to remove DT_CENTER too. When I have time to work I will look for reasons and remove it. I am wrong. That was Mattias who made text centering for the THintWindow. If I did that, then I thought it was Delphi compatible. If it is not, then it should be changed. Can someone test under Delphi? I already tested. It's not centered. See previous mail Thanks for testing. Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Error Building lazarus with FPC 2.5.1
On Sat, 3 Oct 2009 17:44:51 +0200 Ondrej tond...@gmail.com wrote: I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here I just had the same error and was able to fix it like this: public property Capacity; //: Longint read FCapacity write SetCapacity; end; There were a few similar errors in other units, also very easy to fix in a similar way. Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Hello Lazarus-List, Saturday, October 3, 2009, 5:47:53 PM, you wrote: MG Thanks for testing. Fixed. Can anybody apply this patch locally and tell me if this kind of debug changes are of interest ? Main changes: 1) Once stop on exception the assembler window will only appear if no backtrace information is available. It will show the clser offended line with debug information. 2) Clases on hint, evaluate or watch are multiline displayed with indentation. In watches this will be a small problem, but most important information is kept in the very first line. Clases are evaluated 2 times, one as the class and one as the derefenced to get the class variables/status information. 3) Records are now displayed in multiline also and the record type name is displayed in the first line. No interface with debugger has been changed, only the way the default value is returned. Partial code adapted from Benito van der Zander in http://bugs.freepascal.org/view.php?id=10665 -- Best regards, JoshyFun debugger_changes_test.patch Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
On Sat, 3 Oct 2009 18:24:42 +0200 JoshyFun joshy...@gmail.com wrote: Hello Lazarus-List, Saturday, October 3, 2009, 5:47:53 PM, you wrote: MG Thanks for testing. Fixed. Can anybody apply this patch locally and tell me if this kind of debug changes are of interest ? Main changes: 1) Once stop on exception the assembler window will only appear if no backtrace information is available. It will show the clser offended line with debug information. 2) Clases on hint, evaluate or watch are multiline displayed with indentation. In watches this will be a small problem, but most important information is kept in the very first line. Clases are evaluated 2 times, one as the class and one as the derefenced to get the class variables/status information. 3) Records are now displayed in multiline also and the record type name is displayed in the first line. No interface with debugger has been changed, only the way the default value is returned. Partial code adapted from Benito van der Zander in http://bugs.freepascal.org/view.php?id=10665 Sounds useful to me. The debugger is Marc's work. But Marc is busy the next days, so don't expect anything soon. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Mac OS X : Error Building lazarus with FPC 2.5.1
Thanks for the fix, compiles now. Dominique On Sat, 3 Oct 2009 18:22:13 +0200, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 3 Oct 2009 17:44:51 +0200 Ondrej tond...@gmail.com wrote: I just did an svn update for Lazarus and FPC and I'm getting the following error Compiling lclmemmanager.pas lclmemmanager.pas(100,37) Error: Cannot access a private field of an object here lclmemmanager.pas(100,53) Error: Cannot access a private field of an object here I just had the same error and was able to fix it like this: public property Capacity; //: Longint read FCapacity write SetCapacity; end; There were a few similar errors in other units, also very easy to fix in a similar way. Fixed. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Some debug facts/improves
Hello Lazarus-List, Saturday, October 3, 2009, 6:52:06 PM, you wrote: Can anybody apply this patch locally and tell me if this kind of debug changes are of interest ? [...] MG Sounds useful to me. MG The debugger is Marc's work. But Marc is busy the next days, so MG don't expect anything soon. I mostly want to know if this are of interest. If no interest I'll only add the things that need to me (mostly the already added), but if people feels this useful I'll extend the changes and add some more detailed output. I'll also try to make the inpector work. -- Best regards, JoshyFun -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] FastCGI?
Wasn't some work done recently to add FastCGI to lazarus? If so, which version must I have, trunk? Thanks, -- Warm Regards, Lee -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package with LazIDEIntf and propedits probleme
2009/10/1 Mattias Gaertner nc-gaert...@netcologne.de On Wed, 30 Sep 2009 17:56:17 +0200 wile64 wil...@gmail.com wrote: Don't work, don't work, don't work !!! After full test, I am desperate to make it work :( I have some another message like objectinspector.pp(41,18) Fatal: Can't find unit ObjectInspector used by EnvironmentOpts If someone can test with the package manager, create a package and then add a new component (no matter the ancestor) and add uses LazIDEIntf, propedits; into unit *And try to install package.* Create new package. Save it. Add new comonent. Add new requirement IDEIntf. Add uses LazIDEIntf, propedits. Install package. Works here. Thx for reply, But I'm stupid boy :'( Just add Add new requirement IDEIntf. and work Sorry for your lost time :( -- Laurent. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Commercial projects
Hi people, I'm trying to sell Lazarus as a viable development environment to replace Delphi on Windows. The management is asking for examples of commercial projects currently being developed or in use. Can anyone provide me with links? -- Ger -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] package with LazIDEIntf and propedits probleme
wile64 schreef: 2009/10/1 Mattias Gaertner nc-gaert...@netcologne.de mailto:nc-gaert...@netcologne.de On Wed, 30 Sep 2009 17:56:17 +0200 wile64 wil...@gmail.com mailto:wil...@gmail.com wrote: Don't work, don't work, don't work !!! After full test, I am desperate to make it work :( I have some another message like objectinspector.pp(41,18) Fatal: Can't find unit ObjectInspector used by EnvironmentOpts If someone can test with the package manager, create a package and then add a new component (no matter the ancestor) and add uses LazIDEIntf, propedits; into unit *And try to install package.* Create new package. Save it. Add new comonent. Add new requirement IDEIntf. Add uses LazIDEIntf, propedits. Install package. Works here. Thx for reply, But I'm stupid boy :'( Just add Add new requirement IDEIntf. and work Sorry for your lost time :( Maybe we should have a quick fix: add missing requirement. :-) Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TAChart - OnDrawReticule event problem
On Sat, Oct 3, 2009 at 09:33, Pierre dpli...@free.fr wrote: I made the test with the line. It works :-) Do you know why it's not implemented in area type? No particular reason -- just nobody requested it. Implemented in r22011-22012 I was also thinking to create my own type based on the area type but without the vertical line from the point to YMin (to draw the polygon without the border) but without this event it's not very interesting for me. You can already set AreaLinePen.Style to psClear. This, however, will disable the border around the area series as well as vertical lines between segments. If you want to disable the latter while preserving the former, you will indeed have to either change the drawing procedure or create your own series. I think this is a reasonable feature, so if you provide a patch that adds DrawVerticalLines property to TAreaSeries and changes TAreaSeries.Draw accordingly, I shall gladly take it ;-) -- Alexander S. Klenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Commercial projects
Ger Remmers wrote: The management is asking for examples of commercial projects currently being developed or in use. Can anyone provide me with links? I don't know if Lazarus is used in developing the Weather Display app (http://www.weather-display.com/index.php) but the error messages on their forum at http://www.weather-watch.com/smf/index.php?topic=41504.msg340979 indicate that it uses freepascal. A selection of applications developed using Lazarus can be found at http://wiki.freepascal.org/Lazarus_Application_Gallery and there are some others among the projects at http://wiki.freepascal.org/Projects_using_Lazarus, for example Tony Maro's Truckbites (http://www.truckbites.com) http://www.truckbites.com Malcolm -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Commercial projects
The management is asking for examples of commercial projects currently being developed or in use. Can anyone provide me with links? -- Ger Pixel Image editor is made with freepascal http://www.kanzelsberger.com Master Maths: M2 Computer Based Training system was rewritten in freepascal http://www.mastermaths.co.za/ There are more but I don't remember right now. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus