Re: [lazarus] Free method of any object didn't executes.
As for your question, how do you know that your code snippet actually gets called in the first place? Try turning off optimizations and see if that helps. Turning off optimization helps, thanx! -- 12 12 aka skywriter _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
Hi Graeme, OK, so here is my wish list which should make it useful for me. * Search the current open projects source, including .inc files for ToDo, TODO, #todo tags. It must support multiple tag formats and maybe have a developer pick their preferred format (see later why) Works in my patch with #todo and TODO. Adding ToDo is trivial, but then maybe it should be todo in any case combination?. My patch also supports #done and DONE * Support a category tag. Can't remember how Delphi specified this. It was something like the following: { TODO: Fix year-end calculation. -c Accounting } It was -cAccounting. Done in my patch. I also added Delphi's -oOwner tag * Support a priority tag (1-9): eg: { #todo This must be fixed urgently. -1 } Done. * Show them in a list. Already works * List must be sortable by: Unit name, Description, Category and Priority This would be great. It's quite doable, but I don't have a clue about how to paint the sort arrows in the column headers in a way that works on any platform. The list could have a filtering option, also. * Double clicking a item must close the Todo list window and take you to the location in the source unit. Works. * ToDo items must be editable from the todo list screen. A simple little edit dialog for entering a optional category, optional priority and description Would be nice, also to switch from Todo to Done. This is a little bit more tricky. I guess I'd have to load the source in an editor and change the Todo item? * A nice to have (though not urgent and not even sure if needed) would be to have some editor keyboard shortcut to bring up a todo list edit item dialog. So while you are coding and want to insert a item press the shortcut; fill in the details and press enter to close. The source code would then have the item inserted in the correct format, using the developers preferred todo tag format. Amen. The only trick with Enter is that when the memo has focus, it naturally eats Enter keys, but I agree that there should be a quick way to validate the entry (Very annoying under D7, you have to grab your mouse or tab until you get to the ok button). I would add: - Printing (If this is available from the IDE) or at least exporting the list to text or HTML. Regards, Gerard. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
Hi Mattias, So forget for a moment the existing implementation and write what a good ToDo List dialog should do. See my replies to Graeme wish list, I think it covers pretty much what a Todo List should do. I'm not sure what the scope of the list should be, but I think there should be an option to exclude the LCL sources. Regards, Gerard. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
On 07/11/2007, Gerard N/A [EMAIL PROTECTED] wrote: Amen. The only trick with Enter is that when the memo has focus, it naturally eats Enter keys, but I agree that there should be a quick way to validate the entry (Very annoying under D7, you have to grab your mouse or tab until you get to the ok button). Then don't use a memo. Rather use a TEdit. I believe todo items should be one-liner comments, but that's just me. I would add: - Printing (If this is available from the IDE) or at least exporting the list to text or HTML. I never even knew that option existed in Delphi and only found it by accident about 6 years after working with Delphi every day. ;-) Even just exporting to a plain text file would be nice. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
On 07/11/2007, Gerard N/A [EMAIL PROTECTED] wrote: I'm not sure what the scope of the list should be, but I think there should be an option to exclude the LCL sources. Definitely! The FCL would be another package. Not quite sure how one would handle this. When do you want to search a project or package and when do you want to search both (projects using packages)? Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
On Wed, 7 Nov 2007 10:45:38 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: On 07/11/2007, Gerard N/A [EMAIL PROTECTED] wrote: I'm not sure what the scope of the list should be, but I think there should be an option to exclude the LCL sources. Definitely! The FCL would be another package. Not quite sure how one would handle this. When do you want to search a project or package and when do you want to search both (projects using packages)? I think no one wants to see every ToDos of every used package. Sometimes I want to see the Todos of a project, sometimes the ToDolist of a package. Maybe project plus a few selected packages can be useful too. Perhaps a scope button can be added, and in a dialog you can select the scope. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] shift+enter key = shift+tab key
On Wed, 07 Nov 2007 14:00:25 +0700 somat [EMAIL PROTECTED] wrote: i used this to change the enter key to tab key : if Key = #13 then begin Key := #0; SelectNext(ActiveControl, true, true); end; but i have some question, how about to change the shift+enter key to shift+tab key. Use OnKeyDown instead of OnKeyPress. OnKeyDown has a Shift parameter. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
On 07/11/2007, Gerard N/A [EMAIL PROTECTED] wrote: * A nice to have (though not urgent and not even sure if needed) would be to have some editor keyboard shortcut to bring up a todo list edit item dialog. So while you are coding and want to insert a item press the shortcut; fill in the details and press enter to close. The source code would then have the item inserted in the correct format, using the developers preferred todo tag format. Amen. The only trick with Enter is that when the memo has focus, it OK, got a quick fix for this one (if you use a newish Lazarus from SVN). Edit you lazarus.dci file and paste the following at the end of the file. -- CUT [todo | Add a todo item] $(AttributesStart) AutoOnLineBreak=true $(AttributesEnd) { todo: | } -- END Now if you type: todoenter it inserts a todo line for you and put the cursor in the correct location to type your description. ;-) Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] help for Scanline exemple
wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] [fpc] strange behaviour (crash) in a closing linux daemon
Hi... In my linux daemon, with fpc 2.0.4 I was simply (in the main project) looping while the program flag quit was false and, after that value goes true, I was doing a : shell('rm /var/run/myprogram.pid'); to remove the pid used into it's init.d script. So the pid is deleted and the daemon have always disappeared from the active processes list (effectively closing) Now that I passed to 2.2.0, shell is deprecated, and I changed that function into: fpsystem('rm /var/run/myprogram.pid'); (fpsystem also works well to give other shell commands I use in the program) But after that change in the program, and after some stopstart, I spotted a lot of opened daemons with the state R (runnable) that was using 100% of the cpu in the top list. After some troubleshooting, I discovered that the command fpsystem('rm /var/run/myprogram.pid') was sending the program into a instant crash, without any notice. I tryed to catch an exception with no success. Now I have just removed the fpsystem row cause deleting the pid is not essential for me cause I overwrite it (the value on the text file) at the start of the program, but I'm writing that mail to ask if something changed and if someone else have noticed this behaviour. My guess, is that a program that received the kill signal can't call a fpsystem command... can that be true? If that helps, I'm using ubuntu with kernel 2.6.15-28-amd64-server Thanks, Bye _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] help for Scanline exemple
2007/11/7, Marc Weustink [EMAIL PROTECTED]: wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc It should change can be an Scanline example for not use CopyPixels! Regards, -- Laurent. French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] Enhanced TODO list patch
Mattias, Is there a way to discriminate between used units on a package basis? If so, one UI solution could be to put a small treeview on the left of the list form, with a source code structure like: +- MyProject.lpi | +- MyUnit1.pas +- MyUnit2.pas +- LCL +- FCL With the current project only selected as a default, it would faster to load, and switching to the rest of the source could be faster than using a dialog. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Enhanced TODO list patch
See attached image for and idea of what I mean attachment: todolist.PNG
Re: [lazarus] help for Scanline exemple
wile64 wrote: 2007/11/7, Marc Weustink [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: wile64 wrote: I found, with Init_BPP32_B8G8R8A8_BIO_TTB and load ScanLineImage, work Ok with Init_BPP32_B8G8R8A8_BIO_TTB and CopyPixels in example don't work, IntfImage.CopyPixels(ScanLineImage); MyBitmap.LoadFromIntfImage(IntfImage); Thats why I asked what the description of IntfImage was and not ScanLineImage. When Copying pixels the description is not copied, but the pixels are matched to the description of IntfImage Marc It should change can be an Scanline example for not use CopyPixels! That is what I suggested in my first reply. (or change the description of IntfImage) Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Failed delivery: Re: [lazarus] Enhanced TODO list patch
Graeme Geldenhuys ha scritto: Hi, Could somebody please remove this guy from the mailing list subscription! I keep getting bounced messages for every message I send to the list. Bounced messages arrive directly to my mailbox, without passing through the mailing list. So there's nothing the mailing list can do, AFAIK. I solved the problem just by filtering out the Maersk Crew sender, and sending it to the trash bin. Regards, Giuliano Regards, - Graeme - On 07/11/2007, Maersk Crew Mail [EMAIL PROTECTED] wrote: Failed delivery: Re: [lazarus] Enhanced TODO list patch Message from MaerskCrew AutoReply Service. Your mail 'Re: [lazarus] Enhanced TODO list patch' sent 2007-11-07 06:30:40 did not reach the following recipient(s): Receiver Trzeciak, Grzegorz Zygmunt ([EMAIL PROTECTED]) is on home leave. Part of original text: On 07/11/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: Of course not at once. OK. ;-) That's why I'm asking what you and any other user want to do with list. What is the goal? OK, so here is my wish list which should make it useful for me. -- Giuliano Colla Whenever people agree with me, I always feel I must be wrong (O. Wilde) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Failed delivery: Re: [lazarus] Enhanced TODO list patch
On 07/11/2007, Giuliano Colla [EMAIL PROTECTED] wrote: Bounced messages arrive directly to my mailbox, without passing through the mailing list. So there's nothing the mailing list can do, AFAIK. I solved the problem just by filtering out the Maersk Crew sender, and sending it to the trash bin. As far as I understand his email address is part of the mailing list's distribution list. Take him out of that and we are all spared the annoying unable to deliver email!! One day when Mr Crew get a real (valid) email address again, he can re-subscribe. Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://opensoft.homeip.net/fpgui/ _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Failed delivery: Re: [lazarus] Enhanced TODO list patch
Graeme Geldenhuys ha scritto: On 07/11/2007, Giuliano Colla [EMAIL PROTECTED] wrote: Bounced messages arrive directly to my mailbox, without passing through the mailing list. So there's nothing the mailing list can do, AFAIK. I solved the problem just by filtering out the Maersk Crew sender, and sending it to the trash bin. As far as I understand his email address is part of the mailing list's distribution list. Take him out of that and we are all spared the annoying unable to deliver email!! One day when Mr Crew get a real (valid) email address again, he can re-subscribe. You're right. Then the offending guy to remove is: [EMAIL PROTECTED] Regards, Giuliano -- Giuliano Colla Whenever people agree with me, I always feel I must be wrong (O. Wilde) _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] IDE build problem
Vincent Snijders wrote: Mark Morgan Lloyd schreef: I've spent some time tearing what little remains of my hair out over this one :-) I've got 0.9.22 on several machines- Win-32 (NT4), Linux-x86 (Debian Etch) and Linux-SPARC. I'd be nearer the bleeding edge if I had more time and if I wasn't already chasing some elusive SPARC bugs. Underlying compiler is 2.2.0 in all cases. If I do a complete rebuild from inside the IDE everything works OK on Win-32 and Linux-x86. If on the other hand I do a make clean followed by make all or make bigide from the command line I get an IDE that appears to work and generates good programs but if I try to edit a menu (main or pulldown) item list I get an error dialogue: 0 is not a valid component name Once the system is in that state rebuilding inside the IDE no longer fixes it- it's a start-over job. I think you should try newer source. The menu editor is an area where fixes have been made since 0.9.22. Now trying 0.9.25-20071106. I think I'd stepped back to .22 to see if it sorted problems on SPARC. On Win-32 it appears to recompile from inside the IDE without problems, similarly make all and make bigide appear to generate an IDE which doesn't have the error I describe above. I've not gone further than that yet so can't say whether there are additional IDE or code generation problems. Similarly, operation seems to be OK on Linux-x86. On Linux-SPARC there's a build problem which I've not yet attempted to investigate. Using the same sources as above with an overall system setup which previously built Lazarus without error a make all gives me: make: -iVSPTPSOTO: Command not found make: -iSP: Command not found make: -iTP: Command not found make: -iSO: Command not found make: -iTO: Command not found make -C ide ide make[1]: -iSP: Command not found make[1]: Entering directory `/usr/local/share/lazarus-0.9.25-20071106/ide' make[1]: -iTP: Command not found .. make[1]: -iTO: Command not found make[1]: Entering directory `/usr/local/share/lazarus-0.9.25-20071106/ide' make[1]: Entering directory `/usr/local/share/lazarus-0.9.25-20071106/ide' make -C ../tools svn2revisioninc OS_TARGET= OPT='' make[1]: -iSP: Command not found make[1]: -iTP: Command not found make[1]: -iSO: Command not found make[1]: -iTO: Command not found make[2]: Entering directory `/usr/local/share/lazarus-0.9.25-20071106/tools' Makefile:177: *** The Makefile doesn't support target linux-, please run fpcmake first. Stop. make[2]: Leaving directory `/usr/local/share/lazarus-0.9.25-20071106/tools' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/usr/local/share/lazarus-0.9.25-20071106/ide' make: *** [ide] Error 2 I've not started tinkering yet but I can confirm that FPC looks OK, in particular that the ppcsparc symlink is intact. Any suggestions would be appreciated. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Failed delivery: Re: [lazarus] Enhanced TODO list patch
On Wed, 7 Nov 2007, Graeme Geldenhuys wrote: Could somebody please remove this guy from the mailing list subscription! I keep getting bounced messages for every message I send to the list. Receiver Trzeciak, Grzegorz Zygmunt ([EMAIL PROTECTED]) is on home leave. He is now removed. -- Programming my first best destiny! Michael A. Hess Miracle Concepts, Inc. [EMAIL PROTECTED] http://www.miraclec.com Phone: 570-388-2211 Fax: 570-388-6101 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] IDE build problem
Mattias Gaertner wrote: make[1]: -iTO: Command not found make[2]: Entering directory `/usr/local/share/lazarus-0.9.25-20071106/tools' Makefile:177: *** The Makefile doesn't support target linux-, please run fpcmake first. Stop. make[2]: Leaving directory `/usr/local/share/lazarus-0.9.25-20071106/tools' make[1]: *** [ide] Error 2 make[1]: Leaving directory `/usr/local/share/lazarus-0.9.25-20071106/ide' make: *** [ide] Error 2 I've not started tinkering yet but I can confirm that FPC looks OK, in particular that the ppcsparc symlink is intact. Any suggestions would be appreciated. I found yesterday the same error on amd64. Try 'make clean all PP=ppcsparc'. I suspected it might affect other targets. Fix looking good here, I'm away from my desk for an hour and will report further when I know more. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] adding static package
Mattias Gaertner ha scritto: On Mon, 05 Nov 2007 12:09:14 +0100 Antonio Talamini [EMAIL PROTECTED] wrote: Does it compile in a simple project or does the bug only appear in the IDE? If you found a compiler bug: Try another compiler version, for example the 2.1.x or 2.3.x. Or change the source code (add some dummy variables/code). Mattias I did various tests compilation. I tried to remove some parts from the file lsdialog.pas (this file is essential) but the error remains Compiling lazarus.pp Linking ../lazarus ../units/i386-linux/lsmovim.o: In function `LSMOVIM_init': /home/antonio/artt/lazarus/lsmovim.pas:398: undefined reference to `RTTI_LSDIALOG_DEF54' ../units/i386-linux/lsmovimlist.o: In function `LSMOVIMLIST_init': /home/antonio/artt/lazarus/lsmovimlist.pas:354: undefined reference to `RTTI_LSDIALOG_DEF54' ../units/i386-linux/lsmovline.o: In function `LSMOVLINE_init': /home/antonio/artt/lazarus/lsmovline.pas:326: undefined reference to `RTTI_LSDIALOG_DEF54' lazarus.pp(114,1) Error: Error while linking lazarus.pp(114,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted In the file link.res the only strange thing is (I never saw that) ENTRY(_start) SECTIONS { PROVIDE (__executable_start = 0x01); . = 0x01 +0x100; .interp : { *(.interp) } .hash : { *(.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version: { *(.gnu.version) } .gnu.version_d : { *(.gnu.version_d) } .gnu.version_r : { *(.gnu.version_r) } .rel.dyn: } _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Failed delivery: Re: [lazarus] Enhanced TODO list patch
Thanks you are a chef, good for the planet ;-) 2007/11/7, Michael A. Hess [EMAIL PROTECTED]: On Wed, 7 Nov 2007, Graeme Geldenhuys wrote: Could somebody please remove this guy from the mailing list subscription! I keep getting bounced messages for every message I send to the list. Receiver Trzeciak, Grzegorz Zygmunt ([EMAIL PROTECTED]) is on home leave. He is now removed. -- Programming my first best destiny! Michael A. Hess Miracle Concepts, Inc. [EMAIL PROTECTED] http://www.miraclec.com Phone: 570-388-2211 Fax: 570-388-6101 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Laurent. French Forum : http://lazforum-fr.tuxfamily.org/index.php
Re: [lazarus] help for Scanline exemple
Patch to change the ScanLine example, I delete IntfImage to save time and memory! Thanks, -- Laurent. French Forum : http://lazforum-fr.tuxfamily.org/index.php Scanline.patch Description: Binary data