[lazarus] Unicode (UTF-8) and OnKeyPress event
Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object; The Key parameter is defined as a Char type, which is limited to the first 256 Unicode (or ASCII) characters. Shouldn't the TKeyPressEvent be redefined as a Word to be able to work with Unicode? I am trying to solve this same problem in fpGUI and seeing that Delphi and Lazarus has the same issue, I can ask the question here. Regards, - Graeme - _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another little help with databases
German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on the DBGrid as expected. Now I want to add an TEdit to make posible searching products by name, for example, so when the user writes something on the Edit, the SQLQuery1.SQL should become something like ‘select * from product where name = ‘ + Edit1.Text + ’ I assume you don't want to create an SQL injection bug, so you should either properly escape Edit1.Text, or use query parameters instead; see e.g. http://wiki.freepascal.org/Secure_programming#Injection. I recommend using query parameters. Regards, Bram _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)
On Tue, 17 Jul 2007 00:12:35 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Mattias Gaertner ha escrit: Please check ~/.lazarus/inputhistory.xml. Search for the missing units. For example there should be a line eventlog /usr/share/fpcsrc/fcl/inc/eventlog.pp Are they there? No, I can only see aliases for units in the rtl, anyway I pasted what I think are the relevant lines (between FPCConfigCache and /FPCConfigCache) here: http://pastebin.com/m11bae573 Your SearchPath only contains the default paths: SearchPath Value=/home/luca/.lazarus/;/usr/lib/fpc/2.0.4/units/i386-linux/rtl/;/usr/lib/fpc/2.0.4/;/ That means your fpc config is broken. It should contain lines like: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl These are created by the fpc RPM, unless you already have a /etc/fpc.cfg. You can generate a fresh fpc.cfg with: sudo /usr/lib/fpc/2.0.4/samplecfg /usr/lib/fpc/\$version If not, please compile lazarus clean with -dVerboseFPCSrcScan. Then start the new IDE and rescan the FPC sources (again). Can you send me the output? I pasted it here: http://pastebin.com/m689efbb9 it seems it scans everything but then it only adds aliases for units under /usr/share/fpcsrc/rtl Yes. Lazarus asks the compiler, where it searches for .ppu files. Then it searches the corresponding pas/pp files in the FPC sources. All other are ignored here. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unicode (UTF-8) and OnKeyPress event
On Tue, 17 Jul 2007 08:25:15 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object; This is for compatibility. The Key parameter is defined as a Char type, which is limited to the first 256 Unicode (or ASCII) characters. Shouldn't the TKeyPressEvent be redefined as a Word to be able to work with Unicode? A word is not sufficient for unicode. I am trying to solve this same problem in fpGUI and seeing that Delphi and Lazarus has the same issue, I can ask the question here. See http://wiki.lazarus.freepascal.org/LCL_Key_Handling Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unicode (UTF-8) and OnKeyPress event
On 17/07/07, Mattias Gaertner [EMAIL PROTECTED] wrote: The Key parameter is defined as a Char type, which is limited to the first 256 Unicode (or ASCII) characters. Shouldn't the TKeyPressEvent be redefined as a Word to be able to work with Unicode? A word is not sufficient for unicode. Ah yes, you are correct. A parameter named Char (or Text) of type String should do the trick. BTW: Is Lazarus aiming (in the future) to be UTF-8 compliant or UCS2 (UTF-16)? Regards, - Graeme - _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)
En/na Mattias Gaertner ha escrit: Your SearchPath only contains the default paths: SearchPath Value=/home/luca/.lazarus/;/usr/lib/fpc/2.0.4/units/i386-linux/rtl/;/usr/lib/fpc/2.0.4/;/ That means your fpc config is broken. It should contain lines like: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl The fact is, these lines are already there, in fact the project builds and works fine. These are created by the fpc RPM, unless you already have a /etc/fpc.cfg. You can generate a fresh fpc.cfg with: sudo /usr/lib/fpc/2.0.4/samplecfg /usr/lib/fpc/\$version It generated the same file :-( Bye -- Luca _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Unicode (UTF-8) and OnKeyPress event
Graeme Geldenhuys wrote: Hi, Maybe I'm not understanding Unicode (UTF-8 to be more precise) 100% yet, but isn't the OnKeyPress defined incorrectly, to work with UTF-8 input. TKeyPressEvent = procedure (Sender: TObject; var Key: Char) of object; IIRC there is a TUTF8KeyPressEvent. Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Ide doesn't find units in the fcl (or outside the project)
En/na Mattias Gaertner ha escrit: On Tue, 17 Jul 2007 09:38:15 +0200 Luca Olivetti [EMAIL PROTECTED] wrote: En/na Mattias Gaertner ha escrit: Your SearchPath only contains the default paths: SearchPath Value=/home/luca/.lazarus/;/usr/lib/fpc/2.0.4/units/i386-linux/rtl/;/usr/lib/fpc/2.0.4/;/ That means your fpc config is broken. It should contain lines like: -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/* -Fu/usr/lib/fpc/$fpcversion/units/$fpctarget/rtl The fact is, these lines are already there, in fact the project builds and works fine. Weird. But at least a step further. Ok, please try touch empty.pas ppc386 -va empty.pas Can you send me or publish the output? Aaagh, I knew I did something stupid: there was an fpc.cfg file in my home directory (a remnant of a test I did with fpc 2.1.4) and this was the file fpc was reading, not /etc/fpc.cfg. I still don't understand how it could possibly build the project (taking units from 2.1.4 instead of 2.0.4?) but now that I removed the rogue fpc.cfg everything is ok. Thank you for your patience and sorry for all the noise. Bye -- Luca _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Trouble registering on lazarus.freepascal.org
Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? tia! John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Installing Lazarus in Slackware 12
Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble registering on lazarus.freepascal.org
John vd Waeter wrote: Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? Where did you try to register for ? Mantis ? Forum ? Site ? Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Trouble registering on lazarus.freepascal.org
Marc Weustink wrote: John vd Waeter wrote: Hi all, I try to register at lazarus.freepascal.org, but no emails with password are sent from the site. Can anyone take a look at it? Where did you try to register for ? Mantis ? Forum ? Site ? Marc The forums. John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing Lazarus in Slackware 12
Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. Ciao A.J. On 7/17/07, Gandi Wibowo [EMAIL PROTECTED] wrote: Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? _ 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 Office: +27 21 591 6766 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing Lazarus in Slackware 12
On Tue, 17 Jul 2007 16:51:45 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? See for example: http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_SVN Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing Lazarus in Slackware 12
Thanks every one, i'll try it... i can't do with svn, my connection is very slow... i can't wait it finished 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 16:51:45 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Can anyone help me to install lazarus in Slackware 12? Fpc 2.0.4 has already installed in my System, but i can not install the lazarus. Could you tell me how to do it? See for example: http://wiki.lazarus.freepascal.org/Installing_Lazarus#Downloading_Lazarus_SVN 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
Re: [lazarus] Installing Lazarus in Slackware 12
Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. Unfortunately since yours truly LEFT openlab nobody has apparently maintained the lazarus packages there, the old one exists, but it is old. This is also why I included instructions on the slacktgz script in SVN instead of JUST the package. I don't have an up-to-date slack machine right now, or I would offer to do an updated slack package, I just tried to help the bes I can with my current resources based on my past experience. Ciao 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 Office: +27 21 591 6766 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing Lazarus in Slackware 12
On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 Mattias 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. 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 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Installing Lazarus in Slackware 12
2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 This the tar.gz format, i mean the .tgz format wich can install in slackware easly Mattias 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. 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 _ 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
Re: [lazarus] Installing Lazarus in Slackware 12
When i try to install gdk-pixbuf-0.22.0 there is an error, like this (after make command): gdk-pixbuf-scan.c:683: error: 'GTK_ARG_CHILD_ARG' undeclared (first use in this function) Compilation of scanner failed: make[2]: *** [scan-build.stamp] Error 1 make[2]: Leaving directory `/home/gandi/downloads/gdkpixbuf/gdk-pixbuf-0.22.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gandi/downloads/gdkpixbuf/gdk-pixbuf-0.22.0' make: *** [all-recursive-am] Error 2 it's ok to install the gdk-pixbuf? 2007/7/17, Gandi Wibowo [EMAIL PROTECTED]: 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 This the tar.gz format, i mean the .tgz format wich can install in slackware easly Mattias 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. 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 _ 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
Re: [lazarus] Installing Lazarus in Slackware 12
How can i get 0.9.22 in tgz format? 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. 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
Re: [lazarus] Installing Lazarus in Slackware 12
Did Lazarus Need GNOME? There is no GNOME in my system, so i can't install gdk-pixbuff, it's need gnome.h I think that's way i can't install LAZARUS in my slackware 12 2007/7/17, Gandi Wibowo [EMAIL PROTECTED]: When i try to install gdk-pixbuf-0.22.0 there is an error, like this (after make command): gdk-pixbuf-scan.c:683: error: 'GTK_ARG_CHILD_ARG' undeclared (first use in this function) Compilation of scanner failed: make[2]: *** [scan-build.stamp] Error 1 make[2]: Leaving directory `/home/gandi/downloads/gdkpixbuf/gdk-pixbuf-0.22.0/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/gandi/downloads/gdkpixbuf/gdk-pixbuf-0.22.0' make: *** [all-recursive-am] Error 2 it's ok to install the gdk-pixbuf? 2007/7/17, Gandi Wibowo [EMAIL PROTECTED]: 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 17:24:50 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: How can i get 0.9.22 in tgz format? http://sourceforge.net/project/showfiles.php?group_id=89339package_id=192182 This the tar.gz format, i mean the .tgz format wich can install in slackware easly Mattias 2007/7/17, Mattias Gaertner [EMAIL PROTECTED]: On Tue, 17 Jul 2007 12:13:00 +0200 A.J. Venter [EMAIL PROTECTED] wrote: Hiya Gandi, I have lazarus packages for OpenLab which are compatible with slackware (you can use installpkg) available from: http://www.getopenlab.com/openlab//openlab_400_optional/lazarus-0.9.17-i486-0.tgz 0.9.17 is pretty old and a development version. Better use at least 0.9.22. You need to install the gdk-pixbuf package as well (grab one from slackware.com/pb if you slack12 doesn't have it) and of course gtk1.2. If you want a more recent version, check out from svn, under the tools/install directory is a script called: create_lazarus_slacktgz.sh which I contributed, it can build slackware packages from any subversion checkout. I don't know if anybody is actually building them regularly though. 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 _ 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] Did lazarus need GNOME for install?
Did lazarus need GNOME? There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, i think it's need gnome.h and there is no GNOME in Slackware How can i install the lazarus without GNOME (in Slackware specially)? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Did lazarus need GNOME for install?
On 7/17/07, Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? No, Lazarus doesn't need GNOME There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, Yes, lazarus needs gdk-pixbuf i think it's need gnome.h and there is no GNOME in Slackware No, Lazarus doesn't require any .h files How can i install the lazarus without GNOME (in Slackware specially)? GNOME or not GNOME, you need to install the development package for gdk-pixbuf In Mandriva it is called libgdk-pixbuf-devel On other distributions the package has other names. -- Felipe Monteiro de Carvalho _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Did lazarus need GNOME for install?
On Tue, 17 Jul 2007 18:50:03 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? GNOME is the desktop environment, providing all the tools a user needs for everyday work. Lazarus does not need GNOME. It can run under KDE and other window managers/desktops as well. But the gtk1 version of lazarus needs the gdk_pixbuf library, which AFAIK uses some of the base libs of the GNOME project. So depending on your distro you might need parts of GNOME. There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, i think it's need gnome.h and there is no GNOME in Slackware How can i install the lazarus without GNOME (in Slackware specially)? I don't know Slackware, but since other users have used lazarus there, Slackware must support GNOME somehow. Of course it is also possible to compile lazarus against the newer gtk2 libraries, where pixbuf is integrated without GNOME. But the gtk2 interface of lazarus is less complete than the older gtk1 interface, so it depends on your needs, if this is sufficient. Can you install the gtk2 libraries under Slackware? Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Did lazarus need GNOME for install?
There is at least two ways to install gnome under slackware, dropline gnome (http://www.droplinegnome.net/) and freerock gnome (http://gsb.freerock.org/) freerock is easier to work with if you just want to install packages for parts of gnome, dropline is easier to install the whole thing. Personally I recommend freerock since it replaces very few of slackware's own packages (while dropline swaps out massive chunks and can mess up all your other dependency handling). BUT you don't need gnome at all. All you need is gtk1.2 and gdk_pixbuf, if you really cannot find a package, they are both very easy to build from source. I found those with a simple search in the package browser. But there wasn't apparently a version for slackware 12 (the slackware 11 version will work find though) http://packages.slackware.it/package.php?q=11.0/gdk-pixbuf-0.22.0-i486-1 And gtk12 (which DID have a slackware 12 version): http://packages.slackware.it/package.php?q=12.0/gtk+-1.2.10-i486-4 Ciao A.J. On 7/17/07, Mattias Gaertner [EMAIL PROTECTED] wrote:http://www.droplinegnome.net/ On Tue, 17 Jul 2007 18:50:03 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? GNOME is the desktop environment, providing all the tools a user needs for everyday work. Lazarus does not need GNOME. It can run under KDE and other window managers/desktops as well. But the gtk1 version of lazarus needs the gdk_pixbuf library, which AFAIK uses some of the base libs of the GNOME project. So depending on your distro you might need parts of GNOME. There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, i think it's need gnome.h and there is no GNOME in Slackware How can i install the lazarus without GNOME (in Slackware specially)? I don't know Slackware, but since other users have used lazarus there, Slackware must support GNOME somehow. Of course it is also possible to compile lazarus against the newer gtk2 libraries, where pixbuf is integrated without GNOME. But the gtk2 interface of lazarus is less complete than the older gtk1 interface, so it depends on your needs, if this is sufficient. Can you install the gtk2 libraries under Slackware? Mattias _ 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 Office: +27 21 591 6766 _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another little help with databases
Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, so you should either properly escape Edit1.Text, or use query parameters instead I recommend using query parameters. Regards, Bram I totally agree in principle, but I am trying to use pretty much the same configuration as German and I am having lots of trouble getting query parameters to behave, so perhaps that is not the best idea for first experiments ... cheers, John Sunderland _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Debugging and property values
Hi all, Is there any way of viewing property values while tracing / debugging ? Thanks, John Sunderland _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Menu
Good people: Does anybody know where can I find documentation about creating and managing menu? I mean, like a standard Windows app main menu or something. Best regards German
Re: [lazarus] Debugging and property values
John wrote: Hi all, Is there any way of viewing property values while tracing / debugging ? Nope. Closest thing is try to prefix it with F to access the member directly Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another little help with databases
On Tue, 2007-07-17 at 08:34 +0200, Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on the DBGrid as expected. Now I want to add an TEdit to make posible searching products by name, for example, so when the user writes something on the Edit, the SQLQuery1.SQL should become something like ‘select * from product where name = ‘ + Edit1.Text + ’ I assume you don't want to create an SQL injection bug, so you should either properly escape Edit1.Text, or use query parameters instead; see e.g. http://wiki.freepascal.org/Secure_programming#Injection. I recommend using query parameters. You could also use a filter. Like 'tsqlquery.filter := 'name = ' + edit1.text. then the dataset is filtered in memory. But if the dataset is too big, and you only want to use a small sub-set, you could use the 'serverfilter', this way the 'filter' is added to the sql automatically. But then you can get (just like by modifying the sql yourself) an injection-bug. -- Met vriendelijke groeten, Joost van der Sluis CNOC Informatiesystemen en Netwerken http://www.cnoc.nl _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] TListView Sorting
Hi, I have a TListView in Report style. I would like to have the user click on the column to sort by that column. I set the TListView.SortType property to no avail. How do I enable sorting? Thanks Charl -- I love deadlines. I especially love the whooshing sound they make as they fly by. - Douglas Adams
[lazarus] Initialize a DBGrid
Hi! Here goes another question: I have a form. This form contains a DBGrid. The DBGrid retrives information via an SQL connection from a PostgreSQL Database. How do I do to initialize parameters (like DBGrid1.Columns[1].Width := 20) when the form is shown (when the form appears)? Best Regards , German
[lazarus] Find in Files using an external Indexing Engine
Al Boldi wrote: Michael Van Canneyt wrote: On Sun, 4 Jun 2006, Mattias Gaertner wrote: Al Boldi [EMAIL PROTECTED] wrote: Mattias Gaertner wrote: Al Boldi wrote: The SourceEditor currently has the ability to search in files by searching a complete directory hierarchy. This may result in prolonged searches if the hierarchy is large. By pre-Indexing the sources, this could be reduced dramatically. Would this be difficult to implement? Can you give an example how this pre-Indexing should work? On the search in files dialog, there could be a button to create a word index of the sources, and a checkbox to use this index instead of grepping the files each time. Implementing should be simple. But making it fast, can be a lot more work. If you want to implement it and have any questions, don't hesitate to ask. I suggest that if this is implemented, it should be done as an external program, so it can be run in the background, or immediatly after installation. Sure. Do you know of any external mini-crossindexing engine? Jedi? I finally found one, and the reason it took me so long is because it was hiding behind some obscure name just like lazarus; it's called: swish-e It's lightening fast, especially during retrieve, but what's important is that it outputs a list of filenames ready to be loaded into the TheFileList object for DoFindInFiles to do the rest. Like this: {Search All the files in a project and add the results to the SearchResultsView Dialog} procedure TSourceNoteBook.FIFSearchIndex(ADialog: TLazFindInFilesDialog); var TheFileList: TStringList; SearchForm: TSearchForm; begin try TheFileList:= TStringList.Create; SearchForm:= FIFCreateSearchForm(ADialog); ExecuteProcess('/bin/sh' ,'-c /idx ' +SearchForm.SearchDirectory+' ' +SearchForm.SearchText +' | grep ' +SearchForm.SearchMask +' /tmp/idx.dmp'); TheFileList.LoadFromFile('/tmp/idx.dmp'); SearchForm.SearchFileList:= TheFileList; DoFindInFiles(SearchForm); finally FreeAndNil(TheFileList); FreeAndNil(SearchForm); end; end; There are two things to notice: 1. This is not swish-e dependent, here /idx is a shell script, which means any indexing engine that can output a list of files can interface with DoFindInFiles. 2. This is specific to the unix platform; how can we make it platform independent. Thanks! -- Al _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another little help with databases
Joost van der Sluis wrote: On Tue, 2007-07-17 at 08:34 +0200, Bram Kuijvenhoven wrote: German C. Basisty wrote: I have now a form with a working TPQConnection, a TSQLTransaction, a TSQLQuery with a ‘select * from product’ as SQL, a TDatasource, an a TDBGrid, everithing is working fine and every product is shown on the DBGrid as expected. Now I want to add an TEdit to make posible searching products by name, for example, so when the user writes something on the Edit, the SQLQuery1.SQL should become something like ‘select * from product where name = ‘ + Edit1.Text + ’ I assume you don't want to create an SQL injection bug, so you should either properly escape Edit1.Text, or use query parameters instead; see e.g. http://wiki.freepascal.org/Secure_programming#Injection. I recommend using query parameters. You could also use a filter. Like 'tsqlquery.filter := 'name = ' + edit1.text. then the dataset is filtered in memory. But if the dataset is too big, and you only want to use a small sub-set, you could use the 'serverfilter', this way the 'filter' is added to the sql automatically. But then you can get (just like by modifying the sql yourself) an injection-bug. I didn't know about ServerFilter. [/me is looking it up...] Ah, from the SQLDB source I see the contents of ServerFilter are simply pasted into the query (at the right place, with a WHERE () or AND () added). I assume that this is also the intended behavior? (That is of course no problem, as long as the user is aware of this). Bram _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Menu
I do not know where you can find information on the subject, but can give you a few tips. You can attach submenu's to the parent forms menu by: -- begin code *procedure TForm1.CreateSubMenu(Sender: TObject); *var Sub, SubItems: TMenuItem; begin // Create a sub menu Sub := TMenuItem.Create(Menu); Sub.Caption := 'SubMenu'; // Create items on the submenu SubItems := TMenuItem.Create(Sub); SubItems.Caption := 'Remove This Menu'; SubItems.OnClick := @RemoveSubMenu; Sub.Add(SubItems); // Add Sub menu to Forms main menu (at the 3rd position). Menu.Items.Insert(2, Sub); end; procedure TForm1.RemoveSubMenu(Sender: TObject); begin Menu.Items.Delete(2); // Delete menu item at the third position end; -- end code If you need more specific information ask away, maybe we can help. Tom German C. Basisty wrote: Good people: Does anybody know where can I find documentation about creating and managing menu? I mean, like a standard Windows app main menu or something… Best regards German No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.10.8/904 - Release Date: 7/16/2007 5:42 PM _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Another little help with databases
On Tue, 2007-07-17 at 21:40 +0200, Bram Kuijvenhoven wrote: I didn't know about ServerFilter. [/me is looking it up...] Ah, from the SQLDB source I see the contents of ServerFilter are simply pasted into the query (at the right place, with a WHERE () or AND () added). I assume that this is also the intended behavior? (That is of course no problem, as long as the user is aware of this). Yes. It obviously only works with ParseSQL set to true. It also automatically handles the refresh of the dataset. -- Met vriendelijke groeten, Joost van der Sluis CNOC Informatiesystemen en Netwerken http://www.cnoc.nl _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] Problem with file
Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin assign(f, 'test.txt'); {$I-} reset(f); {$I+} IOR := IOResult; if IOR = 2 then writeln('exists') else if IOR = 0 then writeln('it does not exists') else if IOR 0 then halt; close(f); end. == # fpc exists.pas It Works fine. Now I'm writting an app with lazarus, and the same code (inside a procedure) does not work. An error message appears when compiling: Unit1.pas(50,30) Error: Wrong number of parameters specified Should I handle files with lazarus in a diferent way tan with fpc? Regards, German
Re: [lazarus] Problem with file
On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote: Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin assign(f, 'test.txt'); {$I-} reset(f); {$I+} IOR := IOResult; if IOR = 2 then writeln('exists') else if IOR = 0 then writeln('it does not exists') else if IOR 0 then halt; close(f); end. == # fpc exists.pas It Works fine. Now I'm writting an app with lazarus, and the same code (inside a procedure) does not work. An error message appears when compiling: Unit1.pas(50,30) Error: Wrong number of parameters specified Should I handle files with lazarus in a diferent way tan with fpc? No. Lazarus uses plain FPC. It does not mangle your code. But 'assign' and 'close' are methods of your TForm, and they expect other parameters. You can see this yourself, by using the 'find declaration'feature of lazarus. The 'assign' you want to use is in the 'system' unit, so you can write 'System.Assign' and 'System.Close' to tell the compiler to use the right function. Or you can use the FileExists and/or FileIsReadable function of the FileUtil unit. Mattias _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Problem with file
Thank you!! Regards -Mensaje original- De: Mattias Gaertner [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de julio de 2007 07:07 p.m. Para: lazarus@miraclec.com Asunto: Re: [lazarus] Problem with file On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote: Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin assign(f, 'test.txt'); {$I-} reset(f); {$I+} IOR := IOResult; if IOR = 2 then writeln('exists') else if IOR = 0 then writeln('it does not exists') else if IOR 0 then halt; close(f); end. == # fpc exists.pas It Works fine. Now I'm writting an app with lazarus, and the same code (inside a procedure) does not work. An error message appears when compiling: Unit1.pas(50,30) Error: Wrong number of parameters specified Should I handle files with lazarus in a diferent way tan with fpc? No. Lazarus uses plain FPC. It does not mangle your code. But 'assign' and 'close' are methods of your TForm, and they expect other parameters. You can see this yourself, by using the 'find declaration'feature of lazarus. The 'assign' you want to use is in the 'system' unit, so you can write 'System.Assign' and 'System.Close' to tell the compiler to use the right function. Or you can use the FileExists and/or FileIsReadable function of the FileUtil unit. 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
Re: [lazarus] Problem with file
Mattias Gaertner wrote: On Tue, 17 Jul 2007 18:49:35 -0300 German C. Basisty [EMAIL PROTECTED] wrote: Hello again! I wrote this simple program in pascal on my Linux box: == program exists; var f: file of string; IOR: integer; begin assign(f, 'test.txt'); {$I-} reset(f); {$I+} IOR := IOResult; if IOR = 2 then writeln('exists') else if IOR = 0 then writeln('it does not exists') else if IOR 0 then halt; close(f); end. == # fpc exists.pas It Works fine. Now I'm writting an app with lazarus, and the same code (inside a procedure) does not work. An error message appears when compiling: Unit1.pas(50,30) Error: Wrong number of parameters specified Should I handle files with lazarus in a diferent way tan with fpc? No. Lazarus uses plain FPC. It does not mangle your code. But 'assign' and 'close' are methods of your TForm, and they expect other parameters. You can see this yourself, by using the 'find declaration'feature of lazarus. The 'assign' you want to use is in the 'system' unit, so you can write 'System.Assign' and 'System.Close' to tell the compiler to use the right function. Or you can use the FileExists and/or FileIsReadable function of the FileUtil unit. Or you can use AssignFile/CloseFile to avoid confusion with TForm methods Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Initialize a DBGrid
German C. Basisty wrote: Hi! Here goes another question: I have a form. This form contains a DBGrid. The DBGrid retrives information via an SQL connection from a PostgreSQL Database. How do I do to initialize parameters (like DBGrid1.Columns[1].Width := 20) when the form is shown (when the form appears)? Best Regards , German Exactly like that, I would have thought. You can do it at run time as you have suggested. Put the code in the OnShow event of the form if you want it done once when the form is first opened. Alternatively, you can set them at design time using the columns property of the dbgrid in the Object Inspector. cheers, John _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
[lazarus] files: I give up
Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text; ShowMessage(cadena); System.Assign(archivo, 'archivo.dat'); System.Rewrite(archivo); Write(archivo, cadena); System.Close(archivo); end; The Reading code (Another app): procedure TForm1.Button1Click(Sender: TObject); var archivo: file of string; cadena: string; begin System.Assign(archivo, 'archivo.dat'); System.Reset(archivo); read(archivo, cadena); System.Close(archivo); Edit1.Text := cadena; end; When I run the writting app, it seems to work, the archivo.dat file is created. But when I run the Reading app, and press the read button, it apperas an error message who say something about Access violation. Please help! Have mercy Regards, German
Re: [lazarus] files: I give up
- Original Message - From: German C. Basisty [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Tuesday, July 17, 2007 7:46 PM Subject: [lazarus] files: I give up Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text; ShowMessage(cadena); System.Assign(archivo, 'archivo.dat'); System.Rewrite(archivo); Write(archivo, cadena); System.Close(archivo); end; The Reading code (Another app): procedure TForm1.Button1Click(Sender: TObject); var archivo: file of string; cadena: string; begin System.Assign(archivo, 'archivo.dat'); System.Reset(archivo); read(archivo, cadena); System.Close(archivo); Edit1.Text := cadena; end; When I run the writting app, it seems to work, the archivo.dat file is created. But when I run the Reading app, and press the read button, it apperas an error message who say something about Access violation. Please help! Have mercy Regards, German It looks like you speak spanish, if you want, see me in the #lazarus-es IRC channel in freenode, everybody is invited btw. Jesus Reyes A. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] files: I give up
German C. Basisty ?: Now I really dont know whats wrong, please help me. The writting code: procedure TForm1.Button1Click(Sender: TObject); var archivo: File of String; cadena: String; begin cadena := Edit1.Text; ShowMessage(cadena); System.Assign(archivo, 'archivo.dat'); System.Rewrite(archivo); Write(archivo, cadena); System.Close(archivo); end; The Reading code (Another app): procedure TForm1.Button1Click(Sender: TObject); var archivo: file of string; cadena: string; begin System.Assign(archivo, 'archivo.dat'); System.Reset(archivo); read(archivo, cadena); System.Close(archivo); Edit1.Text := cadena; end; When I run the writting app, it seems to work, the archivo.dat file is created. But when I run the Reading app, and press the read button, it apperas an error message who say something about Access violation. Please help! Have mercy Regards, German The idea is to change the type of your file to Text; I.e. procedure TForm1.Button1Click(Sender: TObject); var archivo: Text; cadena: String; begin cadena := Edit1.Text; ShowMessage(cadena); System.Assign(archivo, 'archivo.dat'); System.Rewrite(archivo); Write(archivo, cadena); System.Close(archivo); end; The Reading code (Another app): procedure TForm1.Button1Click(Sender: TObject); var archivo: Text; cadena: string; begin System.Assign(archivo, 'archivo.dat'); System.Reset(archivo); read(archivo, cadena); System.Close(archivo); Edit1.Text := cadena; end; Also, the good idea is to check the file existence before open it with FileExists() function. *Regards, Alexey.*
[lazarus] Weird error problem
Hi guys, I hope you can help me with this one. Using FPC 2.0.4 and Lazarus 0.9.23 rev.11447M. I am converting my main Delphi project to Lazarus under Linux/GTK1 and I get an odd error. As far as I can determine the error happens when a function in another unit is called the second time. The error dialog says: Raised exception class RunError(202) The Execution Paused dialog after that says: Adress: $08062902 Procedure: SYSTEMHANDLEERRORADDFRAME$LONGINT$POINTER$POINTER gdb backtrace: (gdb) bt #0 0x0805f482 in fpc_raiseexception () #1 0x0818d88d in ?? () #2 0x in ?? () (gdb) If I run under gdb without putting in break fpc_raiseexception, when the error happens the console shows: TApplication.HandleException Unknown Run-Time error : 202 Stack trace: $08062511 $08137BA8 XMLWRITEDD, line 727 of ConvUnit.pas $080E7A51 TMZ__SVD, line 102 of MZJ.pas $080F1D70 TPZ__CDDA, line 8603 of PZJ.pas $080AD251 TH__UDSSCR, line 12371 of HJ.pas $080EFD2F TVZ__CU1CLICK, line 171 of VZJ.pas $08205826 TCONTROL__CLICK, line 1993 of ./include/control.inc $0821712D TBUTTONCONTROL__CLICK, line 57 of ./include/buttoncontrol.inc $082177F1 TCUSTOMBUTTON__CLICK, line 186 of ./include/buttons.inc $08217C1D TBUTTON__CLICK, line 312 of ./include/buttons.inc $082179A8 TCUSTOMBUTTON__WMDEFAULTCLICKED, line 241 of ./include/buttons.inc $0805EA00 $08204DDE TCONTROL__WNDPROC, line 1545 of ./include/control.inc $081FC5BA TWINCONTROL__WNDPROC, line 3498 of ./include/wincontrol.inc $08299885 DELIVERMESSAGE, line 3576 of gtkproc.inc $082B54EC GTKWSBUTTON_CLICKED, line 958 of gtkwsstdctrls.pp $B7CE8B06 LAZARUSPACKAGEINTF_finalize, line 49 of ./unix/cupsdyn.pp Which seems to confirm that the ConvUnit.XMLWRITEDD function is being called from the TMZ_SVD procedure when the error happens. If I put in a showmessage() as the first thing in XMLWRITEDD code, it does not get shown. There is no problem running this code under Delphi, and looking at it I don't see anything abnormal it that location. One strange thing is that I commented out some code in the TH__UDSSCR procedure after the point where the code branches to the error location, which code-wise is quite far away, to trace where its happening and problem disappeared, but then reappeared even after commenting and uncommenting the same code to trace it. If I run without a debugger, if I click to ignore the error, the program runs fine and will even run through the same code again without any further errors. There is at least one other different location in the program where a seemingly normal function call is causing an error for no apparent reason. Any ideas? George _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] files: I give up
Also, it depends on exactly what you are trying to save. There are other ways of saving strings than using the low level file routines. They may be less efficient, but involve less programming. If your strings are in a TStrings or TStringList object, you can simply use the SaveToFile and LoadFromFile methods. This gives you lots of good ways to work with the strings as well. If you just want to save odd form or control properties, there is the sessionproperties system (Congratulations to whoever invented that, by the way!). If you want to work with large slabs of text, the low level routines might be best. If you are just experimenting, don't let me put you off! cheers, John _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Did lazarus need GNOME for install?
Thanks Venter, i'v installed gdk-pixbuf, and lazarus has installed in my slackware, i use .rpm packet of lazarus and convert it to .tgz using rpm2tgz 2007/7/17, A.J. Venter [EMAIL PROTECTED]: There is at least two ways to install gnome under slackware, dropline gnome (http://www.droplinegnome.net/) and freerock gnome (http://gsb.freerock.org/) freerock is easier to work with if you just want to install packages for parts of gnome, dropline is easier to install the whole thing. Personally I recommend freerock since it replaces very few of slackware's own packages (while dropline swaps out massive chunks and can mess up all your other dependency handling). BUT you don't need gnome at all. All you need is gtk1.2 and gdk_pixbuf, if you really cannot find a package, they are both very easy to build from source. I found those with a simple search in the package browser. But there wasn't apparently a version for slackware 12 (the slackware 11 version will work find though) http://packages.slackware.it/package.php?q=11.0/gdk-pixbuf-0.22.0-i486-1 And gtk12 (which DID have a slackware 12 version): http://packages.slackware.it/package.php?q=12.0/gtk+-1.2.10-i486-4 Ciao A.J. On 7/17/07, Mattias Gaertner [EMAIL PROTECTED] wrote:http://www.droplinegnome.net/ On Tue, 17 Jul 2007 18:50:03 +0700 Gandi Wibowo [EMAIL PROTECTED] wrote: Did lazarus need GNOME? GNOME is the desktop environment, providing all the tools a user needs for everyday work. Lazarus does not need GNOME. It can run under KDE and other window managers/desktops as well. But the gtk1 version of lazarus needs the gdk_pixbuf library, which AFAIK uses some of the base libs of the GNOME project. So depending on your distro you might need parts of GNOME. There no GNOME in Slackware... So i can't install The gdk-pixbuff it's always error, i think it's need gnome.h and there is no GNOME in Slackware How can i install the lazarus without GNOME (in Slackware specially)? I don't know Slackware, but since other users have used lazarus there, Slackware must support GNOME somehow. Of course it is also possible to compile lazarus against the newer gtk2 libraries, where pixbuf is integrated without GNOME. But the gtk2 interface of lazarus is less complete than the older gtk1 interface, so it depends on your needs, if this is sufficient. Can you install the gtk2 libraries under Slackware? Mattias _ 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 Office: +27 21 591 6766 _ 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