[Lazarus] Live Templates
Graeme's recent post made me wonder if there is been work or talk of work on implementing Live Templates like Delphi has? I imagine that that kind of behavior is a bit of work to implement. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Live Templates
Lee Jenkins wrote: Graeme's recent post made me wonder if there is been work or talk of work on implementing Live Templates like Delphi has? I imagine that that kind of behavior is a bit of work to implement. Great news everyone. Kudos. I look forward to seeing the new stuff. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Live Templates
Graeme Geldenhuys wrote: On Wed, May 13, 2009 at 7:54 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: My experience with Live Templates: they are nice to use, but so hard to write properly, that no user will ever try to write a template himself. I don't know about that. The tiOPF has quite a few Live Templates for Delphi's newer IDEs. All contributed by tiOPF users. I once found a tutorial on live templates and they explain how to write them. It looked rather self explanatory if you know the syntax. They are invaluable in using tiOPF and other frameworks where you're doing a lot of inheritance and overriding methods. I have a couple live templates that create whole units which saves a lot of time. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPWeb Templates Cache etc
ABorka wrote: Hi, I have submitted some example projects for inclusion into the Lazarus examples subdirectory. You can find and download them in report http://bugs.freepascal.org/view.php?id=13706 Lots of basic web development functions using html templates are covered in these examples. AB Excellent stuff. Thanks for submitting that. I'm going to be trying out the fpweb stuff again very soon. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Editor Suggest list timer wait
Can it be changed to allow little as .25 second delay? With .50 there is a noticeable delay. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Animated GIF's in wiki pages
Graeme Geldenhuys wrote: Hi, Relating to the following pages: http://wiki.lazarus.freepascal.org/New_IDE_features_since http://wiki.lazarus.freepascal.org/New_LCL_features_since I have to say that Lazarus is getting sexy. Someone forgot to put the auto suggestion as you type feature in ;) Seriously, congrats on everyone's hard work. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TStringGrid: Multi Select not connected rows?
Is there a way to allow TStringGrid to not only .RowSelect but also multi-select rows that are not directly above or below each other as in range selecting? Or must I have derive my own to do this? Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Animated GIF's in wiki pages
Graeme Geldenhuys wrote: On Thu, Apr 23, 2009 at 8:59 PM, Lee Jenkins l...@datatrakpos.com wrote: I have to say that Lazarus is getting sexy. Someone forgot to put the auto suggestion as you type feature in ;) Explain that feature please? Or is that word completion? Like hitting CTRL-Space automatically as you type. I use the one for Delphi called CNWizards which has it. Lets say I type tstr, then the suggestion box is displayed automatically and TStrings is highlighted already with TStringList next in the list etc. At that point, all I have to do is hit Tab or Enter and the section is writtent the editor followed by a space so I can keep typing. The CNWizards version has useful settings such as how many characters have to be typed before auto suggestion is invoked. I like it set to three or four characters. I personally like it because it saves time when I have type write type names like TGenericMediatorClass. Instead, I type tge (or more letters) and the list is automatically displayed with the item closest matching what I typed already highlighted. I just hit enter and continue typing. I think open office (text editor) and Word have this same kind of feature. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Notes on 'remove unused units' codetool
Alexander Klenin wrote: On Sun, Apr 12, 2009 at 16:26, Mattias Gaertner nc-gaert...@netcologne.de wrote: I am not sure how hard it is to implement, I know a good IDE. I do not understand. What IDE? I think Mattias was referring to the the Lazarus IDE ;) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Line Ending FPC/Delphi
Curious as to how others handle the line endings when sharing code between delphi and lazarus/fpc? FPC has LineEnding and I think Delphi has something similar it inherited from the Kylix era, but I don't think it was called the same. I was thinking of just creating my ifdef'd type. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fw: New Features for source editor
Hans-Peter Diettrich wrote: Lee Jenkins schrieb: I like being able to type tobj and hit enter to end up with TObjectList and a space after it to continue typing. Just my personal preference. :) It's okay when I can tell the IDE when I want some assistance. It's not okay when the IDE *means* that it should become active, and I have to inspect and correct what it did to me and my code :-( Agreed. The CNWizards version has a couple of settings that help such as the number of chars that must be typed before the popup occurs. Of course, if you just keep typing with pausing for x seconds/ms, the popup never occurs. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fw: New Features for source editor
Alexander Klenin wrote: On Wed, Feb 25, 2009 at 04:41, Lee Jenkins l...@datatrakpos.com wrote: -Autocompletion in real-time (no type Ctrl+Space) This by far, is one of the most productive enhancements that any code editor can have. It is just amazing how fast you can code with this feature as well as reduce typo's. While I am not against adding this to Lazarus, I would like to note that this is one Delphi 2007 feature I actively do not like, and always turn off. Hmmm. I didn't think Delphi had this feature. I'm talking about Code Insight/helper that shows suggestions as you type. I type tstr and TString, TSTringList, etc is shown. I had to use CNWizards to get this functionality. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fw: New Features for source editor
Alexander Klenin wrote: On Thu, Feb 26, 2009 at 22:17, Lee Jenkins l...@datatrakpos.com wrote: Alexander Klenin wrote: While I am not against adding this to Lazarus, I would like to note that this is one Delphi 2007 feature I actively do not like, and always turn off. Hmmm. I didn't think Delphi had this feature. I'm talking about Code Insight/helper that shows suggestions as you type. I type tstr and TString, TSTringList, etc is shown. I had to use CNWizards to get this functionality. Ah, then I misunderstood it too, I think the feature I talked about is called living templates or some such. Ah, OK. I have to tell you that I didn't take to live templates immediately either but they can be a real time saver. I even have a few that create entire units for me. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fw: New Features for source editor
Hans-Peter Diettrich wrote: Alexander Klenin schrieb: -Autocompletion in real-time (no type Ctrl+Space) While I am not against adding this to Lazarus, ACK I would like to note that this is one Delphi 2007 feature I actively do not like, and always turn off. Most of the input features are helpful only to beginners, who never learned to type. People used to key-in with 10 fingers are only blocked by such features, and have to turn them all off. I'm a pretty fair typist having took it in school and did a lot of it even before I developed an interest in programming and for me, that feature still increases my code output tremendously. Not only that but since I don't have to do as much typing, I'm more apt to declare more self documenting variables and types as well. I like being able to type tobj and hit enter to end up with TObjectList and a space after it to continue typing. Just my personal preference. :) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Fw: New Features for source editor
Lucas wrote: -Autocompletion in real-time (no type Ctrl+Space) This by far, is one of the most productive enhancements that any code editor can have. It is just amazing how fast you can code with this feature as well as reduce typo's. See CNWizards for Delphi: http://www.cnpack.org/index.php?lang=en Their pack has such a feature and to boot, it's intelligent, taking into account how often you use a selection from the list as well as what was typed before invoking it. I would love to see this in Lazarus. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Design Surface
Is there anyway re-use the designer surface of the IDE? I have a component for this in delphi, but I'm thinking of trying the project in Lazarus. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zipfiles using Paszlib...
Felipe Monteiro de Carvalho wrote: On Wed, Feb 11, 2009 at 9:23 AM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: Thanks Felipe. I'll take a closer look at both and try to merge any feature between the two. I would prefer something that is standard in FPC as well. I added step-by-step instructions on how to get the latest TZipper and use it to the wiki: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TTestSuite
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 6:03 PM, Lee Jenkins l...@datatrakpos.com wrote: Of course, things like that sometimes happen when its most inconvenient to address it ;) Murphy's Law demonstrated. Yup. Just got the newsgroup server working for external access. NNTP and WebNews now work. Belated thank you. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zipfiles using Paszlib...
Sergei Gorelkin wrote: Lee Jenkins wrote: I'm confused. Does TZipper produce pkZIP compatible files or is it zlib based and only called TZipper? Yes, it produces pkZIP compatible files and yes, it uses zlib for compression. .zip file format deals only with overall archive file structure (headers, directories, etc). Each individual file within .zip archive may be compressed using its own method, or even not compressed at all. The most popular compression format used in .zip files is 'deflate', which is handled perfectly well with zlib. The difference with .gz format is only that compressed stream is written without .gz header. Thanks for that, Sergei. I wasn't aware of that and thought that they used incompatible compression algorithms. Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TTestSuite
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: Lee, did you not look at the tiOPF test suite? ;-) No actually, I did not. I'll definitely take a look. Do you mean the following TMoneyTest = class(TTestCase) protected procedure SetUp; override; procedure TearDown; override; published procedure testBagCreate; procedure testBagMultiply; procedure testBagNegate; procedure testBagSimpleAdd; procedure testBagSubtract; procedure testBagSumAdd; end. initialization RegisterTests([TMoneyTest]); Perhaps I have misunderstood what TTestSuite is. My understanding is that TTestSuite is used to provide a way to group other TTestCase's so that you can end up with a hierarchical structure of a complete TTestSuite. Something like this: MainTestSuite Test Suite --SubTestSuite Child Test Suite TestCase1 A Test case under a TestSuite TestCase2 A Test case under a TestSuite --SubTestSuite2 TestCase3 TestCase4 If this is the case, my problem is I don't see how they are related to each together. In the TestSuite, how do I register the child Testcases? Also, must I override the protected Getters for the TestSuiteName, etc. ? -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TTestSuite
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 6:02 AM, Lee Jenkins l...@datatrakpos.com wrote: Would anyone mind providing a simple example or useful link? I've already looked at this: Do you mean the following P.S. Graeme can you check the power cable for the tiOPF newsgroups server? I think someone may have kicked it out ;) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TTestSuite
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 4:28 PM, Lee Jenkins l...@datatrakpos.com wrote: Something like this: TTestSuite1 = class(TTestCase) published procedure TestCase1; procedure TestCase2; end; initialization RegisterTest('Main Test Suite', TTestSuite1); [ unit2.pas ] TTestSuite2 = class(TTestCase) published procedure TestCase1; procedure TestCase2; procedure TestCase3; procedure TestCase4; end; initialization RegisterTest('Main Test Suite', TTestSuite2); Ah..OK. I was thinking something completely different. Also have a look at the tiFPCUnitUtils.pas unit in tiOPF. It can create a more complex hierarchy with much less effort. Some of that code could probably move to FPC itself. I'll have a look, never came across it before. Thanks for taking the time... Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TTestSuite
Graeme Geldenhuys wrote: On Tue, Feb 10, 2009 at 4:30 PM, Lee Jenkins l...@datatrakpos.com wrote: P.S. Graeme can you check the power cable for the tiOPF newsgroups server? I think someone may have kicked it out ;) The webnews interface works. I'll give the server a reboot and see what happens. We had a minor accident on Friday. Water + electricity + a faulty UPS don't mix well! :-) We had two servers that went down while we where miles away at a conference. :-( Of course, things like that sometimes happen when its most inconvenient to address it ;) Murphy's Law demonstrated. Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TTestSuite
Sorry I'm a little dense on this one. I've read over the pdf available on the fpc website and look at some of the samples in the /fpc-fpunit directory and I'm still not getting how to register a TTestSuite with TTestCase object underneath it. Would anyone mind providing a simple example or useful link? I've already looked at this: http://www.freepascal.org/docs-html/fpcunit.pdf I doesn't really go into TTestSuite usage. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Determine OS at runtime
Dumb question: What is the best way to determine the OS platform at runtime? I would like to be able to position things like dialog form buttons dependent on the OS. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Determine OS at runtime
Mattias Gaertner wrote: On Tue, 27 Jan 2009 13:01:04 -0500 Lee Jenkins l...@datatrakpos.com wrote: Dumb question: What is the best way to determine the OS platform at runtime? You can already at compile time. http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Useful_compiler_variables_.2F_defines_.2F_macros Thanks Mattias. I was aware of the defines but thought maybe there was a built-in function in LCL that returned an enumerated type or constant or something similar. No problem, I will just create a singleton that relies on the defines to return an enumerated type of my own. I would like to be able to position things like dialog form buttons dependent on the OS. For common buttons you can use TButtonPanel. Thanks I will look at this. Does this rearrange itself depending on the OS? Is that what you are saying? I have not experience with this component. Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Determine OS at runtime
Mattias Gaertner wrote: On Tue, 27 Jan 2009 13:01:04 -0500 Lee Jenkins l...@datatrakpos.com wrote: Dumb question: What is the best way to determine the OS platform at runtime? You can already at compile time. http://wiki.lazarus.freepascal.org/Code_Conversion_Guide#Useful_compiler_variables_.2F_defines_.2F_macros Thanks Mattias. I was aware of the defines but thought maybe there was a built-in function in LCL that returned an enumerated type or constant or something similar. No problem, I will just create a singleton that relies on the defines to return an enumerated type of my own. Is there a complete list of the defines available. That link seems to show just a few in examples. I would like to be able to position things like dialog form buttons dependent on the OS. For common buttons you can use TButtonPanel. Thanks I will look at this. Does this rearrange itself depending on the OS? Is that what you are saying? I have not experience with this component. Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Starting default browser
I think I remember there being a discussion not too long ago concerning opening the default browser from code. I can't remember if there was a proven way to accomplish on Linux or not. I would use shellexecute on windows, but am unsure about Linux and possible MacOS. Thanks -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Starting default browser
Lee Jenkins wrote: I think I remember there being a discussion not too long ago concerning opening the default browser from code. I can't remember if there was a proven way to accomplish on Linux or not. I would use shellexecute on windows, but am unsure about Linux and possible MacOS. Thanks all. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
ik wrote: There is the following components (for Delphi, but I think it can be converted): http://angusj.com/delphi/ It's freeware with source, so maybe we shoudl contact the developer if it will be converted to lazarus. Ido This one too is freeware and might make a good candidate to port assuming you could get permission from the author. Great component btw. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
Lee Jenkins wrote: ik wrote: There is the following components (for Delphi, but I think it can be converted): http://angusj.com/delphi/ It's freeware with source, so maybe we shoudl contact the developer if it will be converted to lazarus. Ido This one too is freeware and might make a good candidate to port assuming you could get permission from the author. Great component btw. -- Warm Regards, Lee Forgot the link: http://www.delphiarea.com/products/delphi-components/simplegraph/ -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Open Source Diagram Components for Lazarus?
theo wrote: There's also this (Delphi Freeware) http://meesoft.logicnet.dk/DiagramDesigner/ LOL! Teach me to actually look at the link before I post. The one that I posted is the official website if that matters any... -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
Graeme Geldenhuys wrote: On Thu, Jan 22, 2009 at 4:51 PM, Lee Jenkins l...@datatrakpos.com wrote: Powtils and other only cgi frameworks by their nature do not support object pooling. The only other option that I saw was apache dso's using the fpWeb framework but that did not turn out too well and I spent quite a long time trying to get apache to load the dso (which it would not) let alone actually running it. I have currently written a large chunk of our application using Powtils for standard CGI applications. I miss object pooling or DB connection pooling a lot. Setting up a connection is very slow compared to many other things, and having to do that on every mouse click is not ideas. Right. Since CGI is a one-off technology, you have to setup and tear down db connections, which (and I could be wrong here) tiOPF takes a bit longer to do than standard TConnect TDataset model and since I use tiOPF as well, I'd prefer not to take a hit like that if I don't have to. I will be investigating alternative options. fpWeb and DSO etc.. I even thought of creating a Application Server application like in a 3-tier app. The CGI apps then communicate to the application server. The app server is the only one that has the actual DB connection. In theory this will work, but I haven't tried a prototype yet. One idea that I had was to use a gateway application, much like they're doing over at ExtPascal. ExtPascal uses FastCGI in one of 2 ways. 1. Gateway App = FastCGI Server. This model is designed for webservers that don't have cgi support. A standard gateway.cgi application takes the actual rqeuest and then communicates with a backend FastCGI (basically TCP/IP) server to fill the request. 2. Stand alone FastCGI server. This is the FastCGI server used in the first model but is used for web servers that have native FastCGI support. In this model the server (apache) just talks to the persistent running FastCGI server directly. There server is pretty well abstracted out of the ExtJS stuff that the project is based on so I may just use their code for ideas. Of course, FastCGI (like apache DSO's) have their drawbacks in terms of being able to actually use them on a shared hosting plan as most providers do not allow you to install DSO's or long running processes like TCP/FastCGI servers. But a nice compromise would be to write a cgi gateway like in ExtPascal with a few minor changes so that my business logic can be the same regardless of whether its standard cgi running on a low traffic Plesk/CPanel account or a dedicated server. Also, Michael van Canneyt has written some articles on Free Pascal/Lazarus and web apps. Maybe if you ask nicely, he can send you those, which might give some hints on how to use fpWeb etc.. :-) Michael? Michael? Where art thou and whilst thou share thine most valuable knowledge with me? :) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
Graeme Geldenhuys wrote: On Fri, Jan 23, 2009 at 11:43 AM, Henry Vermaak henry.verm...@gmail.com wrote: just for interest sake, have you measured how long it takes to set up the connection relative to how long the network transfer takes? it'll obviously be dependant on the connection speed, but i get the feeling that it's minimal. Yes I have, and so did other users of tiOPF. The Connect/Disconnect part of a database takes considerably longer than retrieving a subset of data. And with the way CGI applications work, they connect/disconnect very often (each screen refresh). Yeah, this is a problem for us tiOPF users since the tiOPF not only needs to setup its database specific objects like pooling, etc but also has to perform all of the object registrations if you're using AutoMapping a lot like I do. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] IDE dialogs mouse wheel scrolling incrments too small
Not counting the editor itself, has anyone noticed that using the mouse in dialogs that have TListBox, TTreeView, etc results in very small scrolls? The result is that it requires quite a few scrolls to navigate. Anyone know if there is there a setting for this? Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
Lee Jenkins wrote: I'm playing around with the fpWeb stuff and it looks really good. I may use it for some work on my company's website but I wanted to make sure that I could use either cgi or apache dso. Are there any examples for apache shared modules or is it pretty much the same as the CGI? I see they both share the same ancestor datamodule descendant. Are there any tutorials for setting up the apache mod version? I plan to most of the coding with the cgi but again, want to make sure that the apache module version would work as well. After working quite a few hours to get this to work yesterday, I have found the solution: Start All Programs Microsoft Visual Studio 2008 -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
Andrew Brunner wrote: On Thu, Jan 22, 2009 at 7:20 AM, Lee Jenkins l...@datatrakpos.com wrote: After working quite a few hours to get this to work yesterday, I have found the solution: Start All Programs Microsoft Visual Studio 2008 -- Warm Regards, Lee, with the hope of not going too far off topic... I'm running Ubuntu 8.10 for tripple core AMD x64 machine. I'm looking for a start option... all programs etc. I only have an Applications menu item. :-) I do not have it on my CentOS installation either. ;) LOL. But seriously, good luck getting anything you write to work on a Linux box without FPC/Lazaurs. Microsoft is rapidly becoming irrelevant compared to Linux. Well, I know that some people are having good success with Asp.net/mono. But I would definitely prefer to use Lazarus/FPC. I don't prefer C# and certainly not vb.net. The problem is that there is no working solution for web work available for Lazarus/FPC that meets my needs. 1. It works. 2. I should not have to divert an appreciable amount of my life to learning how to use the technology or getting it to work. 3. Must support database connection/object pooling. Powtils and other only cgi frameworks by their nature do not support object pooling. The only other option that I saw was apache dso's using the fpWeb framework but that did not turn out too well and I spent quite a long time trying to get apache to load the dso (which it would not) let alone actually running it. Also, please don't misunderstand me, I like lazarus/fpc and I have a strong appreciation for the work that its contributors do. I would be happy to look at any other solutions for lazarus/fpc that I have not found that meet the above criteria. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
ABorka wrote: Lazarus file/new should work, just make sure to use the right httpdXX directory. Thanks, but how do I tell Lazarus which one to use? I assumed that if it was on the path, anyone of them could be used. For instance if I setup a new apache module project and hover over httpd in the uses clause, it shows me that its pulling in the 1.3 version instead of the 2.0 version which I need. http://bugs.freepascal.org/view.php?id=12375 is not included in the source yet, so you might want to add it yourself Is there a facility in Lazarus that will apply a patch like that? I've only ever used patches with source that I originally svn'ed. Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] fpWeb - Apache Modules
I'm playing around with the fpWeb stuff and it looks really good. I may use it for some work on my company's website but I wanted to make sure that I could use either cgi or apache dso. Are there any examples for apache shared modules or is it pretty much the same as the CGI? I see they both share the same ancestor datamodule descendant. Are there any tutorials for setting up the apache mod version? I plan to most of the coding with the cgi but again, want to make sure that the apache module version would work as well. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] fpWeb - Apache Modules
Lee Jenkins wrote: I'm playing around with the fpWeb stuff and it looks really good. I may use it for some work on my company's website but I wanted to make sure that I could use either cgi or apache dso. Are there any examples for apache shared modules or is it pretty much the same as the CGI? I see they both share the same ancestor datamodule descendant. Are there any tutorials for setting up the apache mod version? I plan to most of the coding with the cgi but again, want to make sure that the apache module version would work as well. I've been tickering a bit and I need to ask if anyone is using the apache module version of fpWeb? I've tried for about an hour and half to get apache2 to run with a sample module to no avail. Library mod_test; {$mode objfpc}{$H+} Uses fpWeb,lazweb,httpd,fpApache, web1; Const { The following constant is used to export the module record. It must always match the name in the LoadModule statement in the apache configuration file(s). It is case sensitive !} ModuleName='test'; { The following constant is used to determine whether the module will handle a request. It should match the name in the SetHandler statement in the apache configuration file(s). It is not case sensitive. } HandlerName=ModuleName; Var DefaultModule : module; {$ifdef unix} public name ModuleName;{$endif unix} {$ifdef windows} Exports defaultmodule name ModuleName; {$endif windows} {$IFDEF WINDOWS}{$R mod_test.rc}{$ENDIF} begin Application.ModuleName:=ModuleName; Application.HandlerName:=HandlerName; Application.SetModuleRecord(DefaultModule); Application.Initialize; end. My Apache2 httpd.conf: LoadModule test modules/mod_test.so Location /test SetHandler test-handler /Location When trying to start apache, I get: Syntax error on line 136 of C:/Program Files/Apache Group/Apache2/conf/httpd.conf: Cannot load C:/Program Files/Apache Group/Apache2/modules/mod_test.so into server: The specified module could not be found. The mod_test.so executable is definitely in the /modules directory of the Apache installation. Has anyone had this working or can provide a hint or two? I'm on Lazarus 927 on Vista. I'm a little frustrated at this point so I'm going to go for a walk... :) Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What is current status of fpGUI?
Henry Vermaak wrote: 2008/12/9 Aleksa Todorovic [EMAIL PROTECTED]: Hi, all! In the team I am part of, we are evaulating several GUI frameworks for our next project. One of the options (and I hope one we will choose, since other member of the team are more into some C++ solution) is to use Lazarus with fpGUI. We need fpGUI, because we need our GUI to be skinnable. Now, here are questions I have: 1) Does fpGUI in current version supports creation of skinnable applications? not at the moment, but it is planned. (according to graeme - not sure which one of the clones is working on that). LOL, he is like a machine... -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazReport
Terry A. Haimann wrote: I tried setting up a simple report and haven't gotten it to work. Does it work with MySQL? It sees my tables, but when I click on a column name nothing happens. A brief description of setting up a report would probably help. Thx, Terry Terry, It is based on FreeReport: http://www.fast-report.com/en/download/free-report-download.html You should be able to use the documentation/samples on the page above to get a good idea of how it works. The hard work (and appreciated work) that went into porting it to lazarus notwithstanding, it was fairly buggy still when I tried using it. My understanding is that a bunch more work was put into it though... Good Luck, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TDataset TDatasource
Charl van Jaarsveldt wrote: Hi All, I have never really gotten into working with the datasets and datasources with Delphi or Lazarus. Can someone perhaps point me to some good online documentation/tutorial (or write a quick summary of you feel like it :-) ) that can help me get on with this? I have the basics down, in other words, I have a program that can read/write stuff to an sqlite database. I am getting a little confused though when I start thinking about some design considerations. What exactly is the relationship between the TDataset and TDatasource? Should you have a separate TSQLiteDataset for each use of a table? (I think I need to implement an onscroll event, but only for one frame.) Any help would be appreciated. Charl, TDataSource is used as a go between for TDataSet and data aware controls. For instance, if you set the Datasource of the TDBGrid it will populate the grid using the TDataset. This may help you: http://delphi.about.com/od/database/a/databasecourse.htm -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz - Every other request fails
Graeme Geldenhuys wrote: On Thu, Nov 20, 2008 at 12:25 AM, Lee Jenkins [EMAIL PROTECTED] wrote: Personally, I could do without the TDataModule descendant and just construct everything in code. After working with tiOPF for a while now, I forgot what a datamodule looks like ;) As a reminder, here is what a DataModule looks like! ;-) Yes it's an actual product that I had to help maintain - and a HUGE reason why I moved to tiOPF instead! This image could easily belong to the What the f**k website. :-) http://opensoft.homeip.net/~graemeg/datamodule.png And Borland suggests this is how we develop software in Delphi 4-7 ?!?!?!? Oh boy, thank you for that. Thank you for a hearty laugh in the morning! OMG! -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz - Every other request fails
Joost van der Sluis wrote: Op woensdag 19-11-2008 om 13:39 uur [tijdzone -0500], schreef Lee Jenkins: Hi all, This is a separate issue than that I posted before. Using either the sessiondemo or echo projects, the request fails every other request. == Debug failed: Access violation HTTP/1.1 200 OK Date: Wed, 19 Nov 2008 18:37:00 GMT Server: Apache/2.0.63 (Win32) Content-Length: 2545 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/html Make this the first line of your application: SetDebuggingEnabled(false); And I aggree: this is the most irritating thing in fpWeb, and it took me some time to completely remove it. The original autor had a debugger-service running on his servers. It's looking for that service. Joost. Thanks Joost. I will try that. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Joost van der Sluis wrote: Op dinsdag 18-11-2008 om 20:04 uur [tijdzone -0500], schreef Lee Jenkins: ABorka wrote: It might be that http://bugs.freepascal.org/view.php?id=12375 is not applied yet. Are you making a CGI program or Apache modules? Windows or Linux? Also make sure you include the proper httpd files from the fpc source folders (httpd22, httpd20) if it is apache module you do. Lee Jenkins wrote: Anyone using the WebLaz package? I can compile the demo but when get error when trying to load the datamodule for these demos. I have installed the weblaz.lpk. Hi it's CGI. Odd that everything compiles ok, but there is apparently no designer support for the datamodule for some reason. I was using powtils, but that doesn't seem to be supported any more. sigh Maybe its time that I start working with .net again for my web stuff :( I use Weblaz for all my web-stuff here. Also using CGI. What is the error you got? Joost No, no. Sorry I wasn't clear enough. Everything compiles and runs ok, at least as far as I can see. The problem is that it appears to be based on a TDataModule descendant and when I try to load it in the IDE, lazarus complains that there are still some packages required but doesn't tell me what they might be. :) Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Lee Jenkins wrote: Joost van der Sluis wrote: Op dinsdag 18-11-2008 om 20:04 uur [tijdzone -0500], schreef Lee Jenkins: ABorka wrote: It might be that http://bugs.freepascal.org/view.php?id=12375 is not applied yet. Are you making a CGI program or Apache modules? Windows or Linux? Also make sure you include the proper httpd files from the fpc source folders (httpd22, httpd20) if it is apache module you do. Lee Jenkins wrote: Anyone using the WebLaz package? I can compile the demo but when get error when trying to load the datamodule for these demos. I have installed the weblaz.lpk. Hi it's CGI. Odd that everything compiles ok, but there is apparently no designer support for the datamodule for some reason. I was using powtils, but that doesn't seem to be supported any more. sigh Maybe its time that I start working with .net again for my web stuff :( I use Weblaz for all my web-stuff here. Also using CGI. What is the error you got? Joost No, no. Sorry I wasn't clear enough. Everything compiles and runs ok, at least as far as I can see. The problem is that it appears to be based on a TDataModule descendant and when I try to load it in the IDE, lazarus complains that there are still some packages required but doesn't tell me what they might be. :) As a follow up, the IDE shows a huge message box when this happens. If I say load anyway, it then gives me another dialog asking if I would like to load the web module (TDataModule descendant?) as a regular form. http://imagebin.org/31592 Also, has anyone done any more extensive sample than are located in the / -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Mattias Gärtner wrote: Also, has anyone done any more extensive sample than are located in the / The error message is for both: users of the package and the weblaz authors. For the users it is sufficient: Package needs installation...open forms...package weblaz. If you want to open the form in the IDE, you probably need to install weblaz, because weblaz is needed by your project and weblaz provides some IDE plugins. The weblaz author needs the information about the register procedure and the unit. Maybe the text can be changed to a short advice (install weblaz) and a paragraph Details. Mattias Thanks Mattias, Something is not right here. I have tried to install the package as well as a couple of others (like Zeos) in my lazarus installation which is 0.9.27 rev. 16975. But if I look at the Package Graph, weblaz and other packages that I thought I had installed are marked with a Green + (Plus sign) and State = Install on next start but that never happens. I have rebuilt the IDE several times, using different settings in the build such as building and cleaning all but the packages are never installed. Odd. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Lee Jenkins wrote: Mattias Gärtner wrote: Also, has anyone done any more extensive sample than are located in the / The error message is for both: users of the package and the weblaz authors. For the users it is sufficient: Package needs installation...open forms...package weblaz. If you want to open the form in the IDE, you probably need to install weblaz, because weblaz is needed by your project and weblaz provides some IDE plugins. The weblaz author needs the information about the register procedure and the unit. Maybe the text can be changed to a short advice (install weblaz) and a paragraph Details. Mattias Thanks Mattias, Something is not right here. I have tried to install the package as well as a couple of others (like Zeos) in my lazarus installation which is 0.9.27 rev. 16975. But if I look at the Package Graph, weblaz and other packages that I thought I had installed are marked with a Green + (Plus sign) and State = Install on next start but that never happens. I have rebuilt the IDE several times, using different settings in the build such as building and cleaning all but the packages are never installed. Odd. I down graded to 0.9.25 and it seems to load the packages correctly. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Lee Jenkins wrote: Lee Jenkins wrote: Mattias Gärtner wrote: Also, has anyone done any more extensive sample than are located in the / The error message is for both: users of the package and the weblaz authors. For the users it is sufficient: Package needs installation...open forms...package weblaz. If you want to open the form in the IDE, you probably need to install weblaz, because weblaz is needed by your project and weblaz provides some IDE plugins. The weblaz author needs the information about the register procedure and the unit. Maybe the text can be changed to a short advice (install weblaz) and a paragraph Details. Mattias Thanks Mattias, Something is not right here. I have tried to install the package as well as a couple of others (like Zeos) in my lazarus installation which is 0.9.27 rev. 16975. But if I look at the Package Graph, weblaz and other packages that I thought I had installed are marked with a Green + (Plus sign) and State = Install on next start but that never happens. I have rebuilt the IDE several times, using different settings in the build such as building and cleaning all but the packages are never installed. Odd. I down graded to 0.9.25 and it seems to load the packages correctly. LOL. Except that many of the regular components like DBControls are now gone from the palette. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
Mattias Gärtner wrote: Zitat von Lee Jenkins [EMAIL PROTECTED]: Lee Jenkins wrote: Lee Jenkins wrote: Mattias Gärtner wrote: Also, has anyone done any more extensive sample than are located in the / The error message is for both: users of the package and the weblaz authors. For the users it is sufficient: Package needs installation...open forms...package weblaz. If you want to open the form in the IDE, you probably need to install weblaz, because weblaz is needed by your project and weblaz provides some IDE plugins. The weblaz author needs the information about the register procedure and the unit. Maybe the text can be changed to a short advice (install weblaz) and a paragraph Details. Mattias Thanks Mattias, Something is not right here. I have tried to install the package as well as a couple of others (like Zeos) in my lazarus installation which is 0.9.27 rev. 16975. But if I look at the Package Graph, weblaz and other packages that I thought I had installed are marked with a Green + (Plus sign) and State = Install on next start but that never happens. I have rebuilt the IDE several times, using different settings in the build such as building and cleaning all but the packages are never installed. Odd. I down graded to 0.9.25 and it seems to load the packages correctly. LOL. Except that many of the regular components like DBControls are now gone from the palette. If the rebuild of the IDE succeeded, then a new IDE executable was created. Maybe you started somehow the old executable. Do you use startlazarus to start the IDE or do you start ./lazarus directly? Where the new lazarus executable is created depends on whether you installed lazarus via package or as source in your home directory. Hi Mattias, I installed (this particular version) from binary installer then updated via svn (a while ago) and I use startlazarus.exe. I think I might have to just scrap everything and reinstall lazarus fresh. I'm running WinXP SP 3. Thanks again, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] WebLaz - Every other request fails
Hi all, This is a separate issue than that I posted before. Using either the sessiondemo or echo projects, the request fails every other request. Request: OK Request: Error Request: OK Request: Error Request: OK Request: Error ..etc. When it fails, I get this output from session demo: == Debug failed: Access violation HTTP/1.1 200 OK Date: Wed, 19 Nov 2008 18:37:00 GMT Server: Apache/2.0.63 (Win32) Content-Length: 2545 Keep-Alive: timeout=15, max=99 Connection: Keep-Alive Content-Type: text/html snipped raw html tag output Debug failed: Access violation == I'm using Apache 2.063 on Windows XP SP3. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz - Every other request fails
ABorka wrote: I don't think the demo/example programs have been updated for the latest fpc/lazarus versions especially not for apache 2.0x You should get the latest svn source code for both fpc and lazarus and compile it (or use the daily build installer). There are fixes not included in earlier releases. Also make sure that you include the right units from the httpd20 folder in fpc and not the httpd22 ones (I think that is the default in lazarus). Thank you. I'll give it a try though I think at this point, I'll probably stick with powtils since I've not had any problems with it in the past even though it seems to be un-maintained at this point. I'll keep a copy myself and maintain it for my personal use. I'll try the fbweb/lazweb stuff still however as I am curious to get it working :) Thanks again, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz - Every other request fails
Graeme Geldenhuys wrote: On Wed, Nov 19, 2008 at 11:10 PM, Lee Jenkins [EMAIL PROTECTED] wrote: Thank you. I'll give it a try though I think at this point, I'll probably stick with powtils since I've not had any problems with it in the past even though it seems to be un-maintained at this point. I'll keep a copy myself and maintain it for my personal use. I'm still using powtils 1.6.0.2 for some of our larger CGI projects. It works perfectly. As for the un-maintained bit. I have read somewhere that Lars (z505) is quite swamped with paying work (job contracts) at the moment, so powtils is on the back burner for a while. I go through phases like that with fpGUI as well, so I wouldn't be to concerned - plus you have the source code anyway. :-) Yep, having the source is a good thing :) That's good news about Lars. I'll try the fbweb/lazweb stuff still however as I am curious to get it working :) Same here, I'm curious to try fbweb, I'm just not that fond of lazweb pulling in LCL. LCL doesn't belong in a CGI (basically console) application! Also it doubled the size of the CGI application. Yes I tried with SmartLinking and Strip. I simply removed the design time webmodule support (you just assign event handlers anyway with it), which then removed the LCL dependency and everything still worked fine - and I have a *much* smaller CGI executable without GUI requirements. Personally, I could do without the TDataModule descendant and just construct everything in code. After working with tiOPF for a while now, I forgot what a datamodule looks like ;) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] WebLaz Question
Anyone using the WebLaz package? I can compile the demo but when get error when trying to load the datamodule for these demos. I have installed the weblaz.lpk. Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WebLaz Question
ABorka wrote: It might be that http://bugs.freepascal.org/view.php?id=12375 is not applied yet. Are you making a CGI program or Apache modules? Windows or Linux? Also make sure you include the proper httpd files from the fpc source folders (httpd22, httpd20) if it is apache module you do. Lee Jenkins wrote: Anyone using the WebLaz package? I can compile the demo but when get error when trying to load the datamodule for these demos. I have installed the weblaz.lpk. Hi it's CGI. Odd that everything compiles ok, but there is apparently no designer support for the datamodule for some reason. I was using powtils, but that doesn't seem to be supported any more. sigh Maybe its time that I start working with .net again for my web stuff :( -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazreport issue
Michael Van Canneyt wrote: Hi, Nothing serious, but could the lazreport project on sourceforge be closed somehow ? I mistakenly downloaded and tried to install it, leading to all kinds of errors before I realized that lazreport is actually included in Lazarus under components/lazreport... Maybe the project should not be removed (don't know if this is actually possible on Sourceforge ?) but putting some kind of BIG warning on the lazreport website of sourceforge would be nice. Additionally, it would let people know that lazreport is not dead, which is the impression one gets when looking at sourceforge :-) I only got that impression when trying to use it. ;) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Getting my app. to 'sleep'
Dave Coventry wrote: Hi, I have been using the following code to write data to a serial printer: var ser:TBlockSerial; buf:string; begin ser:=TBlockserial.Create; try ser.RaiseExcept:=True; ser.Connect(cashdrawer); ser.Config(9600,8,'N',0,false,false); ser.SendString(buf); ser.Flush; finally ser.Free; end; end; However, if I use this nothing gets sent to the printer. But if I place showmessage('Printed!'); after the ser.SendString(but) then it prints out as expected. What a call to Sleep() ? -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TMS Software to trial FPC Lazarus
Graeme Geldenhuys wrote: Hi, I spoke to someone from TMS Software (http://www.tmssoftware.com) in the delph.non-technical newsgroups. He mentioned that TMS is trying out Lazarus and FPC for a new product. If all goes well with the first product, others will follow, :-) That /is/ good news. TMS has some great products, I've been using them in Delphi for about 4 years now. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Google reports -- Reported Attack Site!
Guadagnini David wrote: Roland Turcan ha scritto: Hello General mailing list! This message is shown when I visit lazarus.freepascal.org page. Is it only false report or really is there something? Reported Attack Site! This web site at lazarus.freepascal.org has been reported as an attack site and has been blocked based on your security preferences. Attack sites try to install programs that steal private information, use your computer to attack others, or damage your system. Some attack sites intentionally distribute harmful software, but many are compromised without the knowledge or permission of their owners. PS: I am using Firefox 3.0 on Windows Tested with Firefox 3.0, Firefox 2 and IE 6 on Windows XP professional. No problem for me. I got it on Vista/FF 3.0 -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WEB SITE BLOQUED
Chris37 wrote: Hi When i click to lazarus site ! i have this message ! Check out previous post about 'Google says this site may harm your computer'. It appears someone posted links to spurious website on the wiki or such and google has blacklisted the site. It'll be ok once the admins get rid of the bad content and then request a review. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] WEB SITE BLOQUED
Marc Weustink wrote: Lee Jenkins wrote: Chris37 wrote: Hi When i click to lazarus site ! i have this message ! Check out previous post about 'Google says this site may harm your computer'. It appears someone posted links to spurious website on the wiki or such and google has blacklisted the site. It'll be ok once the admins get rid of the bad content and then request a review. Thats already done. If you look at google it says that is had bad contents one time in the past 90 days. Thsi got resolved and rechecked. You can see this at google too. Anyway I fear that we are marked now for the next 3 months. I had the same thing happen to our company website and after it was cleaned up, I just requested a review and once they verified it, they took it of the list. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Felipe Monteiro de Carvalho wrote: On Sat, Jun 14, 2008 at 10:54 PM, Lee Jenkins [EMAIL PROTECTED] wrote: I've tried 2.2.0 which produces the error with GetUserDir not found error. Well, looking at the code: {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} It's illogical. It cannot have this error because it's in a IFDEF, so you are not using FPC 2.2.0 Go to the command line and run your compiler. It will show his version. Or easier: fpc -v FPC is not on my path variable, I must navigate to the directory of the whatever fpc version I want to check to do that. I compile LCL with FPC 2.2.0 and I don't get this error. How did you install FPC? See my post response to Maxim just before this reponse. Also, what operating system are you using? Vista business ed. I've tried 2.2.1 which is the same above. Because your 2.2.1 is old. You need to update it, which will actually now be 2.2.3 I tried 2.2.3 which I got by downloading a snapshot. I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have FPC Source Directory pointing to M:\fpc\2.2.3\source. The FPC Source Directory is designed to find the source when you want to find the declaration of something. It is *not* designed to build FPC on the fly You have to build FPC yourself. contnrs is part of FCL. A standard FPC compilation builds only the compiler and the RTL. You now need to build the FCL too. Here is how I build the FCL (in a batch file): cd packages PATH=C:\Programas\lazarus220\fpc\2.2.1\bin\i386-win32 make clean all COMPILER_UNITTARGETDIR=C:\Programas\lazarus220\fpc\2.2.1\units\arm-wince cd .. pause This apply If you are building the compiler manually. Don't know, I'll give this a try as well, but just followed Luiz' advise and commented out the offending portions which he did because he was getting the same error as well. Thank you for the in depth reply. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Maxim Ganetsky wrote: Lee Jenkins пишет: Maxim Ganetsky wrote: Lee Jenkins пишет: Felipe Monteiro de Carvalho wrote: Yeah, I get the same error using either FPC. I'll submit a bug report. It compiles for me, so I think you have a configuration problem. I'm not what more I can do except set the following properties in Environment Environment Settings: - Compiler Path - FPC Source Directory - Make Path I've tried 2.2.0 which produces the error with GetUserDir not found error. I've tried 2.2.1 which is the same above. I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have FPC Source Directory pointing to M:\fpc\2.2.3\source. Now, I haven't used Lazarus in about a month and the only thing I did was write click on my lazarus source folder and tell Tortoise SVN to download the latest sources. Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, I can't build it with any of the above. I'm not sure which or even how the configuration could be a problem unless there are more settings to change/set those that I have mentioned above, which are the only ones I've ever changed in the past. How do you recompile your IDE? If you do it from command line then check your PATH environment variable, otherwise setting the properties you mentioned should be enough. A While ago I followed the instructions on the wiki for compiling lazarus from sources on windows. Since then, I would just use tortoise svn to update my sources and recompile from the IDE using the build commands with everything checked to be maked, cleaned and built. This worked up until the last svn update I did a couple days ago. Yes, I understand this. But you needed to change your compiler. In what steps did you try to do it? It seems you made some mistake here. Ah, my fault. I downloaded and installed the latest lazarus snapshot that included 2.2.3. I then copied the fpc directory from that install to another directory on my computer. I then uninstalled the new snapshot. From there, I just updated the paths in my svn lazarus to point to the new fpc binaries and source under Environment Options and tried to rebuild lazarus from there. A bit of a round about way, but I didn't see any pre-built binary downloads for fpc 2.2.3 on the fpc site. BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because it doesn't get that far, but bombs almost immediately when trying to rebuild lazarus saying that it cannot find the contnrs unit. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Felipe Monteiro de Carvalho wrote: On Sat, Jun 14, 2008 at 1:14 PM, Lee Jenkins [EMAIL PROTECTED] wrote: Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated. Exactly. 2.2.1 is not a release, and thus it changes and lazarus changed to keep up with the latest version. You need to update your fpc I tried with 2.2.0 and that has the error so I guess I must update my fpc :) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile error with latest trunk
Lee Jenkins wrote: Mattias Gaertner wrote: On Fri, 13 Jun 2008 13:15:05 -0500 Ger Remmers [EMAIL PROTECTED] wrote: Just to make sure it wasn't something stupid that I had done I downloaded the whole trunk again and then tried the compile again. Compiling gtkextra.pp gtkextra.pp(49,35) Error: Identifier not found GType gtkextra.pp(51,45) Error: Identifier not found gtk_cell_view_get_type gtkextra.pp(54,51) Error: Identifier not found PGtkCellView gtkextra.pp(56,30) Error: Identifier not found PGtkCellView gtkextra.pp(56,45) Error: Identifier not found [...] Running fpc 2.2.0 on Suse 10.3 Sorry. My fault. Fixed. BTW, the same error happens when I try to rebuild using 2.2.0. Apparently, its not the version of fpc that I'm using that is the cause. I'll try to svn again and rebuild just in case something didn't go right there. Sorry, this was meant for my topic post above with the same title. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Lee Jenkins wrote: Felipe Monteiro de Carvalho wrote: On Sat, Jun 14, 2008 at 1:14 PM, Lee Jenkins [EMAIL PROTECTED] wrote: Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated. Exactly. 2.2.1 is not a release, and thus it changes and lazarus changed to keep up with the latest version. You need to update your fpc I tried with 2.2.0 and that has the error so I guess I must update my fpc :) I updated to 2.2.3 and now it won't build because it says it can find the Contnrs unit. I have gone into Environment Environment Options and set the following paths: - Compiler Path - FPC Source Directory - Make Path I can't understand why it can't find the the Contnrs unit. Its right there, in \fpc\2.2.3\source\packages\fcl-base\src -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Maxim Ganetsky wrote: Lee Jenkins пишет: Mattias Gaertner wrote: On Fri, 13 Jun 2008 21:33:38 -0400 Lee Jenkins [EMAIL PROTECTED] wrote: Maxim Ganetsky wrote: Lee Jenkins пишет: Lee Jenkins wrote: I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found GetUserDir Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks, Sorry, should have mentioned I have fpc 2.2.1 Please, update your FPC or use release version (2.2.0). Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc 2.2.1 so I'm having trouble understanding why I would want to downgrade from 2.2.1 to 2.2.0... Lazarus only runs with the released FPC or the current development version. At the moment: 2.2.0 and 2.2.3. Mattias Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated. Is there a way to specify an fpc to use for rebuilding lazarus, but use my newer one to compile my programs or must I just change the paths manually when I want to build lazarus and then set them back? AFAIK no. It won't work anyway as all modules used by your program should be compiled by the same compiler version (your program depends on LCL and Lazarus depends on it too, hence LCL, Lazarus and your program need the same compiler version). IMO the best option here is to use 2.2.0 for production software. 2.2.3 can be used too, but there can be some unexpected glitches. Also you can try 2.2.2rc1. It is newer than 2.2.0 and should be more stable than 2.2.3. BTW if Lazarus doesn't compile with 2.2.0 then you have found a bug. Yeah, I get the same error using either FPC. I'll submit a bug report. Thank you. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Felipe Monteiro de Carvalho wrote: Yeah, I get the same error using either FPC. I'll submit a bug report. It compiles for me, so I think you have a configuration problem. I'm not what more I can do except set the following properties in Environment Environment Settings: - Compiler Path - FPC Source Directory - Make Path I've tried 2.2.0 which produces the error with GetUserDir not found error. I've tried 2.2.1 which is the same above. I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have FPC Source Directory pointing to M:\fpc\2.2.3\source. Now, I haven't used Lazarus in about a month and the only thing I did was write click on my lazarus source folder and tell Tortoise SVN to download the latest sources. Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, I can't build it with any of the above. I'm not sure which or even how the configuration could be a problem unless there are more settings to change/set those that I have mentioned above, which are the only ones I've ever changed in the past. The only variable that I can see is the latest SVN of Lazarus with this new call to GetUserDir. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Luiz Americo Pereira Camara wrote: Lee Jenkins wrote: I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found GetUserDir Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks, Yes. Just comment the two lines and the IDE will work without problems. I had the same problem. The fpc 221 i have does not have that function. Luiz LOL, I wasn't sure if that function was actually needed. Thanks Luiz. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Lee Jenkins wrote: I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found GetUserDir Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks, Sorry, should have mentioned I have fpc 2.2.1 Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Compile Error Latest SVN
Maxim Ganetsky wrote: Lee Jenkins пишет: Lee Jenkins wrote: I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found GetUserDir Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks, Sorry, should have mentioned I have fpc 2.2.1 Please, update your FPC or use release version (2.2.0). Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc 2.2.1 so I'm having trouble understanding why I would want to downgrade from 2.2.1 to 2.2.0... -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [OT] - Small PC Suggestions?
Lee Jenkins wrote: Hi all, I'm wondering if anyone can suggestion a small pc for running a simple gtk lazarus app with synapse on? Basically, I need to mount the small PC onto or close to a 15 flat LCD monitor. It's for a bump bar system. Like you see in fast food restaurants that display customer orders for the kitchen staff to prepare. Thanks Guys, I'll have a look. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] [OT] - Small PC Suggestions?
Hi all, I'm wondering if anyone can suggestion a small pc for running a simple gtk lazarus app with synapse on? Basically, I need to mount the small PC onto or close to a 15 flat LCD monitor. It's for a bump bar system. Like you see in fast food restaurants that display customer orders for the kitchen staff to prepare. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Forms Color on Linux
Graeme Geldenhuys wrote: Lee Jenkins wrote: 1. Is is a known limitation of gtk1 that you cannot change the form's color? I've tried to do this, but this (at design time) has no effect. One of many reasons why I started fpGUI. When we still used LCL GTK1 (1.5-2 years ago), I was told it is not native behaviour and will not be fixed. Don't ask me what Linux native behaviour is, because every second Linux app behaves differently. :) A work around was to create some custom theme file, but that was not a solution for us. I have no idea what's the state of LCL GTK1 at the moment, regarding this issue. But from your comment, it seems nothing has changed. 2. With gkt2, the form's color does change with what it was set to at design I can't comment on GTK2. 1.5 years ago, GTK2 was totally unusable. Hmmm. That's a bit unfortunate. I get the idea of theming and centralizing the user feel, etc but that doesn't take into account task based applications. I've noticed also that other things like MouseDown and MouseUp seem to act differently (kind of sluggish) in GTK1/2 or maybe its Gnome in general. That's a show stopper for me. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Forms Color on Linux
Mattias Gärtner wrote: Zitat von Lee Jenkins [EMAIL PROTECTED]: Graeme Geldenhuys wrote: Lee Jenkins wrote: 1. Is is a known limitation of gtk1 that you cannot change the form's color? I've tried to do this, but this (at design time) has no effect. One of many reasons why I started fpGUI. When we still used LCL GTK1 (1.5-2 years ago), I was told it is not native behaviour and will not be fixed. Don't ask me what Linux native behaviour is, because every second Linux app behaves differently. :) A work around was to create some custom theme file, but that was not a solution for us. I have no idea what's the state of LCL GTK1 at the moment, regarding this issue. But from your comment, it seems nothing has changed. 2. With gkt2, the form's color does change with what it was set to at design I can't comment on GTK2. 1.5 years ago, GTK2 was totally unusable. Hmmm. That's a bit unfortunate. Nowadays I prefer gtk2 above gtk1. gtk2 is slower, but there are more things that work better under gtk2 than the other way. I think gtk2 looks much better as well. I get the idea of theming and centralizing the user feel, etc but that doesn't take into account task based applications. What theming? Theming by the programmer, or theming by the user/target platform? I assumed that the initial flicker that I see is caused by the forms default color being painted before the LCL gets a chance to paint over it again. I assumed the default color is based on whatever theme is in effect for the current user. I've noticed also that other things like MouseDown and MouseUp seem to act differently (kind of sluggish) in GTK1/2 or maybe its Gnome in general. That's a show stopper for me. Please create a bug report. I will, but I am thinking its something in gtk because even other none lazarus apps seem sluggish, just that lazarus gtk2 apps seem to add some sluggishness over top of that. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Forms Color on Linux
Graeme Geldenhuys wrote: Lee Jenkins wrote: Hmmm. That's a bit unfortunate. I get the idea of theming and centralizing the user feel, etc but that doesn't take into account task based applications. Exactly our issue as well. We have a GUI application designed for kids and need it colourful. We also have a admin GUI application designed for our franchises and needed custom (corporate) colours overall. We also use colour for input validation forms. Most of these worked when we ran under Windows, but not when it's run under Linux. Defeats the purpose of cross platform apps. Our custom drawn toolkit solves all these issues. I've noticed also that other things like MouseDown and MouseUp seem to act differently (kind of sluggish) in GTK1/2 or maybe its Gnome in general. That's a show stopper for me. Which components? LCL-GTK2 does feel slow compared to other non-LCL GTK2 based applications. GTK1 (I've got the Lazarus IDE compiled with in) seems okay. This particular component is one that I wrote that simulates a button. It's derived from TShape and changes its border (pen) color and background (brush) color on mousedown and then changes it back on mouse up. I've noticed it with plain TButton too however. For instance, I have a simple test app that loads a TListView with dummy data in a 50 count loop. Many times you will not see the TButton's down state, the code to load the dummy data will just run. You can get it to work if you are conscious of pressing down and then wait maybe 150-250 ms and then release. Most people don't do that though ;) -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] RESSTRSECTIONS?
I've been trying to get GnuGetText to compile again while I think I got a little bit farther, I've run into another snag. GnuGetText attempts to call ResourceStringTableCount, but the compiler say it cannot find the method. The method is in ObjPas unit but IFDEF'd like this: {$ifndef RESSTRSECTIONS} Function ResourceStringTableCount : Longint; Function ResourceStringCount(TableIndex : longint) : longint; Function GetResourceStringName(TableIndex,StringIndex : Longint) : Ansistring; Function GetResourceStringHash(TableIndex,StringIndex : Longint) : Longint; Function GetResourceStringDefaultValue(TableIndex,StringIndex : Longint) : AnsiString; Function GetResourceStringCurrentValue(TableIndex,StringIndex : Longint) : AnsiString; Function SetResourceStringValue(TableIndex,StringIndex : longint; Value : Ansistring) : Boolean; {$endif RESSTRSECTIONS} I'm sorry that I don't know more about the internals, but where would this directive get set? I tried explicitly setting it myself like below but it doesn't seem to get set: {$DEFINE RESSTRSECTIONS} in the gnuGetText unit, but of course that doesn't work. Then I thought, maybe it doesn't get set unless there is a resourcestring section so I tried adding one as well, but that didn't work either. I had to move some of the IFDEF's around to get it to compile this far so I suspect there is problems maybe with the $IFDEF logic in this unit... Judging from this particular $IDEF: {$IFDEF VER1_0} Sorry this code itsn't compatible with your FreePascal version. You must use 1.9.x version minimum. {$ENDIF} It doesn't look like the unit has been kept up to date. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Forms Color on Linux
Hi all, I have a couple of questions. 1. Is is a known limitation of gtk1 that you cannot change the form's color? I've tried to do this, but this (at design time) has no effect. 2. With gkt2, the form's color does change with what it was set to at design time but it I've noticed that there is a bit of transition. In other words, when the form is shown it takes on the default color and then changes so that you can see a splash of white before the color that was set at design time takes effect. Note: I'm trying this in a Virtual Box image so there's not a lot of horsepower there for video. Does anyone else see this behavior? Thanks, -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Problem with threads in Lazarus 0.9.24
Petr Hložek wrote: Hi Lee, it looks that you are right. I have the same problem. Is there any patch for 2.2.0 version? I tried to download and build older version of fpc (2.0.4) but I cannot compile one of main component for my program. I tried also latest source code of fpc-2.2.1 but I cannot compile Lazarus 0.9.24 with this version. Is there any solution or I have to wait for newer Lazarus and fpc? Thanks for help! Petr Lee Jenkins píše v Ne 18. 05. 2008 v 12:53 -0400: Petr Hložek wrote: Hello, my application uses threads. I have created TStringList for data exchange. It is global variable. If I receive any data from telnet connection I put it into this string list and create thread if is not already created. Thread read and delete this data from StringList. If I run my program, connect to telnet, it takes about half hour and program crash with this error: Failed to create new thread I used to Lazarus 0.9.23cvs and I didnt have problem with it. Problem appears after upgrade to 0.9.24 :-(. Dou you have any idea what can be wrong or what I should do better? Source code of my thread is here: http://cqrlog.svn.sourceforge.net/viewvc/cqrlog/fDXCluster.pas?view=markup it start at line nr. 487 and body of the thread begins on line nr. 681. Petr, I could be wrong, but I think I recall a mail list thread about threads. Below is is a post from a little while ago. Is it related maybe? Can you try to grab a snapshot version of lazarus from here? http://www.hu.freepascal.org/lazarus/ The above are pre-compiled binaries. More information on installing from source can be found here if you're interested in that. http://wiki.lazarus.freepascal.org/Installing_Lazarus HIH -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Linux Installation Advise
ik wrote: I'd never used Lazarus with CentOS (it is a server distro for Linux, and it is not suitable enough for desktop use, use Fedora for desktop use instead if you wish to have redhat approach). Hmmm. I'm no distro expert by any stretch, Ido but isn't it the same if I don't choose all the server related software on install and choose the desktop oriented path? For GTK2, you should install libgtk2* that is the libraries of GTK2 and also do not forget to install pixbuf of GTK2. The same for GTK1.2 (but who use it this days anyway ?!) I found this out last night since even the lazarus snapshot RPM's don't seem to indicate these as dependencies, maybe assumed that they already exist on the machine and the person installing has a modicum of knowledge about GUI development on Linux ;) After you have installed all of the above, you can compile (don't you have a spec file for creating Lazarus in RPM ?!) and install Lazarus. No, I don't. Is there another use for a spec file other than creating an RPM? Thanks! -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARM-WinCE - db engine, printing
[EMAIL PROTECTED] wrote: Hi Zaher, I would be very much interested in the details too. :) DB: - How do you connect to SQLite? - Which version you are using? - I suppose it is stable then, is it? Printing: - Any detail is highly appreciated. :) Sorry Leslie, didn't meant to hijack your thread. I'll be doing some POS related printing framework very soon and Zaher's reponse caught my attention. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Problem with threads in Lazarus 0.9.24
Petr Hložek wrote: Hello, my application uses threads. I have created TStringList for data exchange. It is global variable. If I receive any data from telnet connection I put it into this string list and create thread if is not already created. Thread read and delete this data from StringList. If I run my program, connect to telnet, it takes about half hour and program crash with this error: Failed to create new thread I used to Lazarus 0.9.23cvs and I didnt have problem with it. Problem appears after upgrade to 0.9.24 :-(. Dou you have any idea what can be wrong or what I should do better? Source code of my thread is here: http://cqrlog.svn.sourceforge.net/viewvc/cqrlog/fDXCluster.pas?view=markup it start at line nr. 487 and body of the thread begins on line nr. 681. Petr, I could be wrong, but I think I recall a mail list thread about threads. Below is is a post from a little while ago. Is it related maybe? -- Warm Regards, Lee OK - seems to be an fpc-bug - and the good news: Already fixed in current 2.2.1. In fpc 2.2.0 the TThread.FreeOnTerminate doesn't work as expected regards Lukas Lukas Gradl schrieb: Hello! I have some strange memory problem with a TThread-Descendant. For debugging I created a little test-app with a button on it and the following OnClick-Handler: procedure TForm1.Button1Click(Sender: TObject); begin TThreadDummy.Create; end; The Thread looks like that: type TThreadDummy=class(TThread) protected procedure Execute; override; public constructor Create; end; constructor TThreadDummy.Create; begin inherited create(true); FreeOnTerminate := true; Resume; end; procedure TThreadDummy.Execute; begin //do nothing - just exit! end; The program is compiled using FPC 2.2.0, Lazarus 0.9.24-0 precompiled from Lazarus Page and Debian as OS Every time I press the button, the program uses 8192 Bytes of memory more (according to the ps-command). I've another app with a big TThread descendant, which eats up the same 8192 on every TThreadDescendant.Create... Anyone an idea what I might have done wrong? regards Lukas ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARM-WinCE - db engine, printing
Zaher Dirkey wrote: About printer Is ESC/POS like as EPSON i used over bluetooth from my pocket_pc WinCE 5.0 and WM5 I commited my work to MiniLib Project http://www.sourceforge.net/projects/minilib see folder \MiniComm\printers\escpos and there is a simple Demo for testing MiniComm\demo\delphi\escpos i also test it by DOSPrinter www.geocities.com/dosprint Neat stuff, Zaher. Thanks -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Generics
I've read some bit on Generics in the docs and a few other places, but I'm yet to understand what it does and what benefit it provides. Can anyone comment? Is anyone using Generics? -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to send bug reports?
[EMAIL PROTECTED] wrote: Selecting Bug Tracking http://bugs.freepascal.org/set_project.php?project_id=1 at http://www.lazarus.freepascal.org/ never returns. Is there any other way to send bug reports? Here is a direct link: http://bugs.freepascal.org/main_page.php -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Linux Installation Advise
Hi all, I've loaded a new VirtualBox image with CentOS 5 and as usual, I've having a little bit of trouble installing from sources, no doubt because of my limited linux knowledge to date. The biggest challenge that I have is ensuring that all required libraries are installed. Would you recommend that I first install RPM of latest snapshot to ensure that all required libs are installed and then just download latest trunk to a new directory and and build from there? If anyone has any proven strategies for installing on linux, I'd appreciate you sharing them. p.s. I have been reading over wiki, which is where I ran into trouble :) Hope everyone is having a great weekend. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] ARM-WinCE - db engine, printing
Zaher Dirkey wrote: I have project on WinCE-ARM using SQLite and Printing over COM ports using ESC/POS printer. Zaher, I'm very interested in this. Are you using the Epson ESC commands and printing directly to the printer? -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TListView.Items.Count property R/W?
Cesar Romero wrote: Lee Jenkins escreveu: I was looking through the bug tracker and happend upon this bug: http://bugs.freepascal.org/view.php?id=8387 Basically, it reports that TListView.Items.Count property is read only while in Delphi it is Read/Write. I was just curious why would someone need to change the count property from outside of the component. Just curious as I've never had a need to do that... In Delphi it is used to work in Virtual Mode. Neat stuff. Thanks Cesar. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Object free itself?
I've never tried this type of thing before, but I have need to have an object free self. After freeing any resource used by the object in it's Destructor, I call inherited destroy and it looks like the inherited destroy methods works, but right afterward, get a sig exception in LCLProc.unit: function TMethodList.Count: integer; begin if Selfnil then Result:=FCount == here else Result:=0; end; Is it even possible to have an object free itself? BTW, I'm trying my hand at creaing an MVC and I need the controller to be able to free itself because it is the object that 1) Creates the View (form) and 2) the Model (object) and mediates between them. When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Otherwise, I guess I must create some kind of manager object/list to free the controller from the outside. Note: If I free the controller object from outside (like putting it in an objectlist and calling ObjectList.clear) there is no exception. Just calling free from the object itself poses the problem. Thanks for input. -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Lee Jenkins wrote: I've never tried this type of thing before, but I have need to have an object free self. After freeing any resource used by the object in it's Destructor, I call inherited destroy and it looks like the inherited destroy methods works, but right afterward, get a sig exception in LCLProc.unit: function TMethodList.Count: integer; begin if Selfnil then Result:=FCount == here else Result:=0; end; Is it even possible to have an object free itself? BTW, I'm trying my hand at creaing an MVC and I need the controller to be able to free itself because it is the object that 1) Creates the View (form) and 2) the Model (object) and mediates between them. When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Otherwise, I guess I must create some kind of manager object/list to free the controller from the outside. Note: If I free the controller object from outside (like putting it in an objectlist and calling ObjectList.clear) there is no exception. Just calling free from the object itself poses the problem. Never mind, I just saved myself a bit of aggravation and created a list manager for my controllers which works nicely and free everything from the outside without problems. Thanks, -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Lee Jenkins wrote: Lee Jenkins wrote: I've never tried this type of thing before, but I have need to have an object free self. After freeing any resource used by the object in it's Destructor, I call inherited destroy and it looks like the inherited destroy methods works, but right afterward, get a sig exception in LCLProc.unit: function TMethodList.Count: integer; begin if Selfnil then Result:=FCount == here else Result:=0; end; Is it even possible to have an object free itself? BTW, I'm trying my hand at creaing an MVC and I need the controller to be able to free itself because it is the object that 1) Creates the View (form) and 2) the Model (object) and mediates between them. When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Otherwise, I guess I must create some kind of manager object/list to free the controller from the outside. Note: If I free the controller object from outside (like putting it in an objectlist and calling ObjectList.clear) there is no exception. Just calling free from the object itself poses the problem. Never mind, I just saved myself a bit of aggravation and created a list manager for my controllers which works nicely and free everything from the outside without problems. Damn, I spoke too soon. Its still doing it. Apparently, I just cannot call any kind of code from within the object that somehow frees it? Is there any way around this? -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Mattias Gaertner wrote: On Thu, 15 May 2008 14:43:20 -0400 Lee Jenkins [EMAIL PROTECTED] wrote: I've never tried this type of thing before, but I have need to have an object free self. After freeing any resource used by the object in it's Destructor, I call inherited destroy and it looks like the inherited destroy methods works, but right afterward, get a sig exception in LCLProc.unit: function TMethodList.Count: integer; begin if Selfnil then Result:=FCount == here else Result:=0; end; Is it even possible to have an object free itself? Yes. In fact, it does not matter who frees it. Just make sure, all refences to the object are set to nil. BTW, I'm trying my hand at creaing an MVC and I need the controller to be able to free itself because it is the object that 1) Creates the View (form) and 2) the Model (object) and mediates between them. When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Otherwise, I guess I must create some kind of manager object/list to free the controller from the outside. Note: If I free the controller object from outside (like putting it in an objectlist and calling ObjectList.clear) there is no exception. Just calling free from the object itself poses the problem. Create a backtrace. Find out, where something accesses the control after it has been freed. OK, then there must be a something that is still referencing the object somewhere. I'll check. Thank you. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Mattias Gaertner wrote: Create a backtrace. Find out, where something accesses the control after it has been freed. Odd. Not much information from a backtrace: Program received signal SIGSEGV, Segmentation fault. 0x00440cc5 in TMETHODLIST__COUNT (this=0xf0f0f0f0) at lclproc.pas:665 665 lclproc.pas: No such file or directory. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Mattias Gaertner wrote: On Thu, 15 May 2008 21:25:38 +0200 Mattias Gaertner [EMAIL PROTECTED] wrote: [...] When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Ehm. Please explain 'when the form is closed'. A lcl form is not a single object. Granted. What I'm trying to do is control the creation of the form and the object that the form is a view of from within the controller. 1. Controller is created. 2. Controller create the object/model. 3. When the form is closed the controller destroys the form and the model and then frees itself. Currently, I'm hooking into the form's Onclose event with a method in the controller with the same signature. When the method is fired, the controller frees the form and the model/object then frees itself. I guess I could create the controller from within the form/view, but that seems to defeat the idea of MVC. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Mattias Gaertner wrote: On Thu, 15 May 2008 16:41:00 -0400 Lee Jenkins [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Thu, 15 May 2008 21:25:38 +0200 Mattias Gaertner [EMAIL PROTECTED] wrote: [...] When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Ehm. Please explain 'when the form is closed'. A lcl form is not a single object. Granted. What I'm trying to do is control the creation of the form and the object that the form is a view of from within the controller. 1. Controller is created. 2. Controller create the object/model. 3. When the form is closed the controller destroys the form and the model and then frees itself. Currently, I'm hooking into the form's Onclose event with a method in the controller with the same signature. When the method is fired, the controller frees the form and the model/object then frees itself. I guess I could create the controller from within the form/view, but that seems to defeat the idea of MVC. Please keep in mind, that you can not free a control, during an event for this control. (Some events on some widgetsets allow this, but this can change in future so I won't count on it). But you can free it later, using Application.ReleaseComponent(AControl). For example: Form1.Close; Application.ReleaseComponent(Form1); Form1:=nil; The Form1 will continue existing and will be freed on next idle. Neat. I'll see if I can work that in somehow. Thanks Mattias. -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Object free itself?
Lee Jenkins wrote: Mattias Gaertner wrote: On Thu, 15 May 2008 16:41:00 -0400 Lee Jenkins [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Thu, 15 May 2008 21:25:38 +0200 Mattias Gaertner [EMAIL PROTECTED] wrote: [...] When the form is closed, the controller is notified and need to 1) free the form 2) free the model/object and 3) free itself. Ehm. Please explain 'when the form is closed'. A lcl form is not a single object. Granted. What I'm trying to do is control the creation of the form and the object that the form is a view of from within the controller. 1. Controller is created. 2. Controller create the object/model. 3. When the form is closed the controller destroys the form and the model and then frees itself. Currently, I'm hooking into the form's Onclose event with a method in the controller with the same signature. When the method is fired, the controller frees the form and the model/object then frees itself. I guess I could create the controller from within the form/view, but that seems to defeat the idea of MVC. Please keep in mind, that you can not free a control, during an event for this control. (Some events on some widgetsets allow this, but this can change in future so I won't count on it). But you can free it later, using Application.ReleaseComponent(AControl). For example: Form1.Close; Application.ReleaseComponent(Form1); Form1:=nil; The Form1 will continue existing and will be freed on next idle. Neat. I'll see if I can work that in somehow. Worked like a champ. Thanks! -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TListView.Items.Count property R/W?
I was looking through the bug tracker and happend upon this bug: http://bugs.freepascal.org/view.php?id=8387 Basically, it reports that TListView.Items.Count property is read only while in Delphi it is Read/Write. I was just curious why would someone need to change the count property from outside of the component. Just curious as I've never had a need to do that... -- Warm Regards, Lee ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazReport
Michael Van Canneyt wrote: On Tue, 13 May 2008, Lee Jenkins wrote: Hi all, I've never used Freereport, but I have used FastReport 2.4x through 3.x quite a bit. I tried evaluating LazReport a few months ago and had problems with aggregate functions cause AV's and stalling the program. I thought I'd give it another go with svn rev.15082 and while I won't rule out the fact that I may be doing something wrong, I can't seem to get it to act right for anything but the simplest listing reports without aggregate functions whatsoever. Has anyone used this component for any significant reports? Again, I've never used FreeReport per se, only the commercial FastReport version so I'm assuming that I have at least enough knowledge to build a simple report with aggregates, but my impression thus far is that the component just seems unusable for me. Again, I could be just doing something wrong as I'm sure that there were significant changes between the FreeReport version and FastReport 2x or 3x. I am also a FastReport user: FreeReport is just an early FastReport 2.x version, so if it worked in FastReport 2.x, it should work in FreeReport/lazReport. Agreed. FastReport is an excellent reporting tool and I would like very much to get it to work, but it appears that remains to be seen as of now. It's of course possible that during porting, some bugs were introduced. The Fastreport People told me (back in October) that they planned to port FastReport 4 to Lazarus in Q1 of this year. Since I haven't seen anything yet, I assume that some problems popped up. I'm not altogether surprised because it's not an easy task, given the complexity of FastReport :-) Well that give me an excuse to upgrade, but I am fairly satisfied with FR 3 right now. :) I can imagine that is must be a fairly daunting task! -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LazReport
Graeme Geldenhuys wrote: Lee Jenkins wrote: Reporting is significant to an application (well the back office portion) that I'm hoping to write with Lazarus/Freepascal and without a viable solution, I stuck with using Delphi or Visual Studio/Mono. I have not user FreeReports or LazReports yet, so can't comment on them. I wouldn't dismiss Lazarus/Free Pascal that quickly though. ;-) I have a RTF based report engine which might come in handy as well. I use it to report off my tiOPF objects, but it can report from TDataset's as well, or both. You can create custom fields (tags) for use in your reports as well. So you are only limited to what Free Pascal can do! :) The RTF report engine was originally written for Delphi and tiOPF. I ported it to Free Pascal and fpGUI. It should work as-is for Lazarus. I commented out the image support due to fpGUI lacking JPEG support, but that should be fairly straight forward to get working with Lazarus (as it's much closer to how Delphi works). I can email you in private the original and ported RTF engine if you want. It's one unit and a sample application. BTW: I use OpenOffice to view reports and design the rtf report templates. I have even created a OpenOffice macro to convert the generated rtf to pdf before it gets viewed by the user. BTW #2: I still want to have a look at PowerPDF as well. That would be handy for non-Lazarus based applications as well. Hi Graeme, That is the whole point, to use Lazarus/FreePascal! I want freedom of platform! I already know I that can (and am, for that matter) writing the major (front office) portion of my application in Laz/FPC. I'll take a look-see, but I'd rather not have 3rd party requirements for reporting if I can help it. PowerPDF seems pretty tight to me, even is there is no banded report designer. Maybe if you would send me what you have for your rtf engine, I could see how it might be used as a basis for one with PowerPDF. Fortunately, I will not need to start writing reports for quite a while yet so I can wait to see how LaReport shapes up. Just knowing I could use PowerPDF (after playing with it a bit yesterday) is enough for me if LazReport doesn't seem viable by the time I have to start on reporting. Nice to have options. :) BTW, I noticed that the PDF export filter that was written for FreeReport uses PowerPDF for its engine. Thanks to all for your input! -- Warm Regards, Lee When my company started out, we were really, really, really, really small. Now...we're just really small. ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus