[Lazarus] FCL-Image question
FCL-Image is quite powerful (although notably slow), it is mostly suitable for my needs. I've got it writing a solid black PNG file just fine with the help of the wiki example, but is it possible to create a memory image with an alpha channel and have it save the PNG as such? I can't manage to find anything in the docs about this possibility. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Interesting issue when running programs
Martin I had already tried that, to no avail Mattias It was my understanding that I had to run my program through a debugger (like GDB) outside of the IDE, in which case the application will work flawlessly. It only manages to crash with F9 -- is there a way to debug through that only? I have -g, -gl, -gw, and -Xg enabled. I have a hunch if I run the program with F9 with -Xg enabled (external file with debugging info), there would be a way to parse the generated file, but I've yet to find out how. On Sat, Mar 27, 2010 at 1:22 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 27 Mar 2010 11:59:05 -0300 Matt Shaffer dazappa.m...@gmail.com wrote: I've noticed an interesting problem I seem to have acquired, and I was wondering if anyone has come across it before. I used to have a nice, happy installation of lazarus .9.28.2 on Windows Vissta, but I seem to have borked it. Now, no matter how simple an application I build is (IE: 1 Form, no LCL, etc.), when I run programs through the IDE with F9 (or the button), they segfault immediately. I have no idea what the last thing I did was, and I have no idea how to remedy the problem. What would be a recommend course of action? - I don't know how I caused this, so I'm not sure if this is a bug - Is it possible to track down what's causing this? Run the program in a debugger and create a backtrace. - Should I reinstall Lazarus? Or should I install an SVN version, for kicks? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Interesting issue when running programs
I think I'll update this real quick: 1. I'm using GDB 5.2.1 2. GDB quotes itself as encountering an internal error when I do gdb project1.exe 3. I hit no (I don't want to quit) to continue anyway. 4. Run 5. Segfault! Hey.. I actually didn't expect that. The backtrace: Program received signal SIGSEGV, Segmentation fault. 0x100177b7 in ?? () (gdb) backtrace #0 0x100177b7 in ?? () #1 0x10017af6 in ?? () #2 0x100029a0 in ?? () #3 0x1000dffe in ?? () #4 0x76e9c8f9 in ?? () #5 0x76e9cbc3 in ?? () #6 0x76e9ec16 in ?? () #7 0x75ed96a8 in ?? () #8 0x75ed9738 in ?? () #9 0x75da08d2 in ?? () #10 0x75d75151 in ?? () #11 0x75d74e10 in ?? () #12 0x75d73f87 in ?? () #13 0x76eda604 in ?? () #14 0x76e9c8f9 in ?? () #15 0x76ea4c41 in ?? () #16 0x76ea5ad7 in ?? () #17 0x76eaa980 in ?? () But I've not the slightest idea what to do with it. On Sat, Mar 27, 2010 at 2:09 PM, Matt Shaffer dazappa.m...@gmail.comwrote: Martin I had already tried that, to no avail Mattias It was my understanding that I had to run my program through a debugger (like GDB) outside of the IDE, in which case the application will work flawlessly. It only manages to crash with F9 -- is there a way to debug through that only? I have -g, -gl, -gw, and -Xg enabled. I have a hunch if I run the program with F9 with -Xg enabled (external file with debugging info), there would be a way to parse the generated file, but I've yet to find out how. On Sat, Mar 27, 2010 at 1:22 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 27 Mar 2010 11:59:05 -0300 Matt Shaffer dazappa.m...@gmail.com wrote: I've noticed an interesting problem I seem to have acquired, and I was wondering if anyone has come across it before. I used to have a nice, happy installation of lazarus .9.28.2 on Windows Vissta, but I seem to have borked it. Now, no matter how simple an application I build is (IE: 1 Form, no LCL, etc.), when I run programs through the IDE with F9 (or the button), they segfault immediately. I have no idea what the last thing I did was, and I have no idea how to remedy the problem. What would be a recommend course of action? - I don't know how I caused this, so I'm not sure if this is a bug - Is it possible to track down what's causing this? Run the program in a debugger and create a backtrace. - Should I reinstall Lazarus? Or should I install an SVN version, for kicks? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Interesting issue when running programs
And one more backtrace, after I discovered -Xs was being forced upon compiled programs, removing symbols. Starting program: C:\Users\Matt\Documents\TestCase/project1.exe Program received signal SIGSEGV, Segmentation fault. 0x100177b7 in U_SYSINITPAS_ENTRYINFORMATION () (gdb) backtrace #0 0x100177b7 in U_SYSINITPAS_ENTRYINFORMATION () #1 0x8c87c83d in ?? () #2 0x10017af6 in U_SYSINITPAS_ENTRYINFORMATION () #3 0x100029a0 in U_SYSINITPAS_ENTRYINFORMATION () #4 0x1000dffe in U_SYSINITPAS_ENTRYINFORMATION () #5 0x76e9c8f9 in U_SYSINITPAS_ENTRYINFORMATION () #6 0x76e9cbc3 in U_SYSINITPAS_ENTRYINFORMATION () #7 0x76e9ec16 in U_SYSINITPAS_ENTRYINFORMATION () #8 0x75ed96a8 in ?? () #9 0x75ed9738 in ?? () #10 0x75da08d2 in ?? () #11 0x75d75151 in ?? () #12 0x75d74e10 in ?? () #13 0x75d73f87 in ?? () #14 0x76eda604 in U_SYSINITPAS_ENTRYINFORMATION () #15 0x76e9c8f9 in U_SYSINITPAS_ENTRYINFORMATION () #16 0x76ea4c41 in U_SYSINITPAS_ENTRYINFORMATION () #17 0x76ea5ad7 in U_SYSINITPAS_ENTRYINFORMATION () #18 0x76eaa980 in U_SYSINITPAS_ENTRYINFORMATION () (gdb) q So yeah, it dies really early into execution. I'm just going to reinstall Lazarus, as this seems like the best option for me. (Although I still am curious as to why an app segfaults when being debugged, but not when run without a debugger attached...) On Sat, Mar 27, 2010 at 2:21 PM, Matt Shaffer dazappa.m...@gmail.comwrote: I think I'll update this real quick: 1. I'm using GDB 5.2.1 2. GDB quotes itself as encountering an internal error when I do gdb project1.exe 3. I hit no (I don't want to quit) to continue anyway. 4. Run 5. Segfault! Hey.. I actually didn't expect that. The backtrace: Program received signal SIGSEGV, Segmentation fault. 0x100177b7 in ?? () (gdb) backtrace #0 0x100177b7 in ?? () #1 0x10017af6 in ?? () #2 0x100029a0 in ?? () #3 0x1000dffe in ?? () #4 0x76e9c8f9 in ?? () #5 0x76e9cbc3 in ?? () #6 0x76e9ec16 in ?? () #7 0x75ed96a8 in ?? () #8 0x75ed9738 in ?? () #9 0x75da08d2 in ?? () #10 0x75d75151 in ?? () #11 0x75d74e10 in ?? () #12 0x75d73f87 in ?? () #13 0x76eda604 in ?? () #14 0x76e9c8f9 in ?? () #15 0x76ea4c41 in ?? () #16 0x76ea5ad7 in ?? () #17 0x76eaa980 in ?? () But I've not the slightest idea what to do with it. On Sat, Mar 27, 2010 at 2:09 PM, Matt Shaffer dazappa.m...@gmail.comwrote: Martin I had already tried that, to no avail Mattias It was my understanding that I had to run my program through a debugger (like GDB) outside of the IDE, in which case the application will work flawlessly. It only manages to crash with F9 -- is there a way to debug through that only? I have -g, -gl, -gw, and -Xg enabled. I have a hunch if I run the program with F9 with -Xg enabled (external file with debugging info), there would be a way to parse the generated file, but I've yet to find out how. On Sat, Mar 27, 2010 at 1:22 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 27 Mar 2010 11:59:05 -0300 Matt Shaffer dazappa.m...@gmail.com wrote: I've noticed an interesting problem I seem to have acquired, and I was wondering if anyone has come across it before. I used to have a nice, happy installation of lazarus .9.28.2 on Windows Vissta, but I seem to have borked it. Now, no matter how simple an application I build is (IE: 1 Form, no LCL, etc.), when I run programs through the IDE with F9 (or the button), they segfault immediately. I have no idea what the last thing I did was, and I have no idea how to remedy the problem. What would be a recommend course of action? - I don't know how I caused this, so I'm not sure if this is a bug - Is it possible to track down what's causing this? Run the program in a debugger and create a backtrace. - Should I reinstall Lazarus? Or should I install an SVN version, for kicks? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Interesting issue when running programs
Well, I updated to the absolute latest I could find, 7.1, and it no longer encounters an internal error, but it still reports the segfault like 5.2.1 did, and as the Lazarus IDE does. Is it possible for installed packages to cause this problem? On Sat, Mar 27, 2010 at 4:16 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 27 Mar 2010 14:21:48 -0300 Matt Shaffer dazappa.m...@gmail.com wrote: I think I'll update this real quick: 1. I'm using GDB 5.2.1 Maybe this is too old. I hope a windows user can tell more. 2. GDB quotes itself as encountering an internal error when I do gdb project1.exe That's pretty bad. I would search for a newer gdb. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Need help from windows users
Doesn't crash on Vista for me either (rev 24235, today's snapshot). On Sat, Mar 27, 2010 at 8:58 PM, Martin laza...@mfriebe.de wrote: On 27/03/2010 23:33, Mattias Gaertner wrote: Hi, I need some help with the following bug report: http://bugs.freepascal.org/view.php?id=15973 Can someone reproduce the crash and create a backtrace? I tried on Vista = no crash. Report is for WinME though... Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TurboPower OnGuard changes
Graeme: Query the date/time value of the '/bin' directory under Linux, or 'C:\Windows' or 'C:\WinNT' under Windows. Then work out how many seconds or milliseconds since say 1980-01-01. You then have a pretty unique value. The chances of somebody else running your software and having installed their OS in the exact same millisecond as somebody else is pretty slim. :-) Is it really accurate to the millisecond? Anyway, also interested if OEMs like HP would have the same timestamps then, as from my understanding many just clone an hdd, which would leave hundreds of computers with the same system, file dates and all, no? On Wed, Feb 10, 2010 at 6:37 PM, Juha Manninen juha.manni...@phnet.fiwrote: Option 1) UUID look-up can be done via /var/log/udev This same file also gives you ALL the information about each device, including the long and short serial number. No such file in OpenSuse 11.2. Option 2) Knowing the UUID or device (eg: /dev/sda1) one can simply do a lookup in the /dev/disk/by-id/ directory. Each file in that directory has the following information: bus-brand-model-serial#[-partition] So by simply parsing the name, you can find the serial number of the device. /dev/disk/by-id/ has some files : /dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H /dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part1 /dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part3 /dev/disk/by-id/ata-Maxtor_6B200P0_B419N81H-part4 ... and others... They are all zero bytes so all info is in the name. Can anybody else running Linux, and preferably not Ubuntu (as I am using Ubuntu), have a look and see if they have the same files with information about hard drives? Regards, Juha Manninen -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Forum seems to be hacked!
Well, there doesn't have to be shell/ftp for the person to have access to files ;) As long as they're able to upload their own file manager through an exploit... Anyway, I can't think of any other possibilities. But, wouldn't it be possible to change the permissions of SMF's files when an update is needed, and then changing the permissions back to read only? Granted, this could be limiting and is certainly annoying, but it's better than having the forums hacked to pieces. On Wed, Jan 27, 2010 at 5:04 PM, Marc Weustink m...@dommelstein.net wrote: Matt Shaffer wrote: On Wed, Jan 27, 2010 at 10:37 AM, Marc Weustink marc.weust...@cuperus.nlmailto: marc.weust...@cuperus.nl wrote: The infection is removed. We're currently investigating where it came from. The smf forum was uptodate (1.1.11). Unfortunately when restoring things, a previous index.php was used, which reports the older version. (which is the only diff of the file) I fear the ease of the update process made it also possible to write new contents. Marc I don't see how the ease of the update process would give hackers an advantage... after all, you still have to have an admin account to perform that activity. It requires the smf dir and file to be writable for the user the forum is runnng on. Which means that any leak can write to these files. Keep in mind: 1. An outdated index.php could be a possible culprit, if it had any security vulnerabilities with it (although I highly doubt this) Is up to date 2. Any mods installed may have vulnerabilities We don't have many mods 3. If the person updating the forum to 1.1.11 ignored warning messages about files not being writable, etc, there may still be an outdated file with a vulnerability from 1.1.10 We were up to date without any warning. 4. SMF doesn't necessarily have to be the culprit. Exploits in other software may have given the intruder file/ftp access, allowing him to change any files anywhere. there is no public external access to that machine. No shell, no ftp. only web. Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Forum seems to be hacked!
Right, but what I meant was if someone manages to upload their own PHP file to the lazarus server, they can easily have uploaded a PHP file manager which has the capability of deleting files, etc, without ever needing ssh/ftp (this assumes the attack was done through a vulnerable piece of software, that had write permissions, etc.) I don't think this scenario is extremely likely. On Thu, Jan 28, 2010 at 2:42 AM, Florian Klaempfl flor...@freepascal.orgwrote: Matt Shaffer schrieb: Well, there doesn't have to be shell/ftp for the person to have access to files ;) To ssh, you've to hack a vpn first ;) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Forum seems to be hacked!
For the record, the lazarus site's SMF installation is out of date (by 1 version), I'd recommend patching it up. I love SMF's upgrade process... so simple. On Tue, Jan 26, 2010 at 10:15 PM, waldo kitty wkitt...@windstream.netwrote: they've either fixed the one on the forums already or my blocking of ohloh.net has possibly prevented it... there has been a recent rash of mess getting into numerous places... one that has been rather unnerving has been where an iframe (IIRC) was put in place with a Z axis of the highest numerical entity that made it appear that all content was removed and replaced by the ad being shoved in... testing www.lazarus.freepascal.org shows me the exact same page as forums.lazarus.freepascal.org... and neither carry the index.php?action item in my testing... On 1/26/2010 21:20, Marcelo B de Paula wrote: Hi there, The Lazarus forum (http://forum.lazarus.freepascal.org/index.php?action=forum) is very, very slow ATM, it takes me 1 minute to load a page (tested on different systems, with different OS'es and different browsers). When I viewed the source I discovered 1000 lines (after the normal code for the page) like: div style= display : none h2hp printers can use xp and windows 7/h2 ul lia href=http://www.saleschampions2006.org/store/windows-xp/hp-pri nters---can--use-xp-and-windows-7.phphp printers can use xp and windows 7/a /ul /div Same here, but in main page http://www.lazarus.freepascal.org Marcelo. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] bug report: I had to laugh
I wouldn't laugh either. I'm still running a CRT on my main computer at 1024x768, and that box well exceeds the screen boundaries. I'd suggest some sort of non-editable memo, or at least a scrollbar and window adjusted to the size of the screen. On Fri, Jan 22, 2010 at 12:09 PM, Jürgen Hestermann juergen.hesterm...@gmx.de wrote: Felipe Monteiro de Carvalho schrieb: You are lucky that in Linux you can Alt+Drag the window. In Windows when this happens you get stuck without acess to the buttons, or you can just press Enter and hope that it will hit the button. On Windows you should be able to move a window too with Alt+Space/Move. Though I am not sure whether this applies to such dialog boxes too. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FTP Server component?
I don't know of a server component, but a free windows FTP server is filezilla (http://filezilla-project.org/) On Fri, Jan 22, 2010 at 2:33 AM, Graeme Geldenhuys graemeg.li...@gmail.comwrote: Hi, I looked at lnet and TurboPower IPro components and only saw FTP Client components. Anybody know where I could get a FTP Server component? Alternatively, a free or open-source FTP Server application that can run on Windows XP or Windows Server 2003 would also be great. Linux already has decent FTP servers available. Why? We transfer a lot of files (huge amounts of data) over our internal network. We tested performance between Win - Win and Win - Linux systems using Samba or MS Network Neighbourhood. We then tested Win - Linux using FTP and the transfer speeds where a LOT better! This speed increase makes sense because FTP is a specific file transfer protocol, where SMB is mixed bag: file sharing, printer sharing and lots of other communications we don't need. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://opensoft.homeip.net/fpgui/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLDB issues.
I noticed the same thing as Luiz. If I am not currently editing the database through the IDE, it should not be keeping a lock on the DB (which is why I wanted to submit a bug report). It's perfectly fine for it to keep it open for reading 24/7, though. On Fri, Jan 8, 2010 at 5:24 AM, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Luca Olivetti escreveu: En/na Michael Van Canneyt ha escrit: On Tue, 5 Jan 2010, Matt Shaffer wrote: I thought I would just do a little update. I've been successfully able to write now, BUT, I don't believe the SQLdb components were really keeping SQLite in mind (the db I'm using). You see, Lazarus opens a connection to the SQLite database, preventing my app that's running (for debugging purposes) from writing. So I have to build the app, close Lazarus, then run my app... Should I file a bug report for this? No. It is a limitation of sqlite. Then why zeosdbo has no such issue? It seems that Sqldb is keeping an transaction open even for reading (Select) the data. I don't know in other DB, but in sqlite is not necessary the transaction to read data. It's possible to have multiple connections reading the data at the same time. Write blocks other connections from accessing the db. Luiz -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLDB issues.
It turned out that for some reason restarting the IDE fixed the problem. The data now populates happily. 2010/1/5 Michael Van Canneyt mich...@freepascal.org Can you post the files somewhere ? It should work; it sure does here. BTW. You can set the 'Active' property to true even in the designer, it should show the data in the grid as well. Michael. On Tue, 5 Jan 2010, Matt Shaffer wrote: Yes, it is indeed. On Tue, Jan 5, 2010 at 1:21 AM, Serge Girard (via Orange) girard.ser...@orange.fr wrote: Matt Shaffer a écrit : So I found this helpful wiki page http://wiki.lazarus.freepascal.org/SQLdb_Package for getting started with the db components. Great! I (believe) I've followed the tutorial exactly, everything's working until I try to drop a tdbgrid with my datasource onto the form. No data is shown. I double check my sql query, select * from actions, I click the run button and the data shows, so I was confused as to why it wouldn't show in the grid. I compiled the program anyway, thinking maybe the IDE's auto query executor was broken, but no luck. Still completely blank. I've tried the same thing with a dblistbox as well. Uhm , is your DbGrid/dblistbox linked to a datasource , and the datasource to your Query ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLDB issues.
Different issue: Saving to the database. I can't manage to figure this one out. If I do: query.ApplyUpdates; the database isn't actually written to. If I do: query.Post; query.ApplyUpdates; it says that it's not set for editing. So, where I'm having trouble is where to set the state? I've done query.State := dsEdit; but that understandably yells at me.. On Tue, Jan 5, 2010 at 3:49 PM, Matt Shaffer dazappa.m...@gmail.com wrote: It turned out that for some reason restarting the IDE fixed the problem. The data now populates happily. 2010/1/5 Michael Van Canneyt mich...@freepascal.org Can you post the files somewhere ? It should work; it sure does here. BTW. You can set the 'Active' property to true even in the designer, it should show the data in the grid as well. Michael. On Tue, 5 Jan 2010, Matt Shaffer wrote: Yes, it is indeed. On Tue, Jan 5, 2010 at 1:21 AM, Serge Girard (via Orange) girard.ser...@orange.fr wrote: Matt Shaffer a écrit : So I found this helpful wiki page http://wiki.lazarus.freepascal.org/SQLdb_Package for getting started with the db components. Great! I (believe) I've followed the tutorial exactly, everything's working until I try to drop a tdbgrid with my datasource onto the form. No data is shown. I double check my sql query, select * from actions, I click the run button and the data shows, so I was confused as to why it wouldn't show in the grid. I compiled the program anyway, thinking maybe the IDE's auto query executor was broken, but no luck. Still completely blank. I've tried the same thing with a dblistbox as well. Uhm , is your DbGrid/dblistbox linked to a datasource , and the datasource to your Query ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLDB issues.
I thought I would just do a little update. I've been successfully able to write now, BUT, I don't believe the SQLdb components were really keeping SQLite in mind (the db I'm using). You see, Lazarus opens a connection to the SQLite database, preventing my app that's running (for debugging purposes) from writing. So I have to build the app, close Lazarus, then run my app... Should I file a bug report for this? On Tue, Jan 5, 2010 at 8:02 PM, Matt Shaffer dazappa.m...@gmail.com wrote: Different issue: Saving to the database. I can't manage to figure this one out. If I do: query.ApplyUpdates; the database isn't actually written to. If I do: query.Post; query.ApplyUpdates; it says that it's not set for editing. So, where I'm having trouble is where to set the state? I've done query.State := dsEdit; but that understandably yells at me.. On Tue, Jan 5, 2010 at 3:49 PM, Matt Shaffer dazappa.m...@gmail.comwrote: It turned out that for some reason restarting the IDE fixed the problem. The data now populates happily. 2010/1/5 Michael Van Canneyt mich...@freepascal.org Can you post the files somewhere ? It should work; it sure does here. BTW. You can set the 'Active' property to true even in the designer, it should show the data in the grid as well. Michael. On Tue, 5 Jan 2010, Matt Shaffer wrote: Yes, it is indeed. On Tue, Jan 5, 2010 at 1:21 AM, Serge Girard (via Orange) girard.ser...@orange.fr wrote: Matt Shaffer a écrit : So I found this helpful wiki page http://wiki.lazarus.freepascal.org/SQLdb_Package for getting started with the db components. Great! I (believe) I've followed the tutorial exactly, everything's working until I try to drop a tdbgrid with my datasource onto the form. No data is shown. I double check my sql query, select * from actions, I click the run button and the data shows, so I was confused as to why it wouldn't show in the grid. I compiled the program anyway, thinking maybe the IDE's auto query executor was broken, but no luck. Still completely blank. I've tried the same thing with a dblistbox as well. Uhm , is your DbGrid/dblistbox linked to a datasource , and the datasource to your Query ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] SQLDB issues.
So I found this helpful wiki page http://wiki.lazarus.freepascal.org/SQLdb_Package for getting started with the db components. Great! I (believe) I've followed the tutorial exactly, everything's working until I try to drop a tdbgrid with my datasource onto the form. No data is shown. I double check my sql query, select * from actions, I click the run button and the data shows, so I was confused as to why it wouldn't show in the grid. I compiled the program anyway, thinking maybe the IDE's auto query executor was broken, but no luck. Still completely blank. I've tried the same thing with a dblistbox as well. Using Vista with Laz .9.28.2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] SQLDB issues.
Yes, it is indeed. On Tue, Jan 5, 2010 at 1:21 AM, Serge Girard (via Orange) girard.ser...@orange.fr wrote: Matt Shaffer a écrit : So I found this helpful wiki page http://wiki.lazarus.freepascal.org/SQLdb_Package for getting started with the db components. Great! I (believe) I've followed the tutorial exactly, everything's working until I try to drop a tdbgrid with my datasource onto the form. No data is shown. I double check my sql query, select * from actions, I click the run button and the data shows, so I was confused as to why it wouldn't show in the grid. I compiled the program anyway, thinking maybe the IDE's auto query executor was broken, but no luck. Still completely blank. I've tried the same thing with a dblistbox as well. Uhm , is your DbGrid/dblistbox linked to a datasource , and the datasource to your Query ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Form always 400 x 300 initially
I'm guessing then that setting the width and height OnCreate won't work because that's where they're overridden; a very messy solution would be to set a TTimer to 5ms or so and then change the width. On Thu, Dec 17, 2009 at 1:40 PM, Phil Hess macp...@fastermac.net wrote: In my TCustomForm-based design control, I would like it to have an initial size of my choosing rather than the default 400 wide, 300 high. It appears as though these values are hardwired in the FormEditor1.CreateComponent call in TMainIDE.CreateNewForm, ignoring anything that I set Width or Height to. All other properties that I set in my constructor are honored, just not these. Any workaround for this? Thanks. -Phil -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Recognize a disk
I don't know that there's any direct way of finding out the last drive to be added, but if you monitor the drives every 5 seconds or so you can determine which is the newest one to be added (but that won't necessarily mean it's your windows mobile, so I hope you have a way of checking!) 2009/12/16 Arí Ricardo Ody ar...@gmx.com Hi! Suppose you connect a Handheld running windows mobile via USB cable to a windows machine. Is there a way that I can recognize the new disk added to the system, e.g., determine what of the disks existing in the windows machine is the disk added when I connected the handheld? Greetings from Sao Paulo - Brazil Ricardo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Multithreads for GUI use.
I was using synchronize, but as I figured out today, I was using it incorrectly. With a bit of fiddling today I managed to get it working; both with the progress bar updating and the GUI not hanging. Thanks. On Sun, Nov 29, 2009 at 4:32 AM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sat, 28 Nov 2009 22:05:26 -0500 Matt Shaffer dazappa.m...@gmail.com wrote: I was reading up on threads in FPC, and the wiki even mentioned them being used to prevent the GUI from locking up (which is what I wanted to do). I quickly stitched together the multithreaded example with my app (which is a simple image conversion program using fpimage), but the gui still hung when converting images, preventing the window from being moved and the progress bar from updating. I even made a thread whose sole purpose was to do Application.ProcessMessages every millisecond to ensure the darn thing would respond -- no luck. The main thread must be the GUI thread. If the main thread is busy, you can use Application.ProcessMessages. Other threads should never use Application.ProcessMessages directly. If other threads should effect some gui elements (read/write properties), use Synchronize. http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial So my question is: Does anyone have an actual example of preventing a GUI (currently on Windows) from locking up when executing a large chunk of code? Or does anyone feel like wading through my frankenstein code? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Multithreads for GUI use.
I was reading up on threads in FPC, and the wiki even mentioned them being used to prevent the GUI from locking up (which is what I wanted to do). I quickly stitched together the multithreaded example with my app (which is a simple image conversion program using fpimage), but the gui still hung when converting images, preventing the window from being moved and the progress bar from updating. I even made a thread whose sole purpose was to do Application.ProcessMessages every millisecond to ensure the darn thing would respond -- no luck. So my question is: Does anyone have an actual example of preventing a GUI (currently on Windows) from locking up when executing a large chunk of code? Or does anyone feel like wading through my frankenstein code? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Loading file into TImageList does not properly scale
Hello, the code below is how I load and convert PNG files into BMPs, add them to a TImageList, and then add them to a TListView. The problem I'm having is that I cannot get the little bugger to scale to 96x96; other than that the code works. I would imagine that setting the timage's stretch property to true ought to scale the image to 96x96, but that was not the case. lsTextures: TListView; imgTextures: TImageList; procedure TForm1.MenuItem15Click(Sender: TObject); var bmp: TBitmap; img: TImage; itm: TListItem; begin bmp := TBitmap.Create; img := TImage.Create(nil); try lsTextures.BeginUpdate; img.Stretch := true; img.Width := 96; img.Height := 96; bmp.Width := 96; bmp.Height := 96; img.Picture.LoadFromFile('screen.png'); itm := lsTextures.Items.Add; bmp.Assign(img.Picture.Bitmap); imgTextures.AddMasked(bmp,clFuchsia); itm.Caption := 'New Image'; itm.ImageIndex := imgTextures.Count-1; finally bmp.Free; lsTextures.EndUpdate; end; end; -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Loading file into TImageList does not properly scale
The only rectangle I found when drawing to a canvas was DrawFocusRect(Rect: TRect); Nothing to do with drawing images, I'm afraid. On Sun, Nov 22, 2009 at 5:41 PM, Marc Weustink m...@dommelstein.net wrote: Matt Shaffer wrote: Hello, the code below is how I load and convert PNG files into BMPs, add them to a TImageList, and then add them to a TListView. The problem I'm having is that I cannot get the little bugger to scale to 96x96; other than that the code works. I would imagine that setting the timage's stretch property to true ought to scale the image to 96x96, but that was not the case. TImage does not modify the original image, it only renders itself at the given size. IIRC you can pass a drawing rectange when drawing a graphic on a canvas. Marc -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Loading file into TImageList does not properly scale
as a relative newbie here (but not to coding in PASCAL), why do you have to convert to BMP? does the existing library (ie: LCL and FPC) code not accept PNG, GIF and similar for these graphic purposes? I could not find a way programatically to load an image into a TImageList from a file. The only function I found was: TImageList.AddMasked(TBitmap,TColor); so I had to convert it to a tbitmap first. The problem I'm having is that I cannot get the little bugger to scale to 96x96; other than that the code works. I would imagine that setting the timage's stretch property to true ought to scale the image to 96x96, but that was not the case. sounds like it looks at the image properties for smaller scale with which to increase via the stretch routine... unlike other stretch routines which also reduce in size to the chosen params... I'm not sure. All I know is it didn't function as I would have expected. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Process Detection
I don't know of one directly in FPC, but on Windows, you could use the Windows API, and on linux, you could pipe the output from programs like top, probably. On Sat, Nov 21, 2009 at 7:29 PM, Terry A. Haimann te...@haimannonline.comwrote: Is there a function or procedure in Free Pascal/Lazarus thhat can detect or list running applications. I prefer it to be as os nutral as possible. I just want to see if an application is running and if it isn't to start it automatically. Thx, Terry -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Multiple installations
I've always installed Lazarus in the root of the drive, but my projects definitely have spaces in the paths... I have some in C:\user\matt\my docs\some awesome project name\ for example, and it compiles fine. Believe that compiled fine even at 9.22/24 too. On Tue, Nov 17, 2009 at 5:37 PM, Martin laza...@mfriebe.de wrote: waldo kitty wrote: Martin wrote: And last not least: - Never mind where you installed Lazarus AND fpc = don't copy or move the folder later. All your config has this folder (including a file called fpc.cfg, in the fpc directory) - Try to avoid spaces and special chars in the path to lazarus and your project. (There had been issues, some may be fixed, but I do not know) so in other words, do not try to install Laz/fpc package to Program Files or My Programs or such :? I am not sure if 0.9.28 works with that. It may be fixed, it may not. 0.9.26 doesn't work, and also any projects in your user foled (which likely contains spaces) will have issues (even if lazarus is in c:\lazarus\) IIRC The problem is/was something like winres (a resource compiler, which is afaik from the mingw package.) winres does/didn't take spaces well. This could mean the issue will only be fixed, if it is fixed in the mingw project. Martin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Multiple installations
First off, something went messy with my 9.28 install (On Windows); it complained componenttreeview.pas couldn't be found when I tried recompiling the IDE, when it was right in the unit paths directory... so I thought I'd just install 9.28.2, to a different directory. The problem is that this new install seemed to have migrated everything from the old install; that or it's still trying to recompile the old IDE, as it also complained about the same file. I am currently too lazy to try to wipe every trace of lazarus off this machine so I can do a fresh install, unfortunately. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Linux and Threads
Good stuff! It's compiled and running happily now. On Sun, Oct 25, 2009 at 2:29 AM, Funky Beast funkybe...@pacific.net.sgwrote: Matt Shaffer wrote: I'm really not quite sure what the problem is. Here's a quick rundown: 1. I'm running Ubuntu 9.04 2. Lazarus .9.26 3. Using Andorra 2D To be honest, I'm not sure if this is an andorra 2d specific problem (Andorra is an openGL engine for FPC if you didn't know), but as it works flawlessly under Windows and do to my observation below, I thought it might not be a problem with Andorra. The error I'm getting is Run time Error 232 SYSTEM_NOTHREADERROR. As threading sounds more like a FPC/Lazarus issue and not specific to andorra, I thought I'd try my luck here. Is there a unit I have to include to use threading? First thing that came to my mind was cthreads as I've seen that used before, but including that file only created a different error (I'm assuming, because cthreads is unix and unix != linux?) Section of code where it has a problem: constructor TAdParticleCalculationThread.Create(AParticleList: TAdParticleList; AEffectSize: integer); begin inherited Create(false); // Compiler auto highlights this line, for some reason FParticleList := AParticleList; FParticleClass := nil; ResizeData(AEffectSize); FStartedCalculation := true; end; I'd love to actually be able to create some apps for linux ;) Game development seems especially hard, however. (PS: Nice job on .9.28 developers! Haven't had a chance (and don't want to risk) upgrading to the latest lazarus yet) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Hi, Maybe you could read up here: http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Units_needed_for_a_multi-threaded_application HTH, Funky Beast -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Linux and Threads
I'm really not quite sure what the problem is. Here's a quick rundown: 1. I'm running Ubuntu 9.04 2. Lazarus .9.26 3. Using Andorra 2D To be honest, I'm not sure if this is an andorra 2d specific problem (Andorra is an openGL engine for FPC if you didn't know), but as it works flawlessly under Windows and do to my observation below, I thought it might not be a problem with Andorra. The error I'm getting is Run time Error 232 SYSTEM_NOTHREADERROR. As threading sounds more like a FPC/Lazarus issue and not specific to andorra, I thought I'd try my luck here. Is there a unit I have to include to use threading? First thing that came to my mind was cthreads as I've seen that used before, but including that file only created a different error (I'm assuming, because cthreads is unix and unix != linux?) Section of code where it has a problem: constructor TAdParticleCalculationThread.Create(AParticleList: TAdParticleList; AEffectSize: integer); begin inherited Create(false); // Compiler auto highlights this line, for some reason FParticleList := AParticleList; FParticleClass := nil; ResizeData(AEffectSize); FStartedCalculation := true; end; I'd love to actually be able to create some apps for linux ;) Game development seems especially hard, however. (PS: Nice job on .9.28 developers! Haven't had a chance (and don't want to risk) upgrading to the latest lazarus yet) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] DBGrid.OnDrawColumnCell
No, I must have missed that email altogether. Could you forward me the message if possible? (dazappa.matt @ gmail.com) As I cannot find it in my inbox, on mailarchive, or on the FPC mail archives.. If the email is on the web and I have missed it, I would like to know. On Thu, Sep 17, 2009 at 9:12 AM, Vincent Snijders vsnijd...@vodafonevast.nl wrote: matt shaffer schreef: I thought I'd just throw this out there: I'm still having issues with CPU usage and my customized grid. I thought I'd just throw this out: Did you follow Jesus's last advice to which you did not respond? If using OnPrepareCanvas event, try to use Canvas properties instead of grids properties ... Read further in the original mail. Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LibC
Well I'm basically looking for a 3D library that has Model loading (Blender does a good job of exporting almost anything, so long as the library does not have its own format I should be good) Texturing (Cannot get this to work with GLScene) Real time model transforming (For simple animated waves + models) Lighting effects (Shadows, colored lights) Particles OpenGL for hardware acceleration Demo programs, because I cannot learn anything without exploring first. I just cannot find many resources regarding cross platform 3D graphics with FPC; Only thing I found was GLScene and it was a big let down.. The cast II engine looked good but it does not yet support openGL so no cross platform compatibility is really there yet. Also I'm unsure of whether or not dropping an openGL component on the form would have solved my problems (I imagine it might have, but I forgot Lazarus had one), but the wiki article I read on ld -l seemed to imply that installing various (development) libraries was necessary, and after poking around the internet to find out which libraries I should install I got the error messages to go away. I'm not one of those people who needs a visible component, so long as the library contains demo apps compiles easily and happily I should be good. On Tue, Sep 8, 2009 at 3:48 PM, Reimar Grabowski reimg...@web.de wrote: On Mon, 7 Sep 2009 10:01:03 -0400 matt shaffer dazappa.m...@gmail.com wrote: On a somewhat related note, I'm done trying to develop anything interesting on Linux. After installing ~10 extra random dependencies to build OGL apps, everything's still being a pain. There's basically no libraries to make things 3D, so I was trying out GLScene. I don't know anything about GLScene, but I am doing 3D stuff on Linux for years and don't have any problems. I don't know what your random packages are but I only need Lazarus and a working 3D driver and that's it. Lazarus comes with a cross platform OpenGL component in $LazarusDir/components/opengl. Drop it on a form and you are good to go. If you tell me what you are trying to achieve I may be able to assist. R. -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] LibC
Unit libc. AFAIK no, Ubuntu doesn't distribute FPC over tons of packages, but I just installed everything (FPC/Laz + sources) from one package). On a somewhat related note, I'm done trying to develop anything interesting on Linux. After installing ~10 extra random dependencies to build OGL apps, everything's still being a pain. There's basically no libraries to make things 3D, so I was trying out GLScene. First, the actual package itself + demos have sources that are nearly compatible with Linux, but require just a tiny bit of editing (GLLCLViewer to GLViewer, for instance in the uses claus). Found out the hard way that unless the app is built as GTK1, double buffering seems to fail. And after installing the GLScene package, every app that uses glscene wants to rebuild all of glscene before it compiles the stupid demos! And there are a lot of demos that are broken even though they're supposed to work... *Throws in towel*. If anything, I'll stick to 2d on Linux using my favorite little buddy, Andorra 2D. On Mon, Sep 7, 2009 at 2:25 AM, Marco van de Voort mar...@stack.nl wrote: On Sun, Sep 06, 2009 at 10:48:13PM -0400, matt shaffer wrote: I've come across a few projects now that require libc on Linux. I'm using the latest Ubuntu (9.04) + Lazarus (9.26-4), and it says it can't find libc. Library libc or unit libc? Is Ubuntu one of those distributions that fragment FPC over umpteen packages? If so, see if there is a separate one for the libc unit. (which is a Kylix legacy package) Note that it would be wisest to get rid of libc alltogether, because it is linux/x86 only. If you are using 64-bit Ubuntu, that might even be the cause of your problem. More info: http://wiki.freepascal.org/libc_unit After doing some basic research, it looks like this would be dependent upon the compiler? How can I download and setup libc so Lazarus will compile apps that use it happily? I cannot find a lot of information on this Install the deb, if Lazarus uses a wildcard in its FPC searchpath, the rest will go automatically. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus won't rebuild (Linux)
9.26-4 fails to rebuild itself when I attempt to add a package. /usr/lib/lazarus/ide/lazarus.pp(122,1) Error: Error while linking; the error is at the end of line, typical of linking errors. Only times I ever get linking errors is when I try to recompile my app when it's running, so I was wondering if it might be feasable to rebuild it from a terminal? I wouldn't even know where to start. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Linux and Strip
Is there a strip program for Linux? Well I'm using Ubuntu and installed 9.26-4 from the repositories, and having no idea where everything installed to I just did a search of my entire drive for strip. The only program found was in a non-FPC specific directory and using it had no effect on the size of my app. The app is compiled for GTK2, and is smaller than the default windows binary (11mb vs 2.7mb), but the Windows binary can be stripped to 1.3mb. While size isn't everything, I'm just wondering if ~3mb for a very simplistic, 1 form app seems right on Linux (in regards to Lazarus apps) as I've never dealt with developing apps for it before. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Linux and Strip
Yeah I have /usr/bin/strip; I thought that the strip was Lazarus / FPC - specific. Guess not. Anyway, running that on my app leaves it at 2.7mb still so I guess that's as small as it's going to get. Thanks for the info On Sat, Sep 5, 2009 at 10:01 AM, Grizzly(Francis Smit) griz...@smit.id.auwrote: Grizzly(Francis Smit) wrote: matt shaffer wrote: Is there a strip program for Linux? Well I'm using Ubuntu and installed 9.26-4 from the repositories, and having no idea where everything installed to I just did a search of my entire drive for strip. The only program found was in a non-FPC specific directory and using it had no effect on the size of my app. The app is compiled for GTK2, and is smaller than the default windows binary (11mb vs 2.7mb), but the Windows binary can be stripped to 1.3mb. While size isn't everything, I'm just wondering if ~3mb for a very simplistic, 1 form app seems right on Linux (in regards to Lazarus apps) as I've never dealt with developing apps for it before. it should be /usr/bin/strip but you probably haven't got it installed so install it first u need to install binutils to get strip -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] TStringGrid Cell drawing
Well, I've managed to custom draw cells, but it's a bit rough. Delphi seems to have a TStringGrid.drawcell function, but I couldn't find an equivalent in FPC/Lazarus. Is there one? Or will I be doomed to drawing ugly stringgrids? (Currently just changing font color + background color, following this: http://www.daniweb.com/forums/thread125428.html# ) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TStringGrid Cell drawing
Tomasz Więckowski wrote: 2009/8/23 Matt Shaffer dazappa.m...@gmail.com: Well, I've managed to custom draw cells, but it's a bit rough. Delphi seems to have a TStringGrid.drawcell function, but I couldn't find an equivalent in FPC/Lazarus. Is there one? Or will I be doomed to drawing ugly stringgrids? (Currently just changing font color + background color, following this: http://www.daniweb.com/forums/thread125428.html# ) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Did you read grids reference ? - http://wiki.lazarus.freepascal.org/Grids_Reference_Page StringGrid Missed that page, thanks. Quite a bit different from Delphi, but everything's drawing to my liking now. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] TStringGrid Cell drawing
Tomasz Więckowski wrote: 2009/8/23 Matt Shaffer dazappa.m...@gmail.com: Well, I've managed to custom draw cells, but it's a bit rough. Delphi seems to have a TStringGrid.drawcell function, but I couldn't find an equivalent in FPC/Lazarus. Is there one? Or will I be doomed to drawing ugly stringgrids? (Currently just changing font color + background color, following this: http://www.daniweb.com/forums/thread125428.html# ) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Did you read grids reference ? - http://wiki.lazarus.freepascal.org/Grids_Reference_Page StringGrid I'd just like to say one thing about my last message; although now I have everything drawing happily, it's very CPU intensive :S. Source: http://pastebin.com/m78f85f6c I'm thinking it's because it's running all of that code each time it repaints? Is there a way to, I don't know, render the grid to prevent so many calculations from being done? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] FPImage docs?
I don't see how putting it in the footer would be offensive, I like the idea myself. On Mon, Jun 29, 2009 at 2:08 PM, Vincent Snijders vsnijd...@vodafonevast.nl wrote: matt shaffer schreef: Don't forget to vote for lazarus on sourceforge ;) Maybe the link to the vote should be part of the list footer, or would that be too offensive? Vincent -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Graphics unit and DLLs
So I've been tinkering with DLLs and Lazarus.. and I came across a problem. It won't let me import graphics. If I do uses graphics it says it can't find it. If I include the LCL in the compiler options, it gets an error with other pascal files. If I add graphics as the only compiler option, it'll white 'cause it's not a directory. All I want is my friend, tcanvas :( ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Graphics unit and DLLs
Compiler options as in:Project - Compiler options . But on second glance, it doesn't appear that that would help anything. Well what you suggested (Project inspector dependencies) seemed to work. It recognized the graphics unit and let me have a tcanvas variable, and the quick compile worked fine, but the build failed with: project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomImageList project1.lpr(201,1) Error: Undefined symbol: WSRegisterMenuItem project1.lpr(201,1) Error: Undefined symbol: WSRegisterMenu project1.lpr(201,1) Error: Undefined symbol: WSRegisterMainMenu project1.lpr(201,1) Error: Undefined symbol: WSRegisterPopupMenu project1.lpr(201,1) Error: Undefined symbol: WSRegisterDragImageList project1.lpr(201,1) Error: Undefined symbol: WSRegisterControl project1.lpr(201,1) Error: Undefined symbol: WSRegisterWinControl project1.lpr(201,1) Error: Undefined symbol: WSRegisterGraphicControl project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomControl project1.lpr(201,1) Error: Undefined symbol: WSRegisterScrollingWinControl project1.lpr(201,1) Error: Undefined symbol: WSRegisterScrollBox project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomFrame project1.lpr(201,1) Error: Undefined symbol: WSRegisterCustomForm project1.lpr(201,1) Error: Undefined symbol: WSRegisterHintWindow project1.lpr(201,1) Fatal: There were 15 errors compiling module, stopping Line 201 is the end of the file end. My memory just caught up with me actually: Haven't others discussed how the LCL doesn't work in DLLs? I'm sure they have, and that's what I seem to be trying to do (even if it's just one lowly tcanvas), so I guess it's doomed for failure. On Tue, May 26, 2009 at 12:40 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Tue, 26 May 2009 12:14:06 -0400 matt shaffer dazappa.m...@gmail.com wrote: So I've been tinkering with DLLs and Lazarus.. and I came across a problem. It won't let me import graphics. If I do uses graphics it says it can't find it. If I include the LCL in the compiler options, it gets an error with other pascal files. If I add graphics as the only compiler option, it'll white 'cause it's not a directory. All I want is my friend, tcanvas :( I don't know what you mean with 'include the LCL in the compiler options'. Normally you add the LCL via the project inspector to your dependencies. Mattias ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Can't quite get GLScene to install
Well I got it to compile, but now it complains about the missing file componenttreeview.pas. I'm using 9.23 + latest version of glscene (1.002). Anyone know a fix for this? ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus