Re: [Lazarus] How to cleanly terminate "http server application"/"fastcgi application"?
On Tue, 14 Apr 2015, Luca Olivetti wrote: I couldn't find a built-in way to cleanly terminate them, so I had to install a signal handler to issue an Application.Terminate. Is there a provided way that I missed? No. Calling Terminate is what needs to be called. How/when this needs to be called is up to you. Installing a signal handler is one way (a good one). I sometimes install a password protected URL handler that calls terminate. BTW, also, they don't daemonize under Linux/run as service under windows. Maybe they aren't supposed to? They are not supposed to. That kind of thing is a design decision only you can make. This is the reason why web components have the TWebHandler and TApplication classes split: the webhandler does the work, the TApplication part determines what kind of application it is. I have executables that can run as a service or as a normal binary. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to stream TColor in hexadecimal format?
On Mon, 13 Apr 2015 23:49:50 +0200 Vojtěch Čihák wrote: >[...] > how to stream TColor in hexadecimal format? > > Currently, TColor is streamed as > > Color = 5810431 > Color = clTeal > > in *.lfm or As far as I know the underlying TAbstractObjectWriter does not support hexadecimal. > > > > in *.xml. > How can I stream it in $00FEDCBA format? > > In the worst case, I probably can move those properties from published to > public and TPersistent.DefineProperties. > Will it work? No, because that uses TAbstractObjectWriter too. > Or is there some more elegant way? Maybe you can overload RegisterIntegerConsts(TypeInfo(TColor), TIdentToInt(@IdentToColor), TIntToIdent(@ColorToIdent)); with your own functions and write colors as "h00FEDCBA". Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tiOPF TtiListView Resource ti_Exit_16N not found
On 2015-04-13 20:14, Andreas Frieß wrote: > but i see tiOPF is > not 'Out of the box' if you want to see a demo running Some of the demos are indeed a bit out of date - normally small code changes to get them working again. But that doesn't affect the actual framework - which works very well and fully unit tested every 2 hours. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Bug: CodeTools can't handle some generics
I am prepping to release version 2 of Bare Game, and in doing so am producing a "lets make a game" video series where I show a cross platform game running on Windows, Linux, Macintosh, and the Ouya console (a basic android system). I am hoping the video tutorial series which takes someone from a non programming background, introduces them to Free Pascal and Lazarus, and teaches basic of game development skills using Bare Game in a series of 14 videos. The problem is there are a few issues with CodeTools which I think may hamper new users. One problem in particular deals with code insight, which helps Lazarus users find methods on objects. Users can normally press ctrl+space after the dot of an object and get a drop down list of properties, methods, and other information related to a class or record. In Bare.Game library though I make use of clonable objects (cloning a sprite, cloning a pen, cloning a vector graphics path for example) and their definitions typically look like this: TGraphicObject = class(TPersistObject, ICloneable) TPen = class(TGraphicObject) I filled out a CodeTools bug report with a video. Mantis report: http://mantis.freepascal.org/view.php?id=27847 Video: http://cache.getlazarus.org/video/bare_game_code_tools.mp4 If I could get some help understanding CodeTools I could fix these errors and possibly a few others, but I honestly hesitate to put out this tutorial when I know new users are going to struggle if CodeTools constantly jumps to source code units telling theme there is an error, when in fact there are no errors. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to cleanly terminate "http server application"/"fastcgi application"?
I couldn't find a built-in way to cleanly terminate them, so I had to install a signal handler to issue an Application.Terminate. Is there a provided way that I missed? BTW, also, they don't daemonize under Linux/run as service under windows. Maybe they aren't supposed to? Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] How to stream TColor in hexadecimal format?
Hello, how to stream TColor in hexadecimal format? Currently, TColor is streamed as Color = 5810431 Color = clTeal in *.lfm or in *.xml. How can I stream it in $00FEDCBA format? In the worst case, I probably can move those properties from published to public and TPersistent.DefineProperties. Will it work? Or is there some more elegant way? Thanks for help, V. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tiOPF TtiListView Resource ti_Exit_16N not found
Am 13.04.2015 um 18:42 schrieb Mattias Gaertner: On Sun, 12 Apr 2015 20:07:42 +0200 Andreas Frieß wrote: I want to work with the tiOPF Framework. Installing the Framework was Ok (all packages are compiled and installed in the IDE), also the converting of the demos. But if a tiListView is on a form (or dropped) the error message 'TtiListView Resource ti_Exit_16N not found' is comming. The file is inside of the framework existing. How can i fix this issue ? Is the question well placed here ? The tiOPF framework is not part of Lazarus, so for many here this translates to "my package shows the error message 'TtiListView Resource ti_Exit_16N not found'". What kind of file is ti_Exit_16N? It was a bmp for a button. The trouble was in the old resource /new resource managment. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Regards Andi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tiOPF TtiListView Resource ti_Exit_16N not found
Yes, my question ist specific to tiOPF and better dicussed in the right newsgroup (i have found later by RTFM). The issue with the TitListView is now fixed for me, but i see tiOPF is not 'Out of the box' if you want to see a demo running (its not running yet). So we can close this question. Regards Andi Am 13.04.2015 um 19:49 schrieb Graeme Geldenhuys: On 2015-04-12 19:07, Andreas Frieß wrote: I want to work with the tiOPF Framework. I'm assuming you are the same user that posted a similar message in the tiopf.support newsgroup. If not, I've answered the question in the newsgroup. Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tiOPF TtiListView Resource ti_Exit_16N not found
On 2015-04-12 19:07, Andreas Frieß wrote: > I want to work with the tiOPF Framework. I'm assuming you are the same user that posted a similar message in the tiopf.support newsgroup. If not, I've answered the question in the newsgroup. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On 2015-04-13 16:41, Michael Van Canneyt wrote: > > IMHO the problem is primarily: what happens if it goes wrong. Not sure about SubVersion (too too familiar with it any more, but the solution is pretty simple when using the Git mirrors. On a failure, revert to last used commit (SHA1). > i.e. the compile fails somewhere halfway the LCL. > The IDE will continue to function, but you won't be able to compile any apps. Giving the problem 15 seconds of my time (a better solution could probably be realised with more thought)... Instead of a "check for updates" which does everything, make it a dialog which tracks the last used commit (SHA1 value). So if anything goes wrong like you described, you can always go back into that dialog and select the "revert to previous commit", and you are back in action. ;-) > Also, doing this requires a checkout. This will increase diskspace etc. Probably with SubVersion yes, but not a problem with Git. Git has the full history locally and you can switch to any commit in that history in an instant. Git previously noted, a git checkout with full history is still smaller than a single commit SVN checkout (which duplicates everything in the .svn directories). [this is how SVN used to work] Summary of workflow using the Git mirror: (dialog takes not of current SHA1 commit value) git stash // save local changes you might have made git fetch git stash pop // reapply your local changes (maybe this should be optional) (trigger the IDE recompile) ... compilation failure detected... (click that revert button) git checkout // git resets back to the last good commit A basic working package of this is still possible 15-30 minutes, even with the extra step. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
Il 13/04/2015 17:21, Salvatore Coppola ha scritto: IMHO this features are only a needless complexity. Both for Lazarus and FPC, SVN or Git do the work in a excellent way for a good programmer (i suppose Lazarus and FPC users are programmers). I'm an hobbist programmer (very poor for the truth) but I've no problems to update via SVN +1 Giuliano -- Giuliano Colla Project planning question: when it's 90% done, are we halfway or not yet? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Zeosdbo
Sorry sent it the wrong group. On Mon, 2015-04-13 at 11:47 -0500, Terry A. Haimann wrote: > I'm sure its possible to connect to Mysql with Zeosdbo from a command > line FreePascal Program, but I am not sure how. I tried using the same > includes that are for the Lazarus components, but it didn't find those > files. > > Any help would be appreciated. > > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Zeosdbo
I'm sure its possible to connect to Mysql with Zeosdbo from a command line FreePascal Program, but I am not sure how. I tried using the same includes that are for the Lazarus components, but it didn't find those files. Any help would be appreciated. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] tiOPF TtiListView Resource ti_Exit_16N not found
On Sun, 12 Apr 2015 20:07:42 +0200 Andreas Frieß wrote: > I want to work with the tiOPF Framework. > > Installing the Framework was Ok (all packages are compiled and installed > in the IDE), also the converting of the demos. But if a tiListView is on > a form (or dropped) the error message 'TtiListView Resource ti_Exit_16N > not found' is comming. The file is inside of the framework existing. > > How can i fix this issue ? Is the question well placed here ? The tiOPF framework is not part of Lazarus, so for many here this translates to "my package shows the error message 'TtiListView Resource ti_Exit_16N not found'". What kind of file is ti_Exit_16N? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On Mon, 13 Apr 2015, Graeme Geldenhuys wrote: On 2015-04-13 14:58, Lukasz Sokol wrote: Probably doable IFF one wants to, or can, run on SVN/GIT releases and rebuild by themselves; I would (and already do) go with this option. It would also download the least about. I'm pretty sure with 15 minutes to spare, somebody could write a Lazarus add-on (package) that registers a new "Get Updates" menu item in say the Help menu, which triggers a 'git stash; git pull; git stash pop' and then finally triggers the IDE to rebuild. This is not so difficult. IMHO the problem is primarily: what happens if it goes wrong. i.e. the compile fails somewhere halfway the LCL. The IDE will continue to function, but you won't be able to compile any apps. Also, doing this requires a checkout. This will increase diskspace etc. Lots of pitfalls. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
2015-04-13 16:28 GMT+02:00 Martin Frb : > On 13/04/2015 14:58, Lukasz Sokol wrote: > >> On 13/04/15 14:28, Michael Van Canneyt wrote: >> >>> Do you need additional features: a diff kind of update, >>> >> My bet's primarily on this one. >> >> > Well then the question is, is the request for > - an AUTO update (same download, just the IDE checks for it) > - an UPDATE installer, that reduces the download size. > > Of course ideally both. > > IMHO the rebuild with your packages should not be part of the installer, > but be done when you run the IDE. Same as we have the setup screen,the IDE > could probably detect that the configured packages are no longer installed, > and ask. > > As for the installer size, their are many options. The problem is > manpower. Such installers have to be build in order to be provided, and > someone has to do this on every release. > > Speaking of the windows installer (I do not know the others) > It be possible to build an Lazarus only, no fpc, if you already have fpc > in the correct version from the last install. But it needs to be build each > time. And it will add work on support, if people try to use it with an > older fpc, > It would also be possible to just install tho Lazarus sources, no ppu > included, and then build them locally (more time to install, less download). > > IMHO this features are only a needless complexity. Both for Lazarus and FPC, SVN or Git do the work in a excellent way for a good programmer (i suppose Lazarus and FPC users are programmers). I'm an hobbist programmer (very poor for the truth) but I've no problems to update via SVN > There are many possible variations. But they all will take time for > building and testing on every release. > > > -- > ___ > Lazarus mailing list > Lazarus@lists.lazarus.freepascal.org > http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus > -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On 13/04/2015 14:58, Lukasz Sokol wrote: On 13/04/15 14:28, Michael Van Canneyt wrote: Do you need additional features: a diff kind of update, My bet's primarily on this one. Well then the question is, is the request for - an AUTO update (same download, just the IDE checks for it) - an UPDATE installer, that reduces the download size. Of course ideally both. IMHO the rebuild with your packages should not be part of the installer, but be done when you run the IDE. Same as we have the setup screen,the IDE could probably detect that the configured packages are no longer installed, and ask. As for the installer size, their are many options. The problem is manpower. Such installers have to be build in order to be provided, and someone has to do this on every release. Speaking of the windows installer (I do not know the others) It be possible to build an Lazarus only, no fpc, if you already have fpc in the correct version from the last install. But it needs to be build each time. And it will add work on support, if people try to use it with an older fpc, It would also be possible to just install tho Lazarus sources, no ppu included, and then build them locally (more time to install, less download). There are many possible variations. But they all will take time for building and testing on every release. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On 2015-04-13 13:36, Michael Van Canneyt wrote: > What is "auto update" Yup, I'm assuming it is like that damn annoying thing under Mac OS X which you simply cannot disable for any installed applications or the OS. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On 2015-04-13 14:58, Lukasz Sokol wrote: > Probably doable IFF one wants to, or can, run on SVN/GIT releases > and rebuild by themselves; I would (and already do) go with this option. It would also download the least about. I'm pretty sure with 15 minutes to spare, somebody could write a Lazarus add-on (package) that registers a new "Get Updates" menu item in say the Help menu, which triggers a 'git stash; git pull; git stash pop' and then finally triggers the IDE to rebuild. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On 13/04/15 14:28, Michael Van Canneyt wrote: > > Do you need additional features: a diff kind of update, My bet's primarily on this one. > smaller > download, recompile IDE with previously installed packages... > whatever ? > the latter being nice touches but dependent on the first too. Probably doable IFF one wants to, or can, run on SVN/GIT releases and rebuild by themselves; how would one do binary diff updates in packaged world anyway...? > Michael. > el es -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On Mon, 13 Apr 2015, Anthony Walter wrote: Sorry for the confusion, the original question poster was referring to packages like the one I maintain at http://www.getlazarus.org/setup The same request could be applied to the lazarus-ide.org direct downloads located here as well http://www.lazarus-ide.org/index.php?page=downloads Or any other place which serves binary copies of FPC/Lazarus OK. That still does not answer my question: What is an 'auto update' feature supposed to do other than download a new release (possibly in the background) and start the installer ? Do you need additional features: a diff kind of update, smaller download, recompile IDE with previously installed packages... whatever ? Michael.-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
Sorry for the confusion, the original question poster was referring to packages like the one I maintain at http://www.getlazarus.org/setup The same request could be applied to the lazarus-ide.org direct downloads located here as well http://www.lazarus-ide.org/index.php?page=downloads Or any other place which serves binary copies of FPC/Lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
Are searching for something like fpcup ? It works with SVN and download only the changed code for Lazarus and fpc. See http://wiki.lazarus.freepascal.org/fpcup Regards, Andi Am 13.04.2015 um 14:36 schrieb Michael Van Canneyt: On Mon, 13 Apr 2015, Anthony Walter wrote: Someone wrote me regarding Lazarus and asked: "Can you please add auto update to the project? So I can auto update lazarus, freepascal without having to download 150mb each time?" What is "auto update" other than downloading 150Mb and running the installer ? Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Auto Update Request
On Mon, 13 Apr 2015, Anthony Walter wrote: Someone wrote me regarding Lazarus and asked: "Can you please add auto update to the project? So I can auto update lazarus, freepascal without having to download 150mb each time?" What is "auto update" other than downloading 150Mb and running the installer ? Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Auto Update Request
Someone wrote me regarding Lazarus and asked: "Can you please add auto update to the project? So I can auto update lazarus, freepascal without having to download 150mb each time?" I wrote back telling the person I'd ask for feedback on the mailings lists. My questions is has anyone tackled this sort of feature for Lazarus and Free Pascal yet and if so what sort progress had you made or problems you had encountered? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Error in project path settings editor : TControl.InvalidatePreferredSize loop detected PathEditorDialog:TPathEditorDialog Bounds
newest svn Lazarus Win32, all clean build. Lazarus 1.5 r48740 FPC 2.6.4 i386-win32-win32/win64 Full error message: TControl.InvalidatePreferredSize loop detected PathEditorDialog:TPathEditorDialog Bounds=l=420,t=156,r=16981,b=572. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus