Re: [lazarus] fpdoc with inherited help
On 5/10/07, Andrew Haines [EMAIL PROTECTED] wrote: there is a chm viewer in lazarus/components/chmhelp. it is possible to run the free microsoft htmlhelp compiler hhc.exe in wine under linux. Does the chmhelp component work under Linux as well? I never even bother to check if it does, just assumed it's Windows only. What component does it use to display the HTML? somewhere here I have a project file for hhc to compile the html fpc and lcl documentation into a .chm file or one for the each rtl fcl lcl etc. There is also a component in that directory to install in lazarus so that pressing f1 starts lhelp and displays the correct page. It's very fast. Thanks Andrew, I'll start looking into the chmhelp and lhelp in more detail. This will probably save me hours of work! -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Converting Strings to Currency
On 5/11/07, John Meyer [EMAIL PROTECTED] wrote: Maybe StrToFloat(AString); ?? Thanks! That worked, but I have one question. If you have a Currency type, why are you throwing it to a function named StrToFloat? Why not StrToCur or StrToCurrency? Just asking so I know not to make that mistake in the future. Just keep in mind that the StrToFloat and FloadToStr uses different rounding rules compared to CurrToStr and StrToCurr. The later uses bankers rounding (see Wikipedia for an explanation), which is normally what you want when working with Currencies. -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Converting Strings to Currency
Sébastien TACK wrote: It's a miracle of Oriented Object Progamming ! StrToFloat can take a large type of value Single, Double, Currency. Every method are overload. Overloading methods is something different from polymorphism in object oriented programming (where virtual methods are key in polymorphism). BTW it is not StrToFloat that has overloads for a bunch of floating point types, but FloatToStr :) (actually many RTL functions have overloads for different datatypes) Anyway, for string - currency conversion, you probably want to use the RTL functions mentioned by Henry Vermaak. (NB there is also a StrToCurr function.) Regards, Bram _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpdoc with inherited help
Graeme Geldenhuys schreef: On 5/10/07, Andrew Haines [EMAIL PROTECTED] wrote: there is a chm viewer in lazarus/components/chmhelp. it is possible to run the free microsoft htmlhelp compiler hhc.exe in wine under linux. Does the chmhelp component work under Linux as well? I never even bother to check if it does, just assumed it's Windows only. Andrew and Micha spent a lot of time to port the c code for extracting chm files to pascal, and therefore chmhelp works on all platforms suppoerted by fpc. What component does it use to display the HTML? I guess the turbopower ipro component for html viewer. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus software as Linux Service
Marc Santhoff ha scritto: Am Donnerstag, den 10.05.2007, 16:51 +0200 schrieb Alvise Nicoletti: Hi... I have to create a linux service (server side) that: 1) accept tpc connection from a graphical GUI that I will do probably for windows 2) reads writes on a mysql database on the localhost 3) sends some commands to a door (open, close, close on the children's head, ecc) through a tcp connection. The software will administrate access (door, controls, showers, ecc) on a sport center. All the peripherals already have an ip address so I don't need to work low-level. I already did a software with Lazarus for a PocketPC (that makes the stuff administrate groups directly on the pools with wireless connection), but my knowledge about it's compatibility with linux is poor. My question is: is it possible to do a software that works as a service like that? Do you have any comments/tips to give me about that project? Is there someplace where I can find examples about that with Lazarus so I can choose more clearly? The fpc distribution comes with a deamon.pp example, that could be the complete base frame for your project. HTH, Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives Fpc isn't already included into Lazarus? Or you're talking about installing fpc itself and lazarus in a second moment? Another thing I want to ask is... How to develop that linux daemon under windows (cross compiling)? In the /cross/ folder I found only an installer for linux-arm cross-compilation, but what if I want to cross compile for linux i386? Thanks, Alvise _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpdoc with inherited help
On 5/11/07, Vincent Snijders [EMAIL PROTECTED] wrote: Andrew and Micha spent a lot of time to port the c code for extracting chm files to pascal, and therefore chmhelp works on all platforms suppoerted by fpc. That is excellent news! What component does it use to display the HTML? I guess the turbopower ipro component for html viewer. That would do the job. Our help isn't go to have any fancy featured help. Just formatted text (bold, italics, etc) and some images. -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpdoc with inherited help
The lhelp project requires a 'Inetpackage'. Any ideas where I could get that? Lazarus Wiki doesn't mention it and Google doesn't find anything with the name 'Inetpackage'. Graeme. On 5/11/07, Vincent Snijders [EMAIL PROTECTED] wrote: Graeme Geldenhuys schreef: On 5/10/07, Andrew Haines [EMAIL PROTECTED] wrote: there is a chm viewer in lazarus/components/chmhelp. it is possible to run the free microsoft htmlhelp compiler hhc.exe in wine under linux. Does the chmhelp component work under Linux as well? I never even bother to check if it does, just assumed it's Windows only. Andrew and Micha spent a lot of time to port the c code for extracting chm files to pascal, and therefore chmhelp works on all platforms suppoerted by fpc. What component does it use to display the HTML? I guess the turbopower ipro component for html viewer. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpdoc with inherited help
I found it. It wasn't called Inet, but Lnet (with the lower cass L). ;-) Damn crappy fonts! Graeme. On 5/11/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: The lhelp project requires a 'Inetpackage'. Any ideas where I could get that? Lazarus Wiki doesn't mention it and Google doesn't find anything with the name 'Inetpackage'. Graeme. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] fpdoc with inherited help
Hiya Graeme. See here: http://www.lazarus.freepascal.org/modules.php?op=modloadname=Newsfile=articlesid=155mode=threadorder=0thold=0 On 5/11/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: The lhelp project requires a 'Inetpackage'. Any ideas where I could get that? Lazarus Wiki doesn't mention it and Google doesn't find anything with the name 'Inetpackage'. Graeme. On 5/11/07, Vincent Snijders [EMAIL PROTECTED] wrote: Graeme Geldenhuys schreef: On 5/10/07, Andrew Haines [EMAIL PROTECTED] wrote: there is a chm viewer in lazarus/components/chmhelp. it is possible to run the free microsoft htmlhelp compiler hhc.exe in wine under linux. Does the chmhelp component work under Linux as well? I never even bother to check if it does, just assumed it's Windows only. Andrew and Micha spent a lot of time to port the c code for extracting chm files to pascal, and therefore chmhelp works on all platforms suppoerted by fpc. What component does it use to display the HTML? I guess the turbopower ipro component for html viewer. Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Cell: +27 83 455 9978 Fax: +27 21 413 2800 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: chmhelp's lhelp project can't compile
Oh, I also had to change the lhelp Project Dependency on LNetPackage to LNetVisual Regards, G. On 5/11/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Anybody tried to compile the latest lhelp project? I'm using the Lazarus r2 and lnet 0.5 Trying to compile lhelp I keep getting errors about properties that do not exist. For example in the LNetHTTPDataProvider.pas unit it refers to ASocket.Connection all over the place and the .Connection property doesn't exist anymore. Should I try lnet 0.4 maybe? -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] chmhelp's lhelp project can't compile
Hi, Anybody tried to compile the latest lhelp project? I'm using the Lazarus r2 and lnet 0.5 Trying to compile lhelp I keep getting errors about properties that do not exist. For example in the LNetHTTPDataProvider.pas unit it refers to ASocket.Connection all over the place and the .Connection property doesn't exist anymore. Should I try lnet 0.4 maybe? -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: chmhelp's lhelp project can't compile
On 5/11/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: Should I try lnet 0.4 maybe? That did the trick. The lhelp project requires LNet 0.4 and doesn't work with LNet 0.5 -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Weird crash - update
The crash returned the moment I tried to do a 'build lazarus' from inside the IDE. Still not sure what's going on though. I am using pclinuxOS 2004, I have installed the lazarus package from synaptic (to get all the dependencies quickly) but I use svn versions for actual work . Here is the full console output: [EMAIL PROTECTED] lazarus]$ ./lazarus TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: editor options config file not found - using defaults NOTE: codetools config file not found - using defaults NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= [TCustomFormEditor.CreateComponent] Class='TForm' TMainIDE.DoNewEditorFile end unit1.pas Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. ERROR in LCL: TGtkWidgetSet.DeleteObject invalid GdiObject=-1214470328 Creating gdb catchable error: $0807A4A8 RAISEGDBEXCEPTION, line 771 of lclproc.pas $081136FB RAISEINVALIDGDIOBJECT, line 2396 of gtkwinapi.inc $0811355D TGTKWIDGETSET__DELETEOBJECT, line 2418 of gtkwinapi.inc $0811A953 TGTKWIDGETSET__GETSTOCKOBJECT, line 5745 of gtkwinapi.inc $0814DE51 GETSTOCKOBJECT, line 416 of ./include/winapi.inc $08160447 TCANVAS__TEXTRECT, line 1022 of ./include/canvas.inc $0812F24D TPROMPTDIALOG__PAINT, line 149 of ./include/promptdialog.inc $0807019E TCUSTOMFORM__PAINTWINDOW, line 774 of ./include/customform.inc $08139E34 TWINCONTROL__PAINTHANDLER, line 3009 of ./include/wincontrol.inc TApplication.HandleException Invalid floating point operation Stack trace: $0807A4C9 RAISEGDBEXCEPTION, line 772 of lclproc.pas $081136FB RAISEINVALIDGDIOBJECT, line 2396 of gtkwinapi.inc $0811355D TGTKWIDGETSET__DELETEOBJECT, line 2418 of gtkwinapi.inc $0811A953 TGTKWIDGETSET__GETSTOCKOBJECT, line 5745 of gtkwinapi.inc $0814DE51 GETSTOCKOBJECT, line 416 of ./include/winapi.inc $08160447 TCANVAS__TEXTRECT, line 1022 of ./include/canvas.inc $0812F24D TPROMPTDIALOG__PAINT, line 149 of ./include/promptdialog.inc $0807019E TCUSTOMFORM__PAINTWINDOW, line 774 of ./include/customform.inc $08139E34 TWINCONTROL__PAINTHANDLER, line 3009 of ./include/wincontrol.inc $0813CEDF TWINCONTROL__WMPAINT, line 4730 of ./include/wincontrol.inc $08149662 TCUSTOMCONTROL__WMPAINT, line 107 of ./include/customcontrol.inc $0806FA57 TCUSTOMFORM__WMPAINT, line 522 of ./include/customform.inc $0805E424 $081433A2 TCONTROL__WNDPROC, line 1542 of ./include/control.inc $0813AD3E TWINCONTROL__WNDPROC, line 3486 of ./include/wincontrol.inc $08070581 TCUSTOMFORM__WNDPROC, line 925 of ./include/customform.inc $08171259 DELIVERMESSAGE, line 3555 of gtkproc.inc Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. ERROR in LCL: TGtkWidgetSet.StretchCopyArea SrcDC=B7847468 Drawable=nil Creating gdb catchable error: $0807A4A8 RAISEGDBEXCEPTION, line 771 of lclproc.pas $081068E3 RAISESRCDRAWABLENIL, line 3303 of gtkobject.inc $081064F6 TGTKWIDGETSET__STRETCHCOPYAREA, line 3335 of gtkobject.inc $0811F54E TGTKWIDGETSET__STRETCHBLT, line 9443 of gtkwinapi.inc $0814F108 STRETCHBLT, line 831 of ./include/winapi.inc $0815E848
Re: [lazarus] Weird crash
A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Umm... have you now changed jobs? -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Weird crash
Hi all, I'm getting a very weird crash on the latest lazarus. It crashes whenever I start it in a console with 'lazarus' - program starts up - shows an error message dialog (with no content however) and dies. I tried to capture the output with pipes, but suddenly, it stopped crashing. I then tried 'startlazarus' - and the crash also didn't reappear. So basically, whatever it is, it only happens if you run lazarus by itself - and once I used the pipes, it went away altogether - for the life of me I don't know what could be going on here. A.J. -- A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Cell: +27 83 455 9978 Fax: +27 21 413 2800 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Weird crash
Quite a while ago actually :) A.J. On 5/11/07, Graeme Geldenhuys [EMAIL PROTECTED] wrote: A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Umm... have you now changed jobs? -- Graeme Geldenhuys There's no place like S34° 03.168' E018° 49.342' _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- A.J. Venter CEO - OutKast Solutions C.C. http://www.outkastsolutions.co.za Cell: +27 83 455 9978 Fax: +27 21 413 2800 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Weird crash - update
On Fri, 11 May 2007 10:41:48 +0200 A.J. Venter [EMAIL PROTECTED] wrote: The crash returned the moment I tried to do a 'build lazarus' from inside the IDE. Still not sure what's going on though. I am using pclinuxOS 2004, I have installed the lazarus package from synaptic (to get all the dependencies quickly) but I use svn versions for actual work . I fixed a bug with similar warnings. Can you test please, if this was the bug? Mattias Here is the full console output: [EMAIL PROTECTED] lazarus]$ ./lazarus TApplication.IconChanged - TODO: convert this message...no implementation in gtk or win32 NOTE: editor options config file not found - using defaults NOTE: codetools config file not found - using defaults NOTE: help options config file not found - using defaults TMainIDE.DoNewProject A TMainIDE.DoNewEditorFile A NewFilename= [TCustomFormEditor.CreateComponent] Class='TForm' TMainIDE.DoNewEditorFile end unit1.pas Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. ERROR in LCL: TGtkWidgetSet.DeleteObject invalid GdiObject=-1214470328 Creating gdb catchable error: $0807A4A8 RAISEGDBEXCEPTION, line 771 of lclproc.pas $081136FB RAISEINVALIDGDIOBJECT, line 2396 of gtkwinapi.inc $0811355D TGTKWIDGETSET__DELETEOBJECT, line 2418 of gtkwinapi.inc $0811A953 TGTKWIDGETSET__GETSTOCKOBJECT, line 5745 of gtkwinapi.inc $0814DE51 GETSTOCKOBJECT, line 416 of ./include/winapi.inc $08160447 TCANVAS__TEXTRECT, line 1022 of ./include/canvas.inc $0812F24D TPROMPTDIALOG__PAINT, line 149 of ./include/promptdialog.inc $0807019E TCUSTOMFORM__PAINTWINDOW, line 774 of ./include/customform.inc $08139E34 TWINCONTROL__PAINTHANDLER, line 3009 of ./include/wincontrol.inc TApplication.HandleException Invalid floating point operation Stack trace: $0807A4C9 RAISEGDBEXCEPTION, line 772 of lclproc.pas $081136FB RAISEINVALIDGDIOBJECT, line 2396 of gtkwinapi.inc $0811355D TGTKWIDGETSET__DELETEOBJECT, line 2418 of gtkwinapi.inc $0811A953 TGTKWIDGETSET__GETSTOCKOBJECT, line 5745 of gtkwinapi.inc $0814DE51 GETSTOCKOBJECT, line 416 of ./include/winapi.inc $08160447 TCANVAS__TEXTRECT, line 1022 of ./include/canvas.inc $0812F24D TPROMPTDIALOG__PAINT, line 149 of ./include/promptdialog.inc $0807019E TCUSTOMFORM__PAINTWINDOW, line 774 of ./include/customform.inc $08139E34 TWINCONTROL__PAINTHANDLER, line 3009 of ./include/wincontrol.inc $0813CEDF TWINCONTROL__WMPAINT, line 4730 of ./include/wincontrol.inc $08149662 TCUSTOMCONTROL__WMPAINT, line 107 of ./include/customcontrol.inc $0806FA57 TCUSTOMFORM__WMPAINT, line 522 of ./include/customform.inc $0805E424 $081433A2 TCONTROL__WNDPROC, line 1542 of ./include/control.inc $0813AD3E TWINCONTROL__WNDPROC, line 3486 of ./include/wincontrol.inc $08070581 TCUSTOMFORM__WNDPROC, line 925 of ./include/customform.inc $08171259 DELIVERMESSAGE, line 3555 of gtkproc.inc Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. Gdk-CRITICAL **: file gdkfont.c: line 376 (gdk_text_width): assertion `font != NULL' failed. ERROR in LCL: TGtkWidgetSet.StretchCopyArea SrcDC=B7847468 Drawable=nil Creating gdb catchable error: $0807A4A8 RAISEGDBEXCEPTION, line 771 of lclproc.pas $081068E3
Re: Object Inspector crash, and other interesting stuff
On Thu, 10 May 2007 18:37:50 +0100 pineal [EMAIL PROTECTED] wrote: On Thursday 10 May 2007 17:45, Charl van Jaarsveldt wrote: I forgot to mention that I have svn r11124 and lazarus is compiled for gtk1, using Ubuntu Feisty. On 5/10/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Hi, I just did an update, haven't been using lazarus for a while so I don't know if it was broken before or not... I start Lazarus, and the OI/PL window has a cool transparent air to it. Looks like the background is draw but the fonts from the window behind it is still shining through. Then when I click on the property list is might make the background completely black or it might not. But finally, when I click on the Object Inspector, Lazarus crashes with some nasty errors. Thanks, Charl PS Please find the error messages generated on crash, and gdb backtrace below... snipped rest Hi Charl, I am having the same problems today after updating at lunch time.I use PCLinuxOS 93a with KDE desktop and fpc 2.0.4. Please test, if this is fixed too. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Weird crash - update
On Friday 11 May 2007 17:55, Mattias Gaertner wrote: On Fri, 11 May 2007 10:41:48 +0200 A.J. Venter [EMAIL PROTECTED] wrote: The crash returned the moment I tried to do a 'build lazarus' from inside the IDE. Still not sure what's going on though. I am using pclinuxOS 2004, I have installed the lazarus package from synaptic (to get all the dependencies quickly) but I use svn versions for actual work . I fixed a bug with similar warnings. Can you test please, if this was the bug? Mattias --snipped rest-- Hi Mattias, I have just tested the latest svn twice. Once, I have just installed a new version of my OS PCLinuxOS TR4. They have an fpc package 2.1.1 which I have installed. I downloaded the latest svn and then tried my normal compile make clean all. It failed. It didn't get very far and I haven't tested it thoroughly yet, but there may be missing gtk libraries or other stuff. On my current working system I have just updated svn and compiled, I work with Laz under gtk2 and both builds proceeded without problem. The IDE under gtk after a quick cursory glance seemed ok. Under gtk2 it rebuilt without problem and is now running. With all the 'weirdness' that had been happening and has now disappeared I would say that it was indeed the bug. many thanks neal. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Object Inspector crash, and other interesting stuff
Hi Matias, Yes, it is fixed now, thanks. :-) Charl On 5/11/07, Mattias Gaertner [EMAIL PROTECTED] wrote: On Thu, 10 May 2007 18:37:50 +0100 pineal [EMAIL PROTECTED] wrote: On Thursday 10 May 2007 17:45, Charl van Jaarsveldt wrote: I forgot to mention that I have svn r11124 and lazarus is compiled for gtk1, using Ubuntu Feisty. On 5/10/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Hi, I just did an update, haven't been using lazarus for a while so I don't know if it was broken before or not... I start Lazarus, and the OI/PL window has a cool transparent air to it. Looks like the background is draw but the fonts from the window behind it is still shining through. Then when I click on the property list is might make the background completely black or it might not. But finally, when I click on the Object Inspector, Lazarus crashes with some nasty errors. Thanks, Charl PS Please find the error messages generated on crash, and gdb backtrace below... snipped rest Hi Charl, I am having the same problems today after updating at lunch time.I use PCLinuxOS 93a with KDE desktop and fpc 2.0.4. Please test, if this is fixed too. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
Re: [lazarus] how to debug the lcl
On Fri, 11 May 2007 11:03:16 -0600 Seth Grover [EMAIL PROTECTED] wrote: A month ago I reported a LCL bug causing a crash in GTK. http://freepascal.org/mantis/view.php?id=8610 Since it hadn't been looked at by any of the developers yet, I wanted to try to see if I could figure out if there was some obvious problem. I can tell the bug is in SendSizeNotificationToLCL from the stack trace, but I don't know how to actually debug down into the lcl code. The last place the debugger lets me debug down to is the gtk_notebook_insert_page_menu call in TGtkWSCustomNotebook.AddPage. Can anyone with more experience coding the LCL tell me how to actually be able to debug down into the code I need to look at, or (even better), take a look at fixing this bug? I tested the example given in the bug report. With gtk2 I get a different error: (project1:28153): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed ERROR in LCL: TGtkWidgetSet.CreateDCForWidget: Unable to realize GdkWindow and a long stack trace. The reason is, that TOvcVirtualListBox is trying to get the Canvas.TextHeight during creation, before the widget is associated with a screen - before the LCL has added the notebook page handle to the notebook handle. Possible solution: a) Improve TNoteBook to create/add the page handle in one step. b) Change TOvcVirtualListBox to init later. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] how to debug the lcl
Ah, that's interesting. I hadn't yet tried it with GTK2. Thanks for the input. -Seth On 5/11/07, Mattias Gaertner [EMAIL PROTECTED] wrote: On Fri, 11 May 2007 11:03:16 -0600 Seth Grover [EMAIL PROTECTED] wrote: A month ago I reported a LCL bug causing a crash in GTK. http://freepascal.org/mantis/view.php?id=8610 Since it hadn't been looked at by any of the developers yet, I wanted to try to see if I could figure out if there was some obvious problem. I can tell the bug is in SendSizeNotificationToLCL from the stack trace, but I don't know how to actually debug down into the lcl code. The last place the debugger lets me debug down to is the gtk_notebook_insert_page_menu call in TGtkWSCustomNotebook.AddPage. Can anyone with more experience coding the LCL tell me how to actually be able to debug down into the code I need to look at, or (even better), take a look at fixing this bug? I tested the example given in the bug report. With gtk2 I get a different error: (project1:28153): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed ERROR in LCL: TGtkWidgetSet.CreateDCForWidget: Unable to realize GdkWindow and a long stack trace. The reason is, that TOvcVirtualListBox is trying to get the Canvas.TextHeight during creation, before the widget is associated with a screen - before the LCL has added the notebook page handle to the notebook handle. Possible solution: a) Improve TNoteBook to create/add the page handle in one step. b) Change TOvcVirtualListBox to init later. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- Seth Grover sethdgrover[at]gmail[dot]com http://grovers.us/seth Who is John Galt? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Support for Wince Dialog OK button
On Thu, 10 May 2007 22:09:14 +0200 Patrick Chevalley [EMAIL PROTECTED] wrote: 2007/5/10, Mattias Gaertner [EMAIL PROTECTED]: Or, if the 'ok' button of the wince form is merely a 'default' button, then if (TheForm.DefaultControlnil) then TheForm.DefaultControl.ExecuteDefaultAction; Thanks Mattias! , I really like this solution as it also work for mbYes and other. It work very well and I think this is safe to use because the messagedialog default button is consistently set by ModalDefaultButton(). I also add IDCANCEL to execute TheForm.CancelControl.ExecuteCancelAction in the same manner because I finally get SHDoneButton to change the OK button by Cancel to test that, you must call it with parameter SHDB_SHOWCANCEL whose value is $0004. I send the change for the wince RTL to add this constant now. Not sure if it is a good idea to put a Cancel button on the top bar but this is good to have if someone need that. If no other remark, I think this patch can be applied now. This means, this patch only works with a very recent fpc, right? What is the minimum compiler for the LCL wince intf? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] chmhelp's lhelp project can't compile
Which version of lNet did you use before? I looked and don't see TLSocket.Connection used in 0.5 or 0.4 or 0.3.1. You probably cought up some trunk version? In any case, aSocket now has a .Creator property which demotes a TLComponent. All the higher level classes (TLTcp etc.) are TLComponents now. So you can use this, but you will need to cast it to the right one. Hi, Anybody tried to compile the latest lhelp project? I'm using the Lazarus r2 and lnet 0.5 Trying to compile lhelp I keep getting errors about properties that do not exist. For example in the LNetHTTPDataProvider.pas unit it refers to ASocket.Connection all over the place and the .Connection property doesn't exist anymore. Should I try lnet 0.4 maybe? -- Aleš Katona [EMAIL PROTECTED] signature.asc Description: Toto je digitálne podpísaná časť správy
Re: [lazarus] Support for Wince Dialog OK button
Mattias Gaertner schreef: On Thu, 10 May 2007 22:09:14 +0200 Patrick Chevalley [EMAIL PROTECTED] wrote: 2007/5/10, Mattias Gaertner [EMAIL PROTECTED]: Or, if the 'ok' button of the wince form is merely a 'default' button, then if (TheForm.DefaultControlnil) then TheForm.DefaultControl.ExecuteDefaultAction; Thanks Mattias! , I really like this solution as it also work for mbYes and other. It work very well and I think this is safe to use because the messagedialog default button is consistently set by ModalDefaultButton(). I also add IDCANCEL to execute TheForm.CancelControl.ExecuteCancelAction in the same manner because I finally get SHDoneButton to change the OK button by Cancel to test that, you must call it with parameter SHDB_SHOWCANCEL whose value is $0004. I send the change for the wince RTL to add this constant now. Not sure if it is a good idea to put a Cancel button on the top bar but this is good to have if someone need that. If no other remark, I think this patch can be applied now. This means, this patch only works with a very recent fpc, right? What is the minimum compiler for the LCL wince intf? 2.1.x. But AFAIK, this patch has been merged to the fixes branch (i.e. 2.1.5). Vincent _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Object Inspector crash, and other interesting stuff
Mattias Gaertner wrote: On Thu, 10 May 2007 18:37:50 +0100 pineal [EMAIL PROTECTED] wrote: On Thursday 10 May 2007 17:45, Charl van Jaarsveldt wrote: I forgot to mention that I have svn r11124 and lazarus is compiled for gtk1, using Ubuntu Feisty. On 5/10/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Hi, I just did an update, haven't been using lazarus for a while so I don't know if it was broken before or not... I start Lazarus, and the OI/PL window has a cool transparent air to it. Looks like the background is draw but the fonts from the window behind it is still shining through. Then when I click on the property list is might make the background completely black or it might not. But finally, when I click on the Object Inspector, Lazarus crashes with some nasty errors. Thanks, Charl PS Please find the error messages generated on crash, and gdb backtrace below... snipped rest Hi Charl, I don't know whether or not this is related, but when I was running beryl, scrolling or clicking on the Object inspector crashed and logged me out of my graphical session completely. I went back to disabling those effects and no problems. -- The NCP Revue -- http://www.ncprevue.com/blog _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Lazarus software as Linux Service
Am Freitag, den 11.05.2007, 09:27 +0200 schrieb Alvise Nicoletti: Marc Santhoff ha scritto: Am Donnerstag, den 10.05.2007, 16:51 +0200 schrieb Alvise Nicoletti: Hi... I have to create a linux service (server side) that: 1) accept tpc connection from a graphical GUI that I will do probably for windows 2) reads writes on a mysql database on the localhost 3) sends some commands to a door (open, close, close on the children's head, ecc) through a tcp connection. The software will administrate access (door, controls, showers, ecc) on a sport center. All the peripherals already have an ip address so I don't need to work low-level. I already did a software with Lazarus for a PocketPC (that makes the stuff administrate groups directly on the pools with wireless connection), but my knowledge about it's compatibility with linux is poor. My question is: is it possible to do a software that works as a service like that? Do you have any comments/tips to give me about that project? Is there someplace where I can find examples about that with Lazarus so I can choose more clearly? The fpc distribution comes with a deamon.pp example, that could be the complete base frame for your project. Fpc isn't already included into Lazarus? I think so, if you're on windows ... since I'm using stable releases for a long time I can't tell. Or you're talking about installing fpc itself and lazarus in a second moment? Look: $ ls /dos/d/FPC/2.0.4/demo/linux/ Makefile Makefile.fpc daemon.pp epoll-pipe.pas If you replace /dos/d/FPC with the point of your fpc installation, which can be below the lazarus tree, you'll be done. Another thing I want to ask is... How to develop that linux daemon under windows (cross compiling)? I never did, but fpc -Tlinux ... should make it if compiling for i386. Maybe the rtl will need some extra compiling, but for the details other persons have to answer - try conpiling a simple demo that way. HTH, Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Object Inspector crash, and other interesting stuff
Well, I don't know about the rest, but I am not using any cool effects. I am one of the poor ones that can't even get nVidia drivers to work and has to make do with the open source driver. Anyways, it works now and I am happy. Charl On 5/11/07, John Meyer [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: On Thu, 10 May 2007 18:37:50 +0100 pineal [EMAIL PROTECTED] wrote: On Thursday 10 May 2007 17:45, Charl van Jaarsveldt wrote: I forgot to mention that I have svn r11124 and lazarus is compiled for gtk1, using Ubuntu Feisty. On 5/10/07, Charl van Jaarsveldt [EMAIL PROTECTED] wrote: Hi, I just did an update, haven't been using lazarus for a while so I don't know if it was broken before or not... I start Lazarus, and the OI/PL window has a cool transparent air to it. Looks like the background is draw but the fonts from the window behind it is still shining through. Then when I click on the property list is might make the background completely black or it might not. But finally, when I click on the Object Inspector, Lazarus crashes with some nasty errors. Thanks, Charl PS Please find the error messages generated on crash, and gdb backtrace below... snipped rest Hi Charl, I don't know whether or not this is related, but when I was running beryl, scrolling or clicking on the Object inspector crashed and logged me out of my graphical session completely. I went back to disabling those effects and no problems. -- The NCP Revue -- http://www.ncprevue.com/blog _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
Re: Object Inspector crash, and other interesting stuff
Charl van Jaarsveldt wrote: Well, I don't know about the rest, but I am not using any cool effects. I am one of the poor ones that can't even get nVidia drivers to work and has to make do with the open source driver. That could be some of it; I am using the commercial source drivers. Just wondering if anybody's had a crash like that lately. -- The NCP Revue -- http://www.ncprevue.com/blog _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: Object Inspector crash, and other interesting stuff
On Friday 11 May 2007 18:07, Mattias Gaertner wrote: I am having the same problems today after updating at lunch time.I use PCLinuxOS 93a with KDE desktop and fpc 2.0.4. Please test, if this is fixed too. Mattias I have tested this more thoroughly now. I have just had a complete crash of IDE after bringing up the colors list in the OI and scrolling from the last in the list (upon opening) to the first. The screen froze momentarily and then the IDE closed. I have also noticed that the ellipses are missing from their buttons in the OI. That's all so far, but will report anything else. neal. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Support for Wince Dialog OK button
All change to WindowProc must compile without problem with any FPC because IDOK and IDCANCEL are also defined in LCLType.pp that take precedence to the one in rtl/wince/wininc/define.inc OK button fully work with current 2.1 FPC. Cancel event IDCANCEL compile now but the cancel button cannot be activated until the new constant SHDB_SHOWCANCEL is include to FPC. At the moment this constant is not used by Lazarus and the event processing in WindowProc is just a convenience for people that want to add this button themself. Patrick
RE: [lazarus] how to debug the lcl
Well spotted. These days such metric gathering should be done lazily and in a way that the metrics can be invalidated and lazily regathered again, such as when theme font sizes change etc. Windowed controls should at least defer such stuff until createwnd time, but I don't know when plain tcontrol should expect to be able to do it. Its not even afe during the first paint as it might not be painting to the screen dc. Maybe tcontrols auto to have a method called when their parent's handle gets created; this wouldn't solve the lazy metrics problem, but would give controls a clear and clean place do do such metric gathering. Sam -Original Message- From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: 11/05/07 18:49 Subject: Re: [lazarus] how to debug the lcl On Fri, 11 May 2007 11:03:16 -0600 Seth Grover [EMAIL PROTECTED] wrote: A month ago I reported a LCL bug causing a crash in GTK. http://freepascal.org/mantis/view.php?id=8610 Since it hadn't been looked at by any of the developers yet, I wanted to try to see if I could figure out if there was some obvious problem. I can tell the bug is in SendSizeNotificationToLCL from the stack trace, but I don't know how to actually debug down into the lcl code. The last place the debugger lets me debug down to is the gtk_notebook_insert_page_menu call in TGtkWSCustomNotebook.AddPage. Can anyone with more experience coding the LCL tell me how to actually be able to debug down into the code I need to look at, or (even better), take a look at fixing this bug? I tested the example given in the bug report. With gtk2 I get a different error: (project1:28153): Gtk-CRITICAL **: gtk_widget_realize: assertion `GTK_WIDGET_ANCHORED (widget) || GTK_IS_INVISIBLE (widget)' failed ERROR in LCL: TGtkWidgetSet.CreateDCForWidget: Unable to realize GdkWindow and a long stack trace. The reason is, that TOvcVirtualListBox is trying to get the Canvas.TextHeight during creation, before the widget is associated with a screen - before the LCL has added the notebook page handle to the notebook handle. Possible solution: a) Improve TNoteBook to create/add the page handle in one step. b) Change TOvcVirtualListBox to init later. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Lazarus Character map and UTF
Hello, I tried to insert a character, appears normal, but while the program is in execution is not visible, putting the character in UTF copied from KWrite (two characters) worked. -- http://luisdigital.com _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives