[Lazarus] List the procedures of a object.
Is there any how to list the procedures of a object? Att. Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] List the procedures of a object.
I need to execute an procedure of an object if his exists, i'm doing some tests and get into this, but this is generating an SIGSEV: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TTeste } TTeste = class procedure Proc; end; type { TForm1 } TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; type TProc = procedure of object; implementation procedure DoProc(Sender: TObject); var Proc: TProc; begin Proc := TProc(Sender.MethodAddress('Proc')^); Proc; end; { TTeste } procedure TTeste.Proc; begin ShowMessage('oi'); end; {$R *.lfm} { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin DoProc(TTeste.Create); end; end. 2012/3/27 Everton Vieira tonvie...@gmail.com Is there any how to list the procedures of a object? Att. Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] List the procedures of a object.
Well, i manage to 'find' the procedure now is giving the SIGSEV when is executed. For the MethodAddress finds was need to be published. unit Unit1; {$mode objfpc}{$M+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TTeste } TTeste = class published procedure Proc; end; type { TForm1 } TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; type TProc = procedure of object; implementation procedure DoProc(Sender: TObject); var Proc: TProc; begin Proc := TProc(Sender.MethodAddress('Proc')^); Proc; -- Aqui gera o SIGSEV end; { TTeste } procedure TTeste.Proc; begin ShowMessage('oi'); end; {$R *.lfm} { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin DoProc(TTeste.Create); end; end. 2012/3/27 Everton Vieira tonvie...@gmail.com I need to execute an procedure of an object if his exists, i'm doing some tests and get into this, but this is generating an SIGSEV: unit Unit1; {$mode objfpc}{$H+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TTeste } TTeste = class procedure Proc; end; type { TForm1 } TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; type TProc = procedure of object; implementation procedure DoProc(Sender: TObject); var Proc: TProc; begin Proc := TProc(Sender.MethodAddress('Proc')^); Proc; end; { TTeste } procedure TTeste.Proc; begin ShowMessage('oi'); end; {$R *.lfm} { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin DoProc(TTeste.Create); end; end. 2012/3/27 Everton Vieira tonvie...@gmail.com Is there any how to list the procedures of a object? Att. Everton Vieira. -- Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] List the procedures of a object.
I just did, the real case just saved me to do about 10.000 lines of code in a very tedious job. Became like this: unit Unit1; {$mode objfpc}{$M+} interface uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls; type { TTeste } TTeste = class published procedure Proc; end; type { TForm1 } TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { private declarations } public { public declarations } end; var Form1: TForm1; type TProc = procedure of object; implementation procedure DoProc(Sender: TObject); var M : TMethod; P: TProc; begin M.Data := Pointer(Sender) ; M.Code := Sender.MethodAddress('Proc') ; P := TProc(M); P; end; { TTeste } procedure TTeste.Proc; begin ShowMessage('oi'); end; {$R *.lfm} { TForm1 } procedure TForm1.Button1Click(Sender: TObject); begin DoProc(TTeste.Create); end; end. 2012/3/27 Michael Van Canneyt mich...@freepascal.org On Tue, 27 Mar 2012, Marco van de Voort wrote: On Tue, Mar 27, 2012 at 09:00:07PM +0200, Michael Van Canneyt wrote: 2010 actually. And since this list has been _very_ sensitive about bloat recently, I would not even dare to suggest that way ;-) I would. Under command of some switch, of course, it surely would come in handy. The rtti unit they made for it is of course totally convoluted, but the idea to be able to use introspection on all aspects of a class is definitely useful and would make RPC frameworks a breeze. That's roughly my opinion too, after a short read-up during D2010 times. Never enable it globally only for certain classes in frameworks that benefit from it. Haven't really used it yet though. Well, I am using it - I'm exposing a JSON RPC through it. The 'only for certain classes' is my point of view as well. It would only be necessary for the classes that get exposed as data, and the interfaces. Michael. -- __**_ Lazarus mailing list Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] simple transfer of text data over tcp/ip
I need to make simple transfer of text data over tcp/ip, which socket class the list recomends? (Must run in mac also) Regards, Everton -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TBGRABitmap
The FontQuality := fqFineAntialiasing of the TBGRABitmap is beautiful! -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
Em 01/03/2012, às 21:14, Juha Manninen escreveu: 2012/3/1 Everton Vieira tonvie...@gmail.com That`s true. To get the softer landing improving the doc (and i think the ways of it) would be enough. The project management is more about to lead the people to achieve common goals. I don`t know how you people from the core lives with so few contributors. The high goal of this thread is to improve that. Right... if you honestly wanted to improve the situation you could start contributing yourself. Until now we have seen only this abstract nonsense from you. Ok. I shall make no more comments on that. So, what does the management mean in practice? About management from the wikipedia: Project management is the discipline of planning, organizing, securing, and managing resources to achieve specific goals. Yes, I can read wikipedia. My question included the in practice part. The in practice is the system itself. It will depend on the politics adopted. This is not abstract. I`m not in the position to say on that. Marco? DoDi and others!!! Please don't hijack this thread for whining about documentation and docking and whatnot! You can do that in another thread if you must. Besides, you are supposed to improve the documents, not whine all the time like a baby. I don't know what is wrong with you. I plan, hopefully during Friday, to collect some valid points about how this project should be visible to outsiders, in a constructive way. It really doesn't help things when this thread is filled with irrelevant whining, pushing the signal/noise ratio close to zero. Is it a collective whining period now or what? Juha -- ___ 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] One thank.
I know the mailing list is the standard today, in many places not just here. But is unclear in his lack of formated data, maybe something like the bug tracker to discuss inprovements in which that info like the one you just sended about the TLabel and FocusControl could be added as notes. Would be much more clear. 2012/2/24 Juha Manninen juha.mannine...@gmail.com 2012/2/24 Everton Vieira tonvie...@gmail.com Is there any way, besides the unclear way of try to colect some coments in the mailing list about the acceptance of a specific improment? Of course, no one wants to throw away his work. Mailing list is a good place. If your idea is not good then it will be noticed early on and you don't need to make useless code. Good GUI design is especially difficult because it is always subjective, based on people's opinions, habits and preferences. About your idea of TLabel + the closest TWinControl, Taborder dialog may not be a good place for it. Anchor editor would be better but it is already full of stuff and it is meant for all controls. Your feature is only for TLabel. Maybe best would be a popup menu item in designer when right clicking a label. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
My intend in start this thread was in order to make visible the potential of the FPC/Lazarus, that i believe is more than Java. 2012/2/28 Lukasz Sokol el.es...@gmail.com On 28/02/2012 12:11, Rigel R. wrote: I do not understand why insulting me. Maybe because you are stupid and do not understand what I write? All described applications using CGI or others languages who are not written in Pascal. Now you understand or you need more explanations? If so, read the two questions in my previous post, troll. Lukasz I wrote that, because /many/ people have replied to your lengthy post, one by one debunking your arguments, and I have not seen you reply to any of them, no sign of you accepting that you're wrong; Seems to me then, that you wrote it with an /agenda/ in mind, therefore my 'loaded question' statement. Lukasz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
I'm always looking for ways of more participation and, please, believe me, today is not clear. If you work on a company, by example, embarcadero, is very clear the way the work is done. There's a very well knew structure of how that happens. Here, i'm on a small company making software and the work is also very clear. What is supposed to be done, who is in charge of what, who is in the project with who and who. And so on. Today, in the open source enviroment, we dont have this info, and without this info how can we join and partipate. There's some anuncoments about but very little info about the development. Please undarstand me, i'm not talking about myself, i'm talking about of ways of public show that kind of info, for the people can acknowledge what is happen and naturaly see how they can help. People in general has a natural reciprocity. And i include myself for sure. 2012/2/28 William Oliveira Ferreira bdexterholl...@gmail.com That's just the way i understand the meaning of community and opensource projects: Everyone helping with what they can (if they want), not just a little group... Today, i simply can't get the lazarus' source and solve a bug because i have a limted knowledge of how it works internally but i can submit bugs on mantis, that's a way that i can help. On my environment, with my friends, i can promove lazarus and help them to write some applications, write tutorials, etcs... William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/28 Sven Barth pascaldra...@googlemail.com Am 28.02.2012 17:25, schrieb William Oliveira Ferreira: sometimes all lazarus' users wanna see core team do something that themselves can Thank you for speaking that out aloud :) writing a basic article of how to compile a basic application, how compiler directives affects the way fpc manage pointers, place side-by-side a delphi and a lazarus project for beginners is easy and it's not necessary to get deep on the subject because it's designed for beginners Regards, Sven -- __**_ Lazarus mailing list Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
I'll try once more to tell on what i'm refering: project managemant of the development. All that i have to say about it is in that. Who some day had worked with project management and has the insight of how could be done in the open source enviroment knows on what i'm talking about it. 2012/2/28 William Oliveira Ferreira bdexterholl...@gmail.com I understand what you want to help but i don't think it's too hard as i understand how. Exaclty how you wanna help? As i can see, if you found a bug and solved it in your pc, you can submit a patch generated by a svn tool in bugtracker. If you wanna enter in the core staff, well, the current staff must see something great that's justify your join, if you found something wrong in the documentation on Wiki, you can edit it and post a updated version, but, i really don't know how to submit new documentation on official wiki as a tutorial about how to use a tool (example), so, about this, i must agree with you... William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/28 Everton Vieira tonvie...@gmail.com I'm always looking for ways of more participation and, please, believe me, today is not clear. If you work on a company, by example, embarcadero, is very clear the way the work is done. There's a very well knew structure of how that happens. Here, i'm on a small company making software and the work is also very clear. What is supposed to be done, who is in charge of what, who is in the project with who and who. And so on. Today, in the open source enviroment, we dont have this info, and without this info how can we join and partipate. There's some anuncoments about but very little info about the development. Please undarstand me, i'm not talking about myself, i'm talking about of ways of public show that kind of info, for the people can acknowledge what is happen and naturaly see how they can help. People in general has a natural reciprocity. And i include myself for sure. 2012/2/28 William Oliveira Ferreira bdexterholl...@gmail.com That's just the way i understand the meaning of community and opensource projects: Everyone helping with what they can (if they want), not just a little group... Today, i simply can't get the lazarus' source and solve a bug because i have a limted knowledge of how it works internally but i can submit bugs on mantis, that's a way that i can help. On my environment, with my friends, i can promove lazarus and help them to write some applications, write tutorials, etcs... William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/28 Sven Barth pascaldra...@googlemail.com Am 28.02.2012 17:25, schrieb William Oliveira Ferreira: sometimes all lazarus' users wanna see core team do something that themselves can Thank you for speaking that out aloud :) writing a basic article of how to compile a basic application, how compiler directives affects the way fpc manage pointers, place side-by-side a delphi and a lazarus project for beginners is easy and it's not necessary to get deep on the subject because it's designed for beginners Regards, Sven -- __**_ Lazarus mailing list Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ 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 -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
The bug tracker works perfectly for the bugs, i would only suggest to make a front-end in the IDE in order to make him more visible, or at least by start a simple link in the help menu of the IDE would be enough. This is a patch so small and simple that i'm even with shame to do it :p. 2012/2/28 Juha Manninen juha.mannine...@gmail.com I create a new thread because this is not related to the original Why Java got popular thread... 2012/2/28 Everton Vieira tonvie...@gmail.com I'll try once more to tell on what i'm refering: project managemant of the development. All that i have to say about it is in that. Who some day had worked with project management and has the insight of how could be done in the open source enviroment knows on what i'm talking about it. Ok, we need more concrete plans. I promise to look carefully the issues of project management if you have good ideas. Do you mean that the core team should divide the tasks for contributors? Please explain more. Improving the documentation is now a hot topic. I think more people should get write access to the doc directory in the repository, if only there are people willing to take the effort. While improving project management is a good idea, I still strongly feel that most of criticism is not fair or truthful. In fact all questions are answered in mailing list and forum, IMO better than with many other open source projects. The classic whining about the revision control and bug tracking is quite nonsense. It is typically from people who have never contributed code for the project. Still, I will have an open mind for ideas of better project management. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
About the documentation i had the idea of make centralized data help that could generate the off-line as well the on-line help versions. And to elegantly show the contributor who did the examples and so on. 2012/2/28 Juha Manninen juha.mannine...@gmail.com I create a new thread because this is not related to the original Why Java got popular thread... 2012/2/28 Everton Vieira tonvie...@gmail.com I'll try once more to tell on what i'm refering: project managemant of the development. All that i have to say about it is in that. Who some day had worked with project management and has the insight of how could be done in the open source enviroment knows on what i'm talking about it. Ok, we need more concrete plans. I promise to look carefully the issues of project management if you have good ideas. Do you mean that the core team should divide the tasks for contributors? Please explain more. Improving the documentation is now a hot topic. I think more people should get write access to the doc directory in the repository, if only there are people willing to take the effort. While improving project management is a good idea, I still strongly feel that most of criticism is not fair or truthful. In fact all questions are answered in mailing list and forum, IMO better than with many other open source projects. The classic whining about the revision control and bug tracking is quite nonsense. It is typically from people who have never contributed code for the project. Still, I will have an open mind for ideas of better project management. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
About the project management is something like the bug tracker but not for bugs. With all that richness that has a project management: projects, teams, head members, status of it, code already done, code to be done, ideas about it, discussions on, notes from everyone, and so on. 2012/2/28 Juha Manninen juha.mannine...@gmail.com I create a new thread because this is not related to the original Why Java got popular thread... 2012/2/28 Everton Vieira tonvie...@gmail.com I'll try once more to tell on what i'm refering: project managemant of the development. All that i have to say about it is in that. Who some day had worked with project management and has the insight of how could be done in the open source enviroment knows on what i'm talking about it. Ok, we need more concrete plans. I promise to look carefully the issues of project management if you have good ideas. Do you mean that the core team should divide the tasks for contributors? Please explain more. Improving the documentation is now a hot topic. I think more people should get write access to the doc directory in the repository, if only there are people willing to take the effort. While improving project management is a good idea, I still strongly feel that most of criticism is not fair or truthful. In fact all questions are answered in mailing list and forum, IMO better than with many other open source projects. The classic whining about the revision control and bug tracking is quite nonsense. It is typically from people who have never contributed code for the project. Still, I will have an open mind for ideas of better project management. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
2012/2/28 Juha Manninen juha.mannine...@gmail.com 2012/2/28 Everton Vieira tonvie...@gmail.com It is already there for a long time: Help - Reporting a Bug Is true, my fall, but the idea of the front-end is still up. You can perhaps make such front-end yourself as a contribution. :) It is not a trivial task because you must connect and update the actual Mantis bug tracker and mostly replicate its user interface. We can always starts small, makes more sense starts small. But, by now, i don't have a clue about how to start such front-end. It makes sense if the IDE can automatically collect information about an exception or other error, and about the environment like OS, FPC version, Lazarus version etc. Otherwise it does not make much sense to replicate it. BTW, this is not really an issue of project management but rather bug management. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Project management
Em 28/02/2012, às 21:13, Juha Manninen escreveu: 2012/2/28 Everton Vieira tonvie...@gmail.com About the documentation i had the idea of make centralized data help that could generate the off-line as well the on-line help versions. And to elegantly show the contributor who did the examples and so on. Again, you clearly have not studied the existing system at all. Why? If it is already been done, then sorry, and please, disregard this mail. Juha -- ___ 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] Project management
Em 28/02/2012, às 19:02, Juha Manninen escreveu: 2012/2/28 Everton Vieira tonvie...@gmail.com About the project management is something like the bug tracker but not for bugs. With all that richness that has a project management: projects, teams, head members, status of it, code already done, code to be done, ideas about it, discussions on, notes from everyone, and so on. This was the best idea so far. I think there is open source project management programs available. However there is a big difference between professionally run SW projects and hobby open source projects: Professional projects in a company environment have a known number of developers who all will work a known period of time every day. If you can estimate how many man-hours a certain task will take then you can divide the tasks and estimate the whole project's development time. In a hobby project things are different. Nobody can promise exact number of hours to work on the project. Also, developers often do what they want based on personal preferences, not following some project manager's orders. This actually makes it fun to work in an open source project. Everton, did you consider these things in your suggestion? I think can be adapted. It would be mostly a ToDo list with task assignments and maybe time estimates. In fact the wiki already has such info although it is outdated. I am still thinking, do you need the project management data for getting a suitable task for yourself, or is it more like nice to know? I think would be better for everyone. It may also be an illusion from your side that contributing code to a big project becomes easy if only there was a project manager with a nice list of tasks. I think it would be easy with more info about it. No, you will have to browse and study the existing code for hours and hours before you start to understand it enough to make intelligent changes. I think it would be easy with more info about it. When you do it, other developers will be very helpful through the mailing list, I promise. Now you clearly have not even looked at the code. I`ve looked yes, some of it, not all for sure, but i do not see how this make any difference on this subject. Juha But, of course, if you don`t think is a good idea, then ok. Sure i`m not here to convince anybody of nothing. I`m only proposing ideas. Only that. Sure if this ideas don`t found resonance i would be the last to try to convince anybody. I simply don`t have the energy to do this struggling. -- ___ 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] Project management
Em 28/02/2012, às 23:25, Juha Manninen escreveu: 2012/2/29 Everton Vieira tonvie...@gmail.com Em 28/02/2012, às 19:02, Juha Manninen escreveu: It may also be an illusion from your side that contributing code to a big project becomes easy if only there was a project manager with a nice list of tasks. I think it would be easy with more info about it. No, you will have to browse and study the existing code for hours and hours before you start to understand it enough to make intelligent changes. I think it would be easy with more info about it. When you do it, other developers will be very helpful through the mailing list, I promise. Now you clearly have not even looked at the code. I`ve looked yes, some of it, not all for sure, but i do not see how this make any difference on this subject. Ok, I understood the fundamental goal of the project management etc. improvement was to make it easier for potential new developers (like you) to jump in and pick tasks. Did I misunderstand it? No, you did not misunderstand, this is very like the intend. Now, your answers indicate you don't really know what you want. Of course i dont really know what i want in this matter because doesn`t matter what i want. Is a project management, the concept of it is well know. How does fixing a bug or creating a new feature become easier if it is listed in a project management GUI? By start, the talked about it would be grouped. The info would be formatted. It doesn't, you still have to learn and edit the code. Certainly is suposed so. But is very different when theres some lines saying what that code is already doing. And some lines to saying what is missing, and what was already be talked about, by who, everything in a formatted way. And i think, in my humble way of view, that a GUI would facilitate and much more likely draw people to help. I filled my own and Mattias' data in the developers page. It is the organization chart that was requested: http://wiki.lazarus.freepascal.org/Developer_pages Do not see any i saying as a request. Then there is the roadmap page. It already contains tasks and people responsible for them. It is not up to date but can be updated: http://wiki.lazarus.freepascal.org/Roadmap Everton, could you please explain the problems you face in a more detailed way. Now this is all very abstract, like everything becomes easy with a project management system. That is, if you still want to learn and contribute. If you don't, it's OK, too. This is not about me. Why make this about me? This is about the group. From where i came from we have this saying: one andorinha bird doesn`t make summer. How can i tell this better. This meant that one can not make much, is the group that can make much. And of course i never said that: everything becomes easy with a project management system. Juha But i admit, maybe i`m wrong. That`s ok too. The project management in a open source environment, maybe is bad idea. Who never make some mistake? And of course is not in this struggling path that we can make a community that really cooperates. -- ___ 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] One thank.
Another thing in this line is to set the FocusControl of a TLabel to the closer TWinControl. 2012/2/24 Everton Vieira tonvie...@gmail.com I wanna say a thank to the one who did the auto-order of the tab order. It's so simply and done the job that otherwise would take time from us to be done. -- Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Class const of array of record.
I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end; implementation {$R *.lfm} function mTRec(Numero: Integer; Nome: String): TRec; begin Result.Numero := Numero; Result.Nome := Nome; end; { TForm1 } procedure TForm1.Button1Click(Sender: TObject); var i1: Integer; begin for i1 := 0 to Length(TTest.Nome) -1 do ShowMessage(TTest.Nomes[i1].Nome); end; Is there any how to do it? -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Class const of array of record.
Worked, even better than i thought. Many thanks! 2012/2/24 Adrian Veith adr...@veith-system.de try ((Numero:1; Nome'everton'), (Numero:2; Nome: 'murilo'), (Numero:3; Nome:'vieira')); Am 24.02.2012 14:28, schrieb Everton Vieira: I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end; implementation {$R *.lfm} function mTRec(Numero: Integer; Nome: String): TRec; begin Result.Numero := Numero; Result.Nome := Nome; end; { TForm1 } procedure TForm1.Button1Click(Sender: TObject); var i1: Integer; begin for i1 := 0 to Length(TTest.Nome) -1 do ShowMessage(TTest.Nomes[i1].Nome); end; Is there any how to do it? -- Everton Vieira. This body part will be downloaded on demand. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Class const of array of record.
Is contructions like this that aren't available: type TRec = record Numero: Integer; Nome: String; end; implementation {$R *.lfm} procedure ShowTRec(rec: TRec); begin ShowMessage(rec.Nome); end; procedure TForm1.Button1Click(Sender: TObject); begin ShowTRec((Numero: 1; Nome: 'Pascal')); end; In this constructions is that today is nice to use a function to create the TRec. 2012/2/24 Everton Vieira tonvie...@gmail.com I was trying to make this construction: type TRec = record Numero: Integer; Nome: String; end; function mTRec(Numero: Integer; Nome: String): TRec; type TTest = class const Nomes: array[0..2] of TRec = (mTRec(1, 'everton'), mTRec(2, 'murilo'), mTRec(3, 'vieira')); end; implementation {$R *.lfm} function mTRec(Numero: Integer; Nome: String): TRec; begin Result.Numero := Numero; Result.Nome := Nome; end; { TForm1 } procedure TForm1.Button1Click(Sender: TObject); var i1: Integer; begin for i1 := 0 to Length(TTest.Nome) -1 do ShowMessage(TTest.Nomes[i1].Nome); end; Is there any how to do it? -- Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [fpc-pascal] Re: Class const of array of record.
static; should be a keyword, doesn't? 2012/2/24 Everton Vieira tonvie...@gmail.com Is true, with {$modeswitch advancedrecords} worked. But i dont see much sense in put a diretive for enable a new feature. 2012/2/24 Jonas Maebe jonas.ma...@elis.ugent.be On 24 Feb 2012, at 17:50, kyan wrote: Sorry, I forgot to mention that advanced record syntax works in Delphi mode only. To compile it you must change {$mode objfpc} to {$mode Delphi}. Or add {$modeswitch advancedrecords} after {$mode objfpc} Jonas ___ fpc-pascal maillist - fpc-pas...@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal -- Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Undo on editor.
Is there any plans to do the undo on the editor? -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Undo on editor.
2012/2/23 Mattias Gaertner nc-gaert...@netcologne.de ** Everton Vieira tonvie...@gmail.com hat am 23. Februar 2012 um 15:00 geschrieben: 2012/2/23 Everton Vieira tonvie...@gmail.com Is there any plans to do the undo on the editor? -- Everton Vieira. Design editor. sorry. It has low priority. I see. Thank you. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [lazarus-br] Re: Como passar uma procedure local como callback?
What the list thinks about this concepts: * The benefits of have centralized data on the help. * If it is like a relational database then would be possible to store more than one example for each case. * Should be store also who contributed with that example and when. * Is important that the work of a friend be acknowledge. * That information should be elegantly showed on offline help and also online help. * Make easy and secure that kind of contribution. * Easy is about to click a button (or a link inside the help), login the account, and send the data. * The noise that could be generated, to prevent that the login is something that helps. * Take care of the elegancy of the environment and none of it could be ugly. Em 20/02/2012, às 22:02, Everton Vieira escreveu: Em 20/02/2012, às 21:15, Everton Vieira escreveu: Em 20/02/2012, às 21:02, Everton Vieira escreveu: Em 20/02/2012, às 19:46, waldo kitty escreveu: On 2/20/2012 10:59, Everton Vieira wrote: Has been felt need for examples in the documentation. i haven't yet gotten to this stage of my stack of round to its (joke getting around to it) and this seems ok time... not only are examples needed but also sample output... i have been digging in the help, as many know, trying to get back my coding legs and have found examples that didn't have any output so that one could see what the result would be with certain input... i've also seen examples that said something to the effect of see this example over here which took you to another help item that did actually have some example code that may or may not contain the topic you were looking at before... and again, there is the need for sample output from sample input... not only should these examples be in/on the wiki, but they should also be in the offline local documentation... Some parts of the wiki could be generated by the same database that could also generate the offline help. I`m not well aware of the development of the help system but i bet some is been done in this way. After all, is far well know the benefits of have centralized data. And i`m not aware how the help data are been stored, but if it is like a relational database then would be possible to store more than one example for each case, and more, should be store also who contributed with that example and when. Is important that the work of a friend be acknowledge. And that information should be elegantly showed on offline help and also online. Now, to make easy and secure that kind of contribution, i bet is a challenge. Easy is about to click a button (or a link inside the help), login the account, and send the data. And of course theres the noise that could be generated, but to prevent that is also about to make the means secured, and the login is something that helps in that. And of course we should concern about the elegancy of the environment and none of this could be ugly. offline local documentation being the most important (IMhO)... -- ___ 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
[Lazarus] Multiple views that are right.
We should always remember that are multiple views that are right. So, the better would be to find means that they could coexist. Like in this: http://bugs.freepascal.org/view.php?id=21263 I've said: But consider the idea to make some values property on dbcombobox. Luiz Americo said: TDBComboBox should keep as is, because not every one needs this feature. Then i replied: Isn`t better to put the values property in the dbcombobox and if is empty then is not used? This is an example, i'm not crazy about this feature, but in this example the new behavior doesn't affects the old one and can coexist peacefully with it and, of course, increase the functionality of the class. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [lazarus-br] Re: Como passar uma procedure local como callback?
Has been felt need for examples in the documentation. Bah, tu tais complementamente certo, faz muito falta um exemplo ou até alguns né. Em 20 de fevereiro de 2012 13:50, silvioprog silviop...@gmail.comescreveu: Em 20 de fevereiro de 2012 13:37, Daniel Gaspary dgasp...@gmail.com escreveu: Silvio, mas quer executar procedure interna mesmo ou foi só pro exemplo ? Por que me parece tão errado. Está querendo usar em outro escopo algo que só existe um escopo. Não é errado, só não é muito comum ver por aí. Há casos que realmente esta seria uma boa saída, porém ainda não posso falar o que é. :) Veja isso: http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revrevision=15656 Através desse link tudo indica que o recurso já está implementado, mas não tenho a menor ideia de qual seria a sintaxe. E ainda tem esse link: http://www.freepascal.org/docs-html/rtl/objects/callvoidlocal.html Porém infelizmente o FPC segue uma metodologia de documentação que não expões um mísero demo para os mortais. -- Silvio Clécio Site - silvioprog.com.br LazSolutions - code.google.com/p/lazsolutions -- Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr...@googlegroups.com Para ver mais opções, visite este grupo em http://groups.google.com.br/group/lazarus-br?hl=pt-BR -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus projects in a local repository
Well, i do not see much sense in put the lib files under version control. Unless the project is way too big and the compiling time is considered about. Even in that i don't think would be the case because would have to be a downgrade very big to make visible changes on that. 2012/2/20 Mark Morgan Lloyd markmll.laza...@telemetry.co.uk When storing a Lazarus project in a local Subversion or similar, what files should be added and what discarded? As a particular example, should .lrs files be saved or are they better regenerated as required? -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- __**_ Lazarus mailing list Lazarus@lists.lazarus.**freepascal.orgLazarus@lists.lazarus.freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarushttp://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [lazarus-br] Re: Como passar uma procedure local como callback?
Em 20/02/2012, às 19:46, waldo kitty escreveu: On 2/20/2012 10:59, Everton Vieira wrote: Has been felt need for examples in the documentation. i haven't yet gotten to this stage of my stack of round to its (joke getting around to it) and this seems ok time... not only are examples needed but also sample output... i have been digging in the help, as many know, trying to get back my coding legs and have found examples that didn't have any output so that one could see what the result would be with certain input... i've also seen examples that said something to the effect of see this example over here which took you to another help item that did actually have some example code that may or may not contain the topic you were looking at before... and again, there is the need for sample output from sample input... not only should these examples be in/on the wiki, but they should also be in the offline local documentation... Some parts of the wiki could be generated by the same database that could also generate the offline help. I`m not well aware of the development of the help system but i bet some is been done in this way. After all, is far well know the benefits of have centralized data. And i`m not aware how the help data are been stored, but if it is like a relational database then would be possible to store more than one example for each case, and more, should be store also who contributed with that example and when. Is important that the work of a friend be acknowledge. And that information should be elegantly showed on offline help and also online. offline local documentation being the most important (IMhO)... -- ___ 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] [lazarus-br] Re: Como passar uma procedure local como callback?
Em 20/02/2012, às 21:02, Everton Vieira escreveu: Em 20/02/2012, às 19:46, waldo kitty escreveu: On 2/20/2012 10:59, Everton Vieira wrote: Has been felt need for examples in the documentation. i haven't yet gotten to this stage of my stack of round to its (joke getting around to it) and this seems ok time... not only are examples needed but also sample output... i have been digging in the help, as many know, trying to get back my coding legs and have found examples that didn't have any output so that one could see what the result would be with certain input... i've also seen examples that said something to the effect of see this example over here which took you to another help item that did actually have some example code that may or may not contain the topic you were looking at before... and again, there is the need for sample output from sample input... not only should these examples be in/on the wiki, but they should also be in the offline local documentation... Some parts of the wiki could be generated by the same database that could also generate the offline help. I`m not well aware of the development of the help system but i bet some is been done in this way. After all, is far well know the benefits of have centralized data. And i`m not aware how the help data are been stored, but if it is like a relational database then would be possible to store more than one example for each case, and more, should be store also who contributed with that example and when. Is important that the work of a friend be acknowledge. And that information should be elegantly showed on offline help and also online. Now, to make easy and secure that kind of contribution, i bet is a challenge. offline local documentation being the most important (IMhO)... -- ___ 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] [lazarus-br] Re: Como passar uma procedure local como callback?
Em 20/02/2012, às 21:15, Everton Vieira escreveu: Em 20/02/2012, às 21:02, Everton Vieira escreveu: Em 20/02/2012, às 19:46, waldo kitty escreveu: On 2/20/2012 10:59, Everton Vieira wrote: Has been felt need for examples in the documentation. i haven't yet gotten to this stage of my stack of round to its (joke getting around to it) and this seems ok time... not only are examples needed but also sample output... i have been digging in the help, as many know, trying to get back my coding legs and have found examples that didn't have any output so that one could see what the result would be with certain input... i've also seen examples that said something to the effect of see this example over here which took you to another help item that did actually have some example code that may or may not contain the topic you were looking at before... and again, there is the need for sample output from sample input... not only should these examples be in/on the wiki, but they should also be in the offline local documentation... Some parts of the wiki could be generated by the same database that could also generate the offline help. I`m not well aware of the development of the help system but i bet some is been done in this way. After all, is far well know the benefits of have centralized data. And i`m not aware how the help data are been stored, but if it is like a relational database then would be possible to store more than one example for each case, and more, should be store also who contributed with that example and when. Is important that the work of a friend be acknowledge. And that information should be elegantly showed on offline help and also online. Now, to make easy and secure that kind of contribution, i bet is a challenge. Easy is about to click a button (or a link inside the help), login the account, and send the data. And of course theres the noise that could be generated, but to prevent that is also about to make the means secured, and the login is something that helps in that. And of course we should concern about the elegancy of the environment and none of this could be ugly. offline local documentation being the most important (IMhO)... -- ___ 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] I made a visualization of the Lazarus SVN repository
2012/2/17 Juha Manninen juha.mannine...@gmail.com 2012/2/17, Everton Vieira tonvie...@gmail.com: Em 17/02/2012, às 15:41, Juha Manninen escreveu: Everton, start providing patches. It is easy and secure! :) Always that I can I will :) And you fly a lot brother! That`s so nice. Sure you have a very large view of it. Wish i had too. I don't really have so big view. The existing code must be studied always when creating new code. A good IDE with its code browsing and other features is important then, it works as an extension of the brains. Well, I had the idea that would be good to integrate in the IDE the process of bug report and patching. Today is too diffuse this work and many doesn't even know what it is. Make integrate in the IDE would make more concentrated and visible. Do you have problems now creating bug reports and patches? What kind of problems? None. I don't know how, and why, should patching be integrated in IDE. A patch is easy to make with svn diff for example. I know, but let's make visible in the IDE. The difficult part is actually creating high quality code for a big project of over 1 000 000 LOC. There is no simple trick to make that easy. I know too, that's why many like me are afraid of it. Integrating bug reporting into IDE would have benefits if the IDE can trap an exception and include details of it in the report, together with info about the environment, and send it (semi-)automatically somewhere. Until that is implemented, the current issue tracker works very well IMO. I know too, the idea is only a front end, or by start, a link in the IDE, would do. Juha Understand, the idea is much more about to make visible than anything else. At least by now. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I made a visualization of the Lazarus SVN repository
2012/2/18 Everton Vieira tonvie...@gmail.com 2012/2/17 Juha Manninen juha.mannine...@gmail.com 2012/2/17, Everton Vieira tonvie...@gmail.com: Em 17/02/2012, às 15:41, Juha Manninen escreveu: Everton, start providing patches. It is easy and secure! :) Always that I can I will :) And you fly a lot brother! That`s so nice. Sure you have a very large view of it. Wish i had too. I don't really have so big view. The existing code must be studied always when creating new code. A good IDE with its code browsing and other features is important then, it works as an extension of the brains. Well, I had the idea that would be good to integrate in the IDE the process of bug report and patching. Today is too diffuse this work and many doesn't even know what it is. Make integrate in the IDE would make more concentrated and visible. Do you have problems now creating bug reports and patches? What kind of problems? None. I don't know how, and why, should patching be integrated in IDE. A patch is easy to make with svn diff for example. I know, but let's make visible in the IDE. The difficult part is actually creating high quality code for a big project of over 1 000 000 LOC. There is no simple trick to make that easy. I know too, that's why many like me are afraid of it. Integrating bug reporting into IDE would have benefits if the IDE can trap an exception and include details of it in the report, together with info about the environment, and send it (semi-)automatically somewhere. Until that is implemented, the current issue tracker works very well IMO. I know too, the idea is only a front end, or by start, a link in the IDE, would do. Juha Understand, the idea is much more about to make visible than anything else. At least by now. And in that, could be thinking something about this movie too, it has to be more visible than is today. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] I made a visualization of the Lazarus SVN repository
Em 17/02/2012, às 15:41, Juha Manninen escreveu: 2012/2/16, Everton Vieira tonvie...@gmail.com: Look who does the things around here are a bunch of heroes. We have to increase this number. Making easy and secure is the way. Everton, start providing patches. It is easy and secure! :) Always that I can I will :) And you fly a lot brother! That`s so nice. Sure you have a very large view of it. Wish i had too. Well, I had the idea that would be good to integrate in the IDE the process of bug report and patching. Today is too diffuse this work and many doesn't even know what it is. Make integrate in the IDE would make more concentrated and visible. Bernd, how long you think the animation is kept in the Vimeo site? It would be nice to have a similar animation from a longer period of time, saved in place where it will stay for reasonably long, and provide a link in Wiki pages. There are amazing pieces of SW out there, like this gource, which most people don't know about. I didn't know about it before this video. Juha -- ___ 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] I made a visualization of the Lazarus SVN repository
That`s so fun! Em 15/02/2012, às 23:17, Bernd escreveu: ...using gource. Its quite interesting and funny to watch: http://vimeo.com/36868024 Its only a few months from last summer until yesterday but you can watch busy developers flying around from file to file, watch the customdrawn interface grow and see which developers are mostly attracted by which parts of the project. -- ___ 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] I made a visualization of the Lazarus SVN repository
Look who does the things around here are a bunch of heroes. We have to increase this number. Making easy and secure is the way. Em 16/02/2012, às 08:02, Everton Vieira escreveu: That`s so fun! Em 15/02/2012, às 23:17, Bernd escreveu: ...using gource. Its quite interesting and funny to watch: http://vimeo.com/36868024 Its only a few months from last summer until yesterday but you can watch busy developers flying around from file to file, watch the customdrawn interface grow and see which developers are mostly attracted by which parts of the project. -- ___ 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] How about Ctrl+Shift+Alt+Space completes code with empty values.
Em 14/02/2012, às 18:56, Martin escreveu: On 14/02/2012 17:43, Everton Vieira wrote: How about Ctrl+Shift+Alt+Space completes the code with empty values. Like this: Trim(); After Ctrl+Shift+Alt+Space inside that parentheses makes this: Trim(''); Just, another idea. :) You do know shift-ctrl-space ? Which opens a hint showing the possible parameter list(s). That also has the advantage to work if there are overloaded versions. I know. Thanks. In 0.9.31 you can then insert the one you need, with the mouse (sorry no keyboard) -- a good overview http://wiki.lazarus.freepascal.org/Lazarus_IDE_Tools http://wiki.lazarus.freepascal.org/New_IDE_features_since -- ___ 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] How about Ctrl+Shift+Alt+Space completes code with empty values.
Em 15/02/2012, às 07:21, Lukasz Sokol escreveu: On 14/02/2012 17:43, Everton Vieira wrote: How about Ctrl+Shift+Alt+Space completes the code with empty values. Like this: Trim(); After Ctrl+Shift+Alt+Space inside that parentheses makes this: Trim(''); Just, another idea. :) Trim is bad example :) but if you wanted Ctrl+Shift+Alt+Space to expand, e.g. AnsiReplaceString() into AnsiReplaceString('','','') What would you put as 'empty' parameter for functions that have numeric meaning, and don't really tolerate 0 as input As a code complementation suggestion theres no need to put 0 instead is better only put the comma when the parameter is required. (hypothetical: function Divide(A: integer; B: integer):Real; if you expand Divide() to Divide(0,0) and forget to put some meaningful constant into B (or variable) you'll end up with executing div/0 and as such, an error) As such such expansion IMO is futile. This idea came when i had to type about ten times a function like this func('', '', [], '', [] , []); wich time the parameters changed, of course i did ctrl+c ctrl+v. This would be only a very subtle behavior. Like every one knows, details are in the art of the elegancy. L. -- ___ 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] Lazarus slow on large files
Em 15/02/2012, às 09:17, michael.vancann...@wisa.be escreveu: On Wed, 15 Feb 2012, Sven Barth wrote: Am 15.02.2012 09:14, schrieb Michael Van Canneyt: Hi, I was doing some test programming for android. The android SDK unit contains 68000 lines (.pas and .inc together). Opening it in the IDE (by right-clicking an identifier in my sources) virtually stops the IDE. The source of the android include file are drawn, but the scrollbars are not drawn, scrolling or navigating the source does not work, and the IDE is generally totally unresponsive. Only closing the tab again makes the IDE responsive. (and even the closing takes a while). All this is on Linux, GTK, 64-bit, Lazarus from yesterday. Has anyone else experienced similar problems ? Yes, me of course :D (also x86_64-linux, though the IDE is from around the beginning of the year) Though it was bearable as I moved my Android development to my rather powerful machine (because JVM compilation is rather slow and also blocks my single core main computer -.- ) and used it through X11 forwarding... My PC is an 4-core machine ? It should be able to handle this with its fingers up its nose, I would think... It's clearly an issue in drawing, because the code completion seems to work fine. If someone had to go on the drawing of the editor, please someone, consider to put lines to show block structure if an option is marked, like the cnpack does in delphi. I`m aware this is an complicanting of it, but is also a good feature that many likes. Michael. -- ___ 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] i'm looking for tips on debugging deep nested code with recursive functions
Em 15/02/2012, às 09:49, ik escreveu: Hello, I have a code with a lot of loops and recursive calls. Somewhere at the code, at some point, I think I have an Off By One or something similar that happens that break my code. The question is, how would you suggest to compile such complicated calls to figure out where the problem/s exists ? For debug that, would be nice to make some log of the behavior of the app, that i`ve been thinking this days, but in which doesn't get nothing at far as usable. Well you can make a lot of debugln to monitor the behavior of it to try to see where is the problem. But i`m freak sure is hard work. I'm using Lazarus 0.9.31 r35319M FPC 2.5.1 x86_64-linux-gtk 2 if that's helps Thanks, Ido -- ___ 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] How about Ctrl+Shift+Alt+Space completes code with empty values.
Em 15/02/2012, às 10:35, Lukasz Sokol escreveu: On 15/02/2012 10:27, Everton Vieira wrote: As a code complementation suggestion theres no need to put 0 instead is better only put the comma when the parameter is required. [...] This idea came when i had to type about ten times a function like this func('', '', [], '', [] , []); wich time the parameters changed, of course i did ctrl+c ctrl+v. This would be only a very subtle behavior. Like every one knows, details are in the art of the elegancy. Well as such, it /may/ be viable and useful (put just commas _between_ parameters) but '' and [] is making an exception to the rule so I'd rather The exceptions are the ones that makes shine. func(,) or func( , , , , , ) than what you suggest; This however requires that you can only add parameters to the last place of definition, Why is that so? Is only a code complementation. and never-ever reorder them, having the editor track that you've added a parameter Same here. in the middle of the definition and change invocation accordingly is probably not going to be well-accepted maintenance-wise... What for the functions that have parameters with default values, that are only used in exceptional cases ? Do you want to show the non-default param placeholders only? The default lets not complete, after all, they have default values just because isn`t need in a considered number of cases. Ctrl+Shift+C specialized is the better option for, i guess. L. -- ___ 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] How about Ctrl+Shift+Alt+Space completes code with empty values.
And of course there`s the overload statements, that can receive an special/exceptional treatment as well. Em 15/02/2012, às 10:50, Everton Vieira escreveu: Em 15/02/2012, às 10:35, Lukasz Sokol escreveu: On 15/02/2012 10:27, Everton Vieira wrote: As a code complementation suggestion theres no need to put 0 instead is better only put the comma when the parameter is required. [...] This idea came when i had to type about ten times a function like this func('', '', [], '', [] , []); wich time the parameters changed, of course i did ctrl+c ctrl+v. This would be only a very subtle behavior. Like every one knows, details are in the art of the elegancy. Well as such, it /may/ be viable and useful (put just commas _between_ parameters) but '' and [] is making an exception to the rule so I'd rather The exceptions are the ones that makes shine. func(,) or func( , , , , , ) than what you suggest; This however requires that you can only add parameters to the last place of definition, Why is that so? Is only a code complementation. and never-ever reorder them, having the editor track that you've added a parameter Same here. in the middle of the definition and change invocation accordingly is probably not going to be well-accepted maintenance-wise... What for the functions that have parameters with default values, that are only used in exceptional cases ? Do you want to show the non-default param placeholders only? The default lets not complete, after all, they have default values just because isn`t need in a considered number of cases. Ctrl+Shift+C specialized is the better option for, i guess. L. -- ___ 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] i'm looking for tips on debugging deep nested code with recursive functions
Em 15/02/2012, às 11:01, ik escreveu: On Wed, Feb 15, 2012 at 14:19, ik ido...@gmail.com wrote: On Wed, Feb 15, 2012 at 13:59, Everton Vieira tonvie...@gmail.com wrote: Em 15/02/2012, às 09:49, ik escreveu: Hello, I have a code with a lot of loops and recursive calls. Somewhere at the code, at some point, I think I have an Off By One or something similar that happens that break my code. The question is, how would you suggest to compile such complicated calls to figure out where the problem/s exists ? For debug that, would be nice to make some log of the behavior of the app, that i`ve been thinking this days, but in which doesn't get nothing at far as usable. Well you can make a lot of debugln to monitor the behavior of it to try to see where is the problem. But i`m freak sure is hard work. I have a lot of prints on the screen (stderr even). but I just can't figure out what am I missing. I know where it happens, and on what level, but not why. Simple debug conditions works. found the reason, but not what cause it :) I think you`ll have to go and see the three with its roots and so on that will happen to generate your problem. I think only with that view would be able to solve it. Specially in a app with recursive behavior. That`s in some cases is a lot complex. So, my guess remains, a lot of debugln. I'm using Lazarus 0.9.31 r35319M FPC 2.5.1 x86_64-linux-gtk 2 if that's helps Thanks, Ido -- ___ 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 -- ___ 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] [Lazarusdev] CNPack lines
Em 15/02/2012, às 12:47, Martin escreveu: On 15/02/2012 11:25, Everton Vieira wrote: If someone had to go on the drawing of the editor, please someone, consider to put lines to show block structure if an option is marked, like the cnpack does in delphi. I`m aware this is an complicanting of it, but is also a good feature that many likes. I know of them for a long time, and yes I do have plans to add them. So good! I`m sure many will appreciate that. But I have still other things on top of my list. I don't have Delphi with CNPack, but out of interest: If you put 1000 lines (fill each line with caption := 'a'+#44+inttostr(9); / Maybe a few nested If) between the begin and end of an If = does it slow down? I know that is not likely code, but ... Just to make the point, load MacOsAll (packages/univint from an older fpc 2.4.0 (300.000 lines) in delphi, select all (ctrl-a). In turbo delphi (2007) you can now go get your coffee. k, maybe some cookies also. Just kidding. It will be locked up for minutes (my guess: the search for equal words, for syncro edit) And also there are other bits: currently Lazarus highlighter does have no awareness of the statement. it goes from begin to end (well that could still draw a line, but does not mark the IF If a =1 then begin Folding starts at begin too, not at if (of course, as I said, that is not a stopper) --- The main issue s finding all the outer the block begin, in a fast way. Actually that is now work in progress (still low prior). It is needed by another feature. (for preview compile trunk with WithSynInfoView defined). Open a file with 100.000 lines go to the end, navigate (it will be noticeable slow) ___ Lazarusdev mailing list lazarus...@freepascal.org http://idefix.wisa.be/mailman/listinfo/lazarusdev -- ___ 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] [fpc-devel] Documentation contribution
Em 15/02/2012, às 17:52, Martin escreveu: On 15/02/2012 19:27, Mattias Gaertner wrote: On Fri, 10 Feb 2012 14:52:13 +0100 Hans-Peter Diettrichdrdiettri...@aol.com wrote: [...] IMO notes should not be hidden in comments. I want them displayed also in the final docs - just as a reminder that some text is not reliable. Reminders must be clearly marked. A simple [?] can be misleading. And I would also cut that into 2 categories. To me a simple Todo does not belong to the end user. (like Need to write an example, or Review English grammar) If the end user, could use the IDE to contribute, writing an example by example and by clicking in a button this were send to some pool to be checked and then incorpored, then maybe it will be very good. I know there`s a lot to be done to get such a tool, but the idea is good. In an open source project we should always thinking about to make easy and secure the process of contribute. Is better for all. On the other hand, the following (in proper English) could be ok: This documentation is outdated, the parameters to the function have changed. (give more info if avail) also ok This differs from Delphi To add such notes, the reviewer must have at least enough understanding, to be sure that something is wrong. A simple looks wrong to me or I don't get that at all is not enough to add a note. If we risk adding false notes (well it can always happen, but should be as low risk as possible) then what good are the notes? You could not trust them anyway. --- We can always offer 2 (or more) versions of the help. With/Without notes -- ___ 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] [lazarus-br] Ao dar commit fecha todas as janelas
Concordo, é preciso evoluir o cross compile para que seja fácil. Agree, is urge to evolve the cross compile to be easy. I been thinking, and if, some like this tech of the fpCup, (if i`m not wrong about the fpCup means), was implemented, to automatically download the necessaries units for the cross compile works in the case that they are trying to be used. It will be necessary some database of the units, i guess, and for sure another things also. But it will be very good feature. The meaning of something like this is of course to make easy the cross-compile job. Em 14/02/2012, às 12:43, Marcelo Florindo escreveu: É tanta condificional para fazer um sistema rodar que até desanima no delphi não tenho este problema é rápido e pronto. É a segunda vez que eu tento utiliza-lo e acaba sempre me atrasando. Uma pena! Att, Marcelo Em 14 de fevereiro de 2012 12:17, Everton Vieira tonvie...@gmail.com escreveu: Tem que ajustar o target e ter alguns arquivos do destino. Eu não sei exatamente como se faz. Parece que é mais complicadinho fazer esse cross compile porque não é o SO que muda e sim a arquitetura do processador. Eu sei que isso precisa ser tratado para compilar. A tecnologia de cross compile do lazarus na minha HUMILDE opinião ainda tem muito a evoluir. Pelo que eu tive lendo ainda é muito complicado de fazer. Sempre convém dar uma olhadinha no wiki: http://wiki.lazarus.freepascal.org/Cross_compiling Em 14/02/2012, às 12:02, Marcelo Florindo escreveu: putsmas para eu produzir aplicativos para 32 bits terei que instalar em outra máquina de 32? Não consigo gerar pelo lazarus, se rodando em 64, aplicativos para 32? Valeu; Marcelo Em 14 de fevereiro de 2012 11:57, Everton Vieira tonvie...@gmail.com escreveu: Cara deve ser alguma incompatibilidade 32/64b. Em 14/02/2012, às 11:55, Marcelo Florindo escreveu: E o problema continua mesmo assim: sqlPadrao.Post; dmConexao.transacao.Commit; Se der o commit ele fecha todas as janelas. Em 14 de fevereiro de 2012 11:52, Marcelo Florindo marcelo.em.lis...@gmail.com escreveu: Olá, Estou usando datacontrols. Em 14 de fevereiro de 2012 11:46, Everton Vieira tonvie...@gmail.com escreveu: Se tais passando um comando SQL direto usa o Open ou o ExecuteSQL; Em 14/02/2012, às 11:35, Everton Vieira escreveu: O ApplyUpdates é usado com os componentes da paleta DataControls, é esse tipo de construção que tais fazendo? Senão acho que vai dar erro mesmo. Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr...@googlegroups.com Para ver mais opções, visite este grupo em http://groups.google.com.br/group/lazarus-br?hl=pt-BR -- Marcelo - Desenvolvedor/Analista Sites e Sistemas - -- Marcelo - Desenvolvedor/Analista Sites e Sistemas - -- Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr...@googlegroups.com Para ver mais opções, visite este grupo em http://groups.google.com.br/group/lazarus-br?hl=pt-BR -- Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr...@googlegroups.com Para ver mais opções, visite este grupo em http://groups.google.com.br/group/lazarus-br?hl=pt-BR -- Marcelo - Desenvolvedor/Analista Sites e Sistemas - -- Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr...@googlegroups.com Para ver mais opções, visite este grupo em http://groups.google.com.br/group/lazarus-br?hl=pt-BR -- Você recebeu esta mensagem porque está inscrito no Grupo Lazarus-BR nos Grupos do Google. Para postar neste grupo, envie um e-mail para lazarus...@googlegroups.com Para cancelar a sua inscrição neste grupo, envie um e-mail para lazarus-br+unsubscr
[Lazarus] How about Ctrl+Shift+Alt+Space completes code with empty values.
How about Ctrl+Shift+Alt+Space completes the code with empty values. Like this: Trim(); After Ctrl+Shift+Alt+Space inside that parentheses makes this: Trim(''); Just, another idea. :) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How about Ctrl+Shift+Alt+Space completes code with empty values.
Em 14/02/2012, às 15:54, ik escreveu: On Tue, Feb 14, 2012 at 19:43, Everton Vieira tonvie...@gmail.com wrote: How about Ctrl+Shift+Alt+Space completes the code with empty values. Like this: Trim(); After Ctrl+Shift+Alt+Space inside that parentheses makes this: Trim(''); Just, another idea. :) Or the CTRL+SHIFT+C continue to complete code, on this cases as well :) Sure will be better than memorize another shortcut is to specialize one thats already exists. -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TDBLookupComboBox listing from TMemDataSet
In the version 0.9.31 work out. But as i said in the bug tracker, i`ve used a dblookupcombobox with a memdataset because i needed to list some values and save others, the keys. Despite i had a fixed list of values i had to use a dblookupcombobox instead of a simple dbcombobox because he does not have any option to list some values and save others like the dbradiogroup has. Which is a common use of it, by example, to list the names and save the initials only. Well, let here too an appel, that i`m sure would be a lot of useful in a lot of cases. Em 11/02/2012, às 13:17, Luiz Americo Pereira Camara escreveu: On 10/2/2012 17:03, Everton Vieira wrote: Sorry, they are not able to insert or modify, they make nothing when LookupCache is False. What Lazarus version are using? Versions from trunk have no difference when LookupCache is True or False Can you post a simple example? Luiz -- ___ 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] user web front-end to fpdoc (LUFDOC)
It has to have some Secure and Easy way to community development. The tools that makes easier are the ones that can make more secure. Is the most wiser to do something in this way. Em 13/02/2012, às 08:20, Graeme Geldenhuys escreveu: Yeah, I read that, but still not 100% sure what everything he wants that tool to do. But for that reason, I thought it worth raising the awareness of an already existing tool that seems functional today - especially for capturing user comments to existing documentation (which seems a hot topic here), without interfering with the fpdoc xml files. Docs and comments are store in separate files. -- Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Why the Java became so strong?
Why the Java became so strong? We could think about the good large library. We could think about the eclipse IDE. We could think about the partnerships. But doesn`t matter. What`s matter is that the fpc/lazarus has even more potential than. What`s matter is why this potential have not yet spread out widely. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Why the Java became so strong?
Em 13/02/2012, às 13:45, Reinier Olislagers escreveu: I think a lot of people will appreciate it if you start a new topic by posting a new message to the list, not replying to a previous message. I though i had separated the topics, sorry about it. Otherwise, your messages end up in the same thread, which will confuse people and perhaps let them overlook a new post. As for the content of your post: having had a look at the loading time of the Eclipse IDE a while ago, I'm glad I'm using Lazarus (things may have improved since then). You certainly have a point with the other two items, though. I do not want to make any apologia of it here. I`m too glad in Lazarus, but is always good to know what happens in the market. As for your other conclusion: nice points, but I think the future of Lazarus/FPC thread on the forum already has a very detailed discussion on this, so I think I won't contribute to the same discussion on this list ;) I didn`t know that, there`s any link for? Thanks, Reinier -- ___ 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] Why the Java became so strong?
I found this: http://forum.lazarus.freepascal.org/index.php/topic,13754.msg86355.html#msg86355 But not sure if you referred this. Em 13/02/2012, às 14:06, Everton Vieira escreveu: Em 13/02/2012, às 13:45, Reinier Olislagers escreveu: I think a lot of people will appreciate it if you start a new topic by posting a new message to the list, not replying to a previous message. I though i had separated the topics, sorry about it. Otherwise, your messages end up in the same thread, which will confuse people and perhaps let them overlook a new post. As for the content of your post: having had a look at the loading time of the Eclipse IDE a while ago, I'm glad I'm using Lazarus (things may have improved since then). You certainly have a point with the other two items, though. I do not want to make any apologia of it here. I`m too glad in Lazarus, but is always good to know what happens in the market. As for your other conclusion: nice points, but I think the future of Lazarus/FPC thread on the forum already has a very detailed discussion on this, so I think I won't contribute to the same discussion on this list ;) I didn`t know that, there`s any link for? Thanks, Reinier -- ___ 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] Why the Java became so strong?
This discussion walked too much about the tech which i don`t think is the case.But JuhaManninen hadsaid sogoodly:"The fact is that FPC / Lazarus is an almost unknown niche language / environment. I am studying information technology and programming in a university of applied sciences and there nobody knows about FPC or Lazarus, not even the teachers. Everybody knows about C, C++, Java, Eclipse, .NET, C#, PHP, Python, sh scripts, Lisp, even Haskell, but not about FPC or Lazarus.If those people don't know, it means nobody knows.Comparing FPC / Lazarus directly with Java / Eclipse and saying they are equal is not a balanced comparison. You ignore that Java has millions of developers while FPC / Lazarus only has few desperate geeks (like myself).Why is it so? Another fact is that FPC / Lazarus would deserve better.As a comparison: why is PHP so popular and still gaining popularity? The language itself has nothing exciting. It is a dynamic language and should not be suitable for big projects, yet big and high-quality projects like Drupal and Zend have been developed with it.PHP's secrets are :- ease of deployment- ease of usage- good documentation (see php.net)FPC libs are documented somehow, LCL not so well. Even the documented things are difficult to find.One problem are the "black holes" in the libraries, most notably the container libraries. Every decent programming environment today has a well structured, well documented (generics) container library. FPC / Lazarus has not. Instead it has some competing containers in FCL and LCL, and some generics containers which have some kind of beta status. For example there are associative hash maps in many places (no generics ones) but nobody knows about their usage.This is like directly from early 1990's.How to improve things:- Better container lib.- Better documentation.- Easier installation.- Publicity! This would be the most important now. The other parts are in a decently good condition.Successful projects have a public relations side-project, advertising themselves somehow. Product releases are one way to get free advertising. Thus it is very bad for publicity that Lazarus has releases so seldom. A product release is always mentioned in some programming site, read by potential users. Without releases this looks like a dead project.I think CodeTyphon has good goals to solve some of these problems. I don't know how well they did it, I honestly have never tried it yet.Garbage collector in FPC is a bad idea IMO. Compiled binary code, manual memory management, reference counted strings and a clear syntax make up a unique combination.What are the practical alternatives when you want tight code without garbage collection? They are C and C++.Often people are afraid of memory problems because they have struggled with C++. They think the problems were caused by memory management while in fact they were caused by C++ syntax and features.In school I had to make string class with overloaded "=" and "+" operators using C++. Even with that "simple" class I had serious memory problems (crashes and leaks). Using Object Pascal I could do a class with similar complexity without memory problems.I would say in 99% of cases the memory allocation / release is easy and has no issues when the objects' ownership is well defined.The remaining 1% needs some effort. There was an issue with Lazarus where a garbage collection would have helped: #18506: access violation when switching designer/lfm sourcebut that was really the only bad one I have struggled with."Em 13/02/2012, às 14:28, Reinier Olislagers escreveu:On 13-2-2012 17:24, Everton Vieira wrote:I found this:http://forum.lazarus.freepascal.org/index.php/topic,13754.msg86355.html#msg86355But not sure if you referred this.Yep, that's the thread I was talking about...Regards,Reinier--___Lazarus mailing listLazarus@lists.lazarus.freepascal.orghttp://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] Why the Java became so strong?
The market and the education environments are practical unaware that we exist. Em 13/02/2012, às 14:55, Everton Vieira escreveu: This discussion walked too much about the tech which i don`t think is the case. But JuhaManninen had said so goodly: The fact is that FPC / Lazarus is an almost unknown niche language / environment. I am studying information technology and programming in a university of applied sciences and there nobody knows about FPC or Lazarus, not even the teachers. Everybody knows about C, C++, Java, Eclipse, .NET, C#, PHP, Python, sh scripts, Lisp, even Haskell, but not about FPC or Lazarus. If those people don't know, it means nobody knows. Comparing FPC / Lazarus directly with Java / Eclipse and saying they are equal is not a balanced comparison. You ignore that Java has millions of developers while FPC / Lazarus only has few desperate geeks (like myself). smile.gif Why is it so? Another fact is that FPC / Lazarus would deserve better. As a comparison: why is PHP so popular and still gaining popularity? The language itself has nothing exciting. It is a dynamic language and should not be suitable for big projects, yet big and high-quality projects like Drupal and Zend have been developed with it. PHP's secrets are : - ease of deployment - ease of usage - good documentation (see php.net) FPC libs are documented somehow, LCL not so well. Even the documented things are difficult to find. One problem are the black holes in the libraries, most notably the container libraries. Every decent programming environment today has a well structured, well documented (generics) container library. FPC / Lazarus has not. Instead it has some competing containers in FCL and LCL, and some generics containers which have some kind of beta status. For example there are associative hash maps in many places (no generics ones) but nobody knows about their usage. This is like directly from early 1990's. How to improve things: - Better container lib. - Better documentation. - Easier installation. - Publicity! This would be the most important now. The other parts are in a decently good condition. Successful projects have a public relations side-project, advertising themselves somehow. Product releases are one way to get free advertising. Thus it is very bad for publicity that Lazarus has releases so seldom. A product release is always mentioned in some programming site, read by potential users. Without releases this looks like a dead project. I think CodeTyphon has good goals to solve some of these problems. I don't know how well they did it, I honestly have never tried it yet. Garbage collector in FPC is a bad idea IMO. Compiled binary code, manual memory management, reference counted strings and a clear syntax make up a unique combination. What are the practical alternatives when you want tight code without garbage collection? They are C and C++. Often people are afraid of memory problems because they have struggled with C++. They think the problems were caused by memory management while in fact they were caused by C++ syntax and features. In school I had to make string class with overloaded = and + operators using C++. Even with that simple class I had serious memory problems (crashes and leaks). Using Object Pascal I could do a class with similar complexity without memory problems. I would say in 99% of cases the memory allocation / release is easy and has no issues when the objects' ownership is well defined. The remaining 1% needs some effort. There was an issue with Lazarus where a garbage collection would have helped: #18506: access violation when switching designer/lfm source but that was really the only bad one I have struggled with. Em 13/02/2012, às 14:28, Reinier Olislagers escreveu: On 13-2-2012 17:24, Everton Vieira wrote: I found this: http://forum.lazarus.freepascal.org/index.php/topic,13754.msg86355.html#msg86355 But not sure if you referred this. Yep, that's the thread I was talking about... Regards, Reinier -- ___ 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] Why the Java became so strong?
Thanks for the correction! :-) Must be my english that fails! Em 13/02/2012, às 17:44, Marcos Douglas escreveu: On Mon, Feb 13, 2012 at 4:40 PM, Everton Vieira tonvie...@gmail.com wrote: Is true, but in the mind of most of this people the pascal is dead. And the better of this people will be even sorry about it ;) After all, the pascal always was an elegant language. Correcting: The Pascal IS an elegant language. ;-) Marcos Douglas -- ___ 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
[Lazarus] TDBLookupComboBox listing from TMemDataSet
If a set the LookupCache to True they read, but generates error on insert: can`t convert null to string. If a set the LookupCache to False they don`t read, but is able to insert and modify. Anyone knows anything about it? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TDBLookupComboBox listing from TMemDataSet
Sorry, they are not able to insert or modify, they make nothing when LookupCache is False. Em 10/02/2012, às 16:58, Everton Vieira escreveu: If a set the LookupCache to True they read, but generates error on insert: can`t convert null to string. If a set the LookupCache to False they don`t read, but is able to insert and modify. Anyone knows anything about it? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] If TProcess.CommandLine is deprecated...
How about in the SetCommandLine, of the property CommandLine he does the split between exename and parameters. By this, the two options could be available. Of course, who puts a parameter with space and not set the will deal with some error, which is good to learn. About that, could be created some manner to offer hints and tips on code editor in how about to use de elements of the class. It's will be very good documentation and also very good IDE behavior. Em 08/02/2012, às 08:36, Sven Barth escreveu: Am 08.02.2012 04:23, schrieb William Oliveira Ferreira: I agree that a comment in front of the deprecated would be good to the uninformed as me, but I also do not want to seem boring. I wish developers would focus on tools for debugging, but follow the road map and I see good things to come. A comment in front of the deprecated won't be good, but a string behind the deprecated would be nice ;) (for the reason see below) === example begin === program deprecatedtest; type TTest = class fFoo: String; property Foo: String read fFoo; deprecated 'I''m not needed anymore'; end; var t: TTest; begin t := TTest.Create; Writeln(t.Foo); end. === example end === === output begin === PS P:\tests\oneshots fpc .\deprecatedtest.pas Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling .\deprecatedtest.pas deprecatedtest.pas(15,13) Warning: Symbol Foo is deprecated: I'm not needed anymore Linking deprecatedtest.exe 16 lines compiled, 0.1 sec , 28608 bytes code, 1964 bytes data 1 warning(s) issued === output end === Regards, Sven -- ___ 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] If TProcess.CommandLine is deprecated...
The concept of deprecated is that is not needed anymore so tell that doesn't help much. Em 08/02/2012, às 09:52, William Oliveira Ferreira escreveu: you told correclty what i was trying to say wrongly =) William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/8 Sven Barth pascaldra...@googlemail.com Am 08.02.2012 04:23, schrieb William Oliveira Ferreira: I agree that a comment in front of the deprecated would be good to the uninformed as me, but I also do not want to seem boring. I wish developers would focus on tools for debugging, but follow the road map and I see good things to come. A comment in front of the deprecated won't be good, but a string behind the deprecated would be nice ;) (for the reason see below) === example begin === program deprecatedtest; type TTest = class fFoo: String; property Foo: String read fFoo; deprecated 'I''m not needed anymore'; end; var t: TTest; begin t := TTest.Create; Writeln(t.Foo); end. === example end === === output begin === PS P:\tests\oneshots fpc .\deprecatedtest.pas Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling .\deprecatedtest.pas deprecatedtest.pas(15,13) Warning: Symbol Foo is deprecated: I'm not needed anymore Linking deprecatedtest.exe 16 lines compiled, 0.1 sec , 28608 bytes code, 1964 bytes data 1 warning(s) issued === output end === Regards, Sven -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] If TProcess.CommandLine is deprecated...
That's true, if the procedure is really deprecated, then the question is what use instead. Em 08/02/2012, às 10:21, William Oliveira Ferreira escreveu: well, so i'll gonna be mor clear: just say that a property or function is deprecated without take a hint of what should be better used is obscure. just a hint of what should be used i'll help a lot.. William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/8 Everton Vieira tonvie...@gmail.com The concept of deprecated is that is not needed anymore so tell that doesn't help much. Em 08/02/2012, às 09:52, William Oliveira Ferreira escreveu: you told correclty what i was trying to say wrongly =) William de Oliveira Ferreira Bacharel em Sistemas de Informação 2012/2/8 Sven Barth pascaldra...@googlemail.com Am 08.02.2012 04:23, schrieb William Oliveira Ferreira: I agree that a comment in front of the deprecated would be good to the uninformed as me, but I also do not want to seem boring. I wish developers would focus on tools for debugging, but follow the road map and I see good things to come. A comment in front of the deprecated won't be good, but a string behind the deprecated would be nice ;) (for the reason see below) === example begin === program deprecatedtest; type TTest = class fFoo: String; property Foo: String read fFoo; deprecated 'I''m not needed anymore'; end; var t: TTest; begin t := TTest.Create; Writeln(t.Foo); end. === example end === === output begin === PS P:\tests\oneshots fpc .\deprecatedtest.pas Free Pascal Compiler version 2.6.0 [2011/12/25] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling .\deprecatedtest.pas deprecatedtest.pas(15,13) Warning: Symbol Foo is deprecated: I'm not needed anymore Linking deprecatedtest.exe 16 lines compiled, 0.1 sec , 28608 bytes code, 1964 bytes data 1 warning(s) issued === output end === Regards, Sven -- ___ 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 -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] If TProcess.CommandLine is deprecated...
Yeah, the documentation of it, are very good. Please, answer a silly question of mine, the deprecated functions are dropped? Em 08/02/2012, às 11:01, Sven Barth escreveu: Am 08.02.2012 13:50, schrieb Everton Vieira: That's true, if the procedure is really deprecated, then the question is what use instead. In case of TProcess.CommandLine it's mentioned here: http://www.freepascal.org/docs-html/fcl/process/tprocess.commandline.html (though it could have been mentioned in the deprecated message as well...) Regards, Sven -- ___ 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] If TProcess.CommandLine is deprecated...
Make sense. Thanks. But the previous idea of show the net development of the documentation with examples and tips of use it in the IDE is very good. The help of the delphi was always good, i remember the early days that i`ve successfully used. And the idea of keep multiple functionalities with different behaviors is also good, the problem in that is the rain of question that could came, and the solution of it is an good IDE help. And as an open source project the net development of the documentation should be include in the that help. Em 08/02/2012, às 11:14, Sven Barth escreveu: Am 08.02.2012 14:09, schrieb Everton Vieira: Yeah, the documentation of it, are very good. Please, answer a silly question of mine, the deprecated functions are dropped? That should be the long term goal. As the deprecated for that property was introduced for 2.6.0 it might be that they'll be removed in 2.8.0... (not in 2.6.2 or 2.6.4 for sure though). Regards, Sven Em 08/02/2012, às 11:01, Sven Barth escreveu: Am 08.02.2012 13:50, schrieb Everton Vieira: That's true, if the procedure is really deprecated, then the question is what use instead. In case of TProcess.CommandLine it's mentioned here: http://www.freepascal.org/docs-html/fcl/process/tprocess.commandline.html (though it could have been mentioned in the deprecated message as well...) Regards, Sven -- ___ 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 -- ___ 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] semaphores
A FileStream isn't enough? Maybe use a FileStream and don`t go far the disk. Em 08/02/2012, às 11:45, Antonio Fortuny escreveu: Because speed is an issue. I found TEventObject in syncobjs.pp Only one question: are these objects managed by the OS and kept system wide ? Le 08/02/2012 14:26, Michael Schnell a écrit : Why not just use a file ? -Michael -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Add notification to callstack change.
Hi there. I know very little about notifications, and maybe what i know is wrong, so any help would be useful. I`m trying to add some kind of notication that triggers an event when the callstack of the application is changed. By example, the Application.onException is trigged when an exception happens, some event similar to triggers when the callstack is changed, in other words, when the execution go to the next line of the code. Please help, any help will be usefull. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add notification to callstack change.
But, by example, if is possible to do a log with the exception back trace must be some how to do also a log of the call stack of the application. I think the Watch debugger has the know how for, the problem is to understand. Em 08/02/2012, às 12:26, Sven Barth escreveu: Am 08.02.2012 15:00, schrieb Everton Vieira: Hi there. I know very little about notifications, and maybe what i know is wrong, so any help would be useful. I`m trying to add some kind of notication that triggers an event when the callstack of the application is changed. By example, the Application.onException is trigged when an exception happens, some event similar to triggers when the callstack is changed, in other words, when the execution go to the next line of the code. Please help, any help will be usefull. You can't do this in an application itself. You need to use a debugger for that. Or do you mean interfacing with Lazarus' debugger interface? Regards, Sven -- ___ 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] Add notification to callstack change.
The case is: I have an enviroment that i can`t use the debugger of the lazarus, if i could i would by sure, then i`m trying to make some kind of log of some units, that times works out pretty well and some times don't. Here in my machine works out pretty well. I have already an to dame primitive function that makes that log that i need but i been thinking in how to make that log in a better way. Em 08/02/2012, às 12:26, Sven Barth escreveu: Am 08.02.2012 15:00, schrieb Everton Vieira: Hi there. I know very little about notifications, and maybe what i know is wrong, so any help would be useful. I`m trying to add some kind of notication that triggers an event when the callstack of the application is changed. By example, the Application.onException is trigged when an exception happens, some event similar to triggers when the callstack is changed, in other words, when the execution go to the next line of the code. Please help, any help will be usefull. You can't do this in an application itself. You need to use a debugger for that. Or do you mean interfacing with Lazarus' debugger interface? Regards, Sven -- ___ 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] Lazarus frozen on F1
For sure the help system could be improved. But about this error i don`t have any single idea. Em 08/02/2012, às 13:23, Felipe Monteiro de Carvalho escreveu: Hello, I have a strange issue. I configured chm help and everything was fine and nice and then I restarted my IDE and suddenly on pressing F1 my IDE froze instead of bringing LHelp. And now it always does that even after I restarted the computer =( The IDE remains frozen in this syscall: (gdb) bt #0 0xe430 in __kernel_vsyscall () #1 0x0805e778 in SYSTEM_FPSYSCALL$LONGINT$LONGINT$LONGINT$LONGINT$$LONGINT () #2 0x0805e8d8 in SYSTEM_FPOPEN$PCHAR$LONGINT$LONGWORD$$LONGINT () #3 0x080fe8da in BASEUNIX_FPOPEN$PCHAR$LONGINT$$LONGINT () #4 0x08092a1a in SYSUTILS_FILEOPEN$ANSISTRING$LONGINT$$LONGINT () #5 0xadcbb768 in ?? () #6 0x087d65dc in SIMPLEIPC_TPIPECLIENTCOMM_$__CONNECT () #7 0x087d7627 in SIMPLEIPC_TSIMPLEIPCCLIENT_$__CONNECT () #8 0x087d7445 in SIMPLEIPC_TSIMPLEIPCCLIENT_$__ACTIVATE () #9 0x087d6f5d in SIMPLEIPC_TSIMPLEIPC_$__SETACTIVE$BOOLEAN () #10 0xae599a38 in ?? () #11 0x0899bf6c in TCHMHELPVIEWER__SHOWNODE (NODE=0xadcbb700, ERRMSG=0x0, this=error reading variable) at lazchmhelp.pas:425 #12 0x0878ad28 in THTMLHELPDATABASE__SHOWURL (URL=0xadcd6c88 'lcl.chm://comctrls/tstatusbar.html', TITLE= 0x90948b0 'LCL - Lazarus Component Library Units', ERRMSG=0x0, this=error reading variable) at lazhelphtml.pas:211 #13 0x0873a264 in TFPDOCHTMLHELPDATABASE__SHOWHELP (QUERY=0xadcbb580, BASENODE=0x0, NEWNODE=0xb63e6760, QUERYITEM=0xae52f760, ERRMSG= 0x0, this=error reading variable) at helpfpdoc.pas:174 #14 0x08785d42 in THELPDATABASES__SHOWHELPFORNODES (QUERY=0xadcbb580, NODES=0xae52f7a0, ERRMSG=0x0, this=error reading variable) at lazhelpintf.pas:1537 #15 0x0878691b in THELPDATABASES__SHOWHELPFORPASCALCONTEXTS (QUERY=0xadcbb580, ERRMSG=0x0, this=error reading variable) at lazhelpintf.pas:1715 #16 0x08785dc2 in THELPDATABASES__SHOWHELPFORQUERY (QUERY=0xadcbb580, AUTOFREEQUERY=true, ERRMSG=0x0, this=error reading variable) at lazhelpintf.pas:1546 #17 0x08293da8 in SHOWHELPFORPASCALCONTEXTS (FILENAME= 0xb6060788 '/home/felipe/Programas/lazarus/components/chmhelp/lhelp/httpcontentprovider.pas', SOURCEPOSITION=..., LISTOFPASCALHELPCONTEXTLIST=0xae52f780, ERRMSG=0x0) at helpintfs.pas:382 ---Type return to continue, or q return to quit--- #18 0x08434ad2 in COLLECTDECLARATIONS (CODEBUFFER=0xae5886a0, COMPLETE=true, parentfp=0xbfffe23c) at idehelpmanager.pas:1398 #19 0x0843486e in TIDEHELPMANAGER__SHOWHELPFORSOURCEPOSITION (FILENAME= 0xb6060788 '/home/felipe/Programas/lazarus/components/chmhelp/lhelp/httpcontentprovider.pas', CODEPOS=..., ERRMSG=0x0, this= error reading variable) at idehelpmanager.pas:1427 #20 0x08433e85 in TIDEHELPDATABASES__SHOWHELPFORSOURCEPOSITION (QUERY=0xb6aa8400, ERRMSG=0x0, this=error reading variable) at idehelpmanager.pas:1103 #21 0x08785e94 in THELPDATABASES__SHOWHELPFORQUERY (QUERY=0xb6aa8400, AUTOFREEQUERY=true, ERRMSG=0x0, this=error reading variable) at lazhelpintf.pas:1556 #22 0x08293e32 in SHOWHELPORERRORFORSOURCEPOSITION (FILENAME= 0xb6060788 '/home/felipe/Programas/lazarus/components/chmhelp/lhelp/httpcontentprovider.pas', SOURCEPOSITION=...) at helpintfs.pas:394 #23 0x084c0325 in TSOURCEEDITOR__FINDHELPFORSOURCEATCURSOR (this=error reading variable) at sourceeditor.pp:3622 #24 0x084be5e7 in TSOURCEEDITOR__PROCESSUSERCOMMAND (SENDER=0xae1a42a0, COMMAND=1904, ACHAR=..., DATA=0x0, this= error reading variable) at sourceeditor.pp:3006 #25 0x0865d39b in TCUSTOMSYNEDIT__DOONPROCESSCOMMAND (COMMAND=1904, ACHAR=..., DATA=0x0, this=error reading variable) at synedit.pp:6223 #26 0x0865b082 in TCUSTOMSYNEDIT__COMMANDPROCESSOR (COMMAND=1904, ACHAR=..., DATA=0x0, this=error reading variable) at synedit.pp:5595 #27 0x0865211c in TCUSTOMSYNEDIT__KEYDOWN (KEY=0, SHIFT=..., this=error reading variable) at synedit.pp:2575 #28 0x08205366 in TWINCONTROL__KEYDOWNBEFOREINTERFACE (KEY=0, SHIFT=..., this=error reading variable) at ./include/wincontrol.inc:5518 #29 0x08205654 in TWINCONTROL__DOKEYDOWNBEFOREINTERFACE (MESSAGE=..., ISRECURSECALL=false, this=error reading variable) at ./include/wincontrol.inc:5687 #30 0x08207ba9 in TWINCONTROL__CNKEYDOWN (MESSAGE=..., this=error reading variable) at ./include/wincontrol.inc:6977 #31 0x0806d336 in SYSTEM_TOBJECT_$__DISPATCH$formal () ---Type return to continue, or q return to quit--- #32 0x08207b90 in RAISELOOP (parentfp=0xbfffe774) at ./include/wincontrol.inc:6886 #33 0x08204b1a in TWINCONTROL__WNDPROC (MESSAGE=..., this=error reading variable) at ./include/wincontrol.inc:5276 #34 0x08659ed6 in TCUSTOMSYNEDIT__WNDPROC (MSG=..., this=error reading variable) at synedit.pp:5194 #35 0x082af101 in DELIVERMESSAGE (TARGET=0xae1a42a0, AMESSAGE=void) at lclmessageglue.pas:113 #36 0x08279b55 in DELIVERMESSAGE (TARGET=0xae1a42a0, AMESSAGE=void) at
Re: [Lazarus] Add notification to callstack change.
Yes, is some like it i`m already doing. But this mean to put a lot of DumpStacks in the code witch is not nice. How can the debugger know that a specific line is about to be executed. Must be some listening/event for. Is in that time i`m been thinking to do some. Some kind that when the line is in the stetted to log units so they make the dumpstack, or something similar, some king of log file, to be able to see in run time what is happen. Em 08/02/2012, às 13:40, Martin escreveu: On 08/02/2012 15:15, Everton Vieira wrote: The case is: I have an enviroment that i can`t use the debugger of the lazarus, if i could i would by sure, then i`m trying to make some kind of log of some units, that times works out pretty well and some times don't. Here in my machine works out pretty well. I have already an to dame primitive function that makes that log that i need but i been thinking in how to make that log in a better way. uses LCLProc; DumpStack; -- ___ 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] Add notification to callstack change.
I see. Thanks again! What can be done in this case? Em 08/02/2012, às 14:27, Sven Barth escreveu: A debugger uses the debug API provided by the operating system together with some debug information to know which instructions map to which source lines. And no, it won't work if you try to debug an application from within that same application... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add notification to callstack change.
How can a debug an app in run time? Is there some how? Em 08/02/2012, às 14:34, Everton Vieira escreveu: I see. Thanks again! What can be done in this case? Em 08/02/2012, às 14:27, Sven Barth escreveu: A debugger uses the debug API provided by the operating system together with some debug information to know which instructions map to which source lines. And no, it won't work if you try to debug an application from within that same application... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Add notification to callstack change.
Can I make the gdb to log the behavior of an app, or some units? Em 08/02/2012, às 14:44, Martin escreveu: On 08/02/2012 16:36, Everton Vieira wrote: How can a debug an app in run time? Is there some how? If you can not use any debugger, then the only way is lots of writeln (or LCLProc.Debugln) and DumpStack... If it is just you can't use Lazarus to debug = you can still use gdb itself (Lazarus uses gdb too) For example, if you code is executed in a http-server, gdb can attach to the already running server (Lazarus does not yet support that) Another way is, if you cant debug your code on the life system, write a test case. A stand-alone app, that uses the units, and calls the code in question with simulated data. Then debug the test case -- ___ 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] Add notification to callstack change.
Well i`ll use by now the DebugLn similar that i`ve been using despite the hard work to be stetted. In the future i`ll see what can be done. Thanks Martin, Thanks Sven, Thanks guys, Thanks a lot. Em 08/02/2012, às 15:05, Martin escreveu: On 08/02/2012 16:52, Everton Vieira wrote: Can I make the gdb to log the behavior of an app, or some units? Tracepoints maybe? http://www.delorie.com/gnu/docs/gdb/gdb_72.html I havent used them myself, so I cant comment... See my other mail You can run your app in lazarus (but you need 0.9.31) and record all sort of thinks, without stopping your app well it will need to pause for a moment to collec the data, but it will not loose focus. And DumpStack takes time too. So real time behaviour is lost either way. Breakpoints can add snapshots. To do that check the breakpoint properties. In 0.9.31 is a Debug history window. (the last 25 are shown (click the camera fore more) - All watches are recorded - local variables - top 5 stack frames (but if you have the stack window open, more than 5) -- ___ 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
[Lazarus] MacOS -version minimum
I know there are an parameter like this --macos_version_minimum but i`m not sure about it, is for mac environment to help in run the project different mac versions. Anyone knows the name of the parameter and how to set they in order to lazarus compile with? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] MacOS -version minimum
Thanks, is there. Em 07/02/2012, às 11:20, Mattias Gaertner escreveu: Everton Vieira tonvie...@gmail.com hat am 7. Februar 2012 um 14:17 geschrieben: I know there are an parameter like this --macos_version_minimum but i`m not sure about it, is for mac environment to help in run the project different mac versions. Anyone knows the name of the parameter and how to set they in order to lazarus compile with? http://wiki.lazarus.freepascal.org/OS_X_Programming_Tips#Deploying_an_executable.2C_Compiling_under_10.6_for_10.5_and_above 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
[Lazarus] lazarus resources
I`ve make a very easy lazarus resource file, is annexed: unEdit_Add_Rem.lrs Description: Binary data , with two png files insides, and i`m using like this: btnAdd.Glyph.LoadFromLazarusResource('edit_add'); initialization {$I unEdit_Add_Rem.lrs} Generates this error: Exception Class: EInvalidGraphic With the Message: TGlyphBitmap: Unsupported Resourcetype: PNG Resource Name: edit_add Stack Trace: 00 - 0046C8E0 TGRAPHIC__LOADFROMLAZARUSRESOURCE, line 263 of ./include/graphic.inc. 01 - 00430940 TFMFILTRAR__BTNADDCLICK, line 246 of unFiltrar.pas. 02 - 004F0754 TCONTROL__CLICK, line 2288 of ./include/control.inc. 03 - 00531C21 TCUSTOMSPEEDBUTTON__CLICK, line 117 of ./include/speedbutton.inc. 04 - 005332E5 TCUSTOMSPEEDBUTTON__WMLBUTTONUP, line 799 of ./include/speedbutton.inc. 05 - 0040B8BA , line 9423 of . 06 - 004EE948 TCONTROL__PERFORM, line 1083 of ./include/control.inc. 07 - 004E4C62 TWINCONTROL__ISCONTROLMOUSEMSG, line 4606 of ./include/wincontrol.inc. 08 - 004E5EE9 TWINCONTROL__WNDPROC, line 5206 of ./include/wincontrol.inc. 09 - 00419F4E TCUSTOMFORM__WNDPROC, line 1362 of ./include/customform.inc. 10 - 00561867 DELIVERMESSAGE, line 110 of lclmessageglue.pas. 11 - 0050CFEE WINDOWPROC, line 2441 of win32callback.inc. 12 - 0059913F CUSTOMFORMWNDPROC, line 357 of win32wsforms.pp. 13 - 77D28709 , line 0 of . 14 - 77D287EB , line 0 of . 15 - 77D289A5 , line 0 of . 16 - 77D289E8 , line 0 of . I tough TSpeedButton could read png images. Any suggestions?-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazarus resources
Thanks! Em 07/02/2012, às 12:32, Felipe Monteiro de Carvalho escreveu: Each class can only read 1 format. btnAdd.Glyph is a TBitmap and therefore reads only bitmaps. But you can first read to a PNG and then use Assign to convert to a bitmap. Try doing it like this: var MyPNG: TPortableNetworkGraphic; begin MyPNG := TPortableNetworkGraphic; MyPNG.LoadFromLazarusResource('edit_add'); btnAdd.Glyph.Assign(MyPNG); MyPNG.Free; -- Felipe Monteiro de Carvalho -- ___ 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
[Lazarus] Strange behavior on creationg TMenuItem
I've just make some like that: for i := 0 to 10 do begin MenuItem := TMenuItem.Create(Self); MenuItem.Caption := 'tst ' + IntToStr(i); PopMenu.Add(MenuItem); ShowMessage(MenuItem.Name); end; Despite the MenuItem is created in the PopMenu, the ShowMessage is showing blank. How can a TComponent be created with the Name being blank . How can various TComponent being with the same blank Name . Att. Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres and Lazarus
In create table return: Access violation. in create database return: Database not assign. There's must be some tip to do this operation at least in Linux enviroment. I'm using openSuse. Anyone knows something about it? 2011/11/26 zeljko zel...@holobit.net ** On Friday 25 of November 2011 20:15:26 Everton Vieira wrote: Hi people, anyone uses the combination of Postgres with Lazarus? I've been gotting a lot of problems with it: To create or drop database. To create or drop schema. To create or drop table. To create or drop index. Occurs erros. Specialy on Linux they happen. They aren't able to do this functions. What errors ? Anyone has some experience with it? Yes, using postgres for 12 yrs, and with lazarus for 3 yrs. So what's your exact problem ? zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres and Lazarus
Yeah, eu que iniciei, em windows realmente funciona o CreateDB, mas não ta funcionando numa instalção openSuse. Eu não consigo mas reportar naquele issue, ele já está fechado. 2011/11/26 silvioprog silviop...@gmail.com 2011/11/26 Everton Vieira tonvie...@gmail.com: In create table return: Access violation. in create database return: Database not assign. There's must be some tip to do this operation at least in Linux enviroment. I'm using openSuse. Anyone knows something about it? See this issue: http://bugs.freepascal.org/view.php?id=20753 -- Silvio Clécio === Blog - silvioprog.com.br Twitter - twitter.com/silvioprog Facebook - facebook.com/silvioprog LazSolutions - code.google.com/p/lazsolutions Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR === * Conheça nosso canal IRC sobre Lazarus: #lazarus-br * === -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Postgres and Lazarus
zypper install postgresql-devel Segunda-feira testarei. Muito obrigado. []'s Everton. Em 26 de novembro de 2011 16:50, silvioprog silviop...@gmail.com escreveu: Em 26 de novembro de 2011 16:48, silvioprog silviop...@gmail.com escreveu: 2011/11/26 Everton Vieira tonvie...@gmail.com: Yeah, eu que iniciei, em windows realmente funciona o CreateDB, mas não ta funcionando numa instalção openSuse. Eu não consigo mas reportar naquele issue, ele já está fechado. http://code.google.com/p/lazarus-br/source/browse/trunk/tip/Install-LibPQ-openSuse.txt You need create the synbolic link of lib of the PG. {Você precisa criar o link da lib do PG} ... and have permission to do so. -- Silvio Clécio === Blog - silvioprog.com.br Twitter - twitter.com/silvioprog Facebook - facebook.com/silvioprog LazSolutions - code.google.com/p/lazsolutions Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR === * Conheça nosso canal IRC sobre Lazarus: #lazarus-br * === -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Postgres and Lazarus
Hi people, anyone uses the combination of Postgres with Lazarus? I've been gotting a lot of problems with it: To create or drop database. To create or drop schema. To create or drop table. To create or drop index. Occurs erros. Specialy on Linux they happen. They aren't able to do this functions. Anyone has some experience with it? Att. Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Class TThread in linux;
In the creation of a TThread in Linux, openSuse recently installed, causes an exception and close the application. Even without the debug same resul t.By what I've read on wiki about it, the error should appear only under debug. Anyone knows something about it? -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Class TThread in linux;
I'll use it tomorow, just this and will work? Thanks Everton 2011/11/24 silvioprog silviop...@gmail.com 2011/11/24 Everton Vieira tonvie...@gmail.com: In the creation of a TThread in Linux, openSuse recently installed, causes an exception and close the application. Even without the debug same resul t.By what I've read on wiki about it, the error should appear only under debug. Anyone knows something about it? -- Everton Vieira. Use: {$DEFINE UseCThreads} E.g: program project1; {$mode objfpc}{$H+} {$DEFINE UseCThreads} uses {$IFDEF UNIX}{$IFDEF UseCThreads} cthreads, {$ENDIF}{$ENDIF} Interfaces, -- Silvio Clécio === Blog - silvioprog.com.br Twitter - twitter.com/silvioprog Facebook - facebook.com/silvioprog LazSolutions - code.google.com/p/lazsolutions Lazarus-BR - groups.google.com.br/group/lazarus-br?hl=pt-BR === * Conheça nosso canal IRC sobre Lazarus: #lazarus-br * === -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Working with RTF
Any ideas when the lzRichEdit.Print would be implemented? []'s Everton 2011/11/18 l...@lucifael.com l...@lucifael.com Yes! Thank you this is just what I need, it supports all the basic functionality I want and it's nice and easy to use - thank you for pointing this out to me. snip More: http://code.google com/p/lazarus-br/source/browse/#svn%2Ftrunk%2Fpackage%2FlzRichEdit (short link: http://goo.gl/Vj0nQ) -- Silvio Clécio === Blog - silvioprog.com.Br Twitter - twitter.com/silvioprog Facebook - Facebook.com/silvioprog LazSolutions - code.Google.com/p/lazsolutions Lazarus-BR - groups.Google.com.Br/group/Lazarus-Br?hl=pt-BR === * Conheça nosso canal IRC sobre Lazarus: #Lazarus-Br * === -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- Everton Vieira. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus