Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Paul Ishenin
Bogusław Brandys wrote: > There is another question, which is debug info.I think it's precious to > have correct unit/line information in case of application crash in > customer computer. That means huge above 33MB applications. > I would be glad if debug info could be dumped into separate file A

Re: [Lazarus] read text file in lazarus

2009-04-03 Thread Graeme Geldenhuys
2009/4/3 Dians : > is there any documentation or link, which i be able to read to use all > feature of lazarus/FPC like Lazarus/FPC from scracth ,from instalation (in > linux) until to use of feature of lazarus/FPC. Simply press F1 in Lazarus and it will probably find you some help. eg: http://w

Re: [Lazarus] read text file in lazarus

2009-04-03 Thread Dians
is there any documentation or link, which i be able to read to use all feature of lazarus/FPC like Lazarus/FPC from scracth ,from instalation (in linux) until to use of feature of lazarus/FPC. 2009/4/3 Graeme Geldenhuys > 2009/4/3 Dians : > > interesting but i'm still newbie.. how do i read tex

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Graeme Geldenhuys
On Fri, Apr 3, 2009 at 5:12 PM, waldo kitty wrote: > > i've done that before, too... sudo to root and then go manually edit the > list... See the flaw in your logic??? I lost sudo access so while logged in I couldn't execute anything that required root access, including the sudo or su command.

Re: [Lazarus] TProcess

2009-04-03 Thread Alex du Plessis
Christian Iversen wrote: > Alex du Plessis wrote: > >> I am trying to run pg_dump on a PostgreSQL database. On the command line >> one can specify the user name but not the password. Once the process is >> running pg_dump requests the password inside the console window. there >> is no comma

Re: [Lazarus] TProcess

2009-04-03 Thread Christian Iversen
Alex du Plessis wrote: > I am trying to run pg_dump on a PostgreSQL database. On the command line > one can specify the user name but not the password. Once the process is > running pg_dump requests the password inside the console window. there > is no commandline option to pass the password t

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread waldo kitty
Graeme Geldenhuys wrote: > > Anybody how I can restore my 'graemeg' user on the Ubuntu Linux server > to be part of the 'sudoers' list again. I can execute anything via > 'sudo' and by default the 'root' account is disable in Ubuntu. Maybe > rebooting into single user mode would give me root acc

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Bogusław Brandys
Henry Vermaak wrote: > 2009/4/3 Graeme Geldenhuys : >> On Fri, Apr 3, 2009 at 2:18 PM, Paul Ishenin wrote: >>> I think it will not grow to more than 2MB even after 2 years. Moreover I >>> suspect size can go down when we start using native resources. >> Well Paul, it is already way above 2MB! Usi

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: > And now it comes to another point. If you compare the LCL to other > cross-platform GUI libraries, like Qt, it's actually much smaller, but > with the down side that we still can't make the LCL into DLLs, which > can be reused in multiple applications. IMO u

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Marco van de Voort
On Fri, Apr 03, 2009 at 02:41:29PM +0200, Mattias G?rtner wrote: > > > > Note that unneeded parts in an .exe might also be a LCL architectural > > problem, not necessarily per se smartlinking. Often if units are referenced, > > init code is run that touches a lot of stuff. > > Yes. There are two L

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Henry Vermaak
2009/4/3 Graeme Geldenhuys : > On Fri, Apr 3, 2009 at 2:18 PM, Paul Ishenin wrote: >> >> I think it will not grow to more than 2MB even after 2 years. Moreover I >> suspect size can go down when we start using native resources. > > Well Paul, it is already way above 2MB!  Using Lazarus (trunk) r19

Re: [Lazarus] TProcess

2009-04-03 Thread Bart
Can pgdump read from stdin? If so, you might be able to use a pipe for stdin to supply the password? Just a thought, never actually tried something like that. Bart ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/

Re: [Lazarus] can't compile GTK2 program with lazarus 0.9.26-2

2009-04-03 Thread Bart
On 4/3/09, 闫程远 wrote: > hi all!i've upgraded my lazarus to 0.9.26-2 from the official deb > source.when i compile a program with GTK2,lazarus warns me that it cannot > find "gtk2int.pas" used by interface. > my fpc version is 2.2.2-8,also installed from the official deb source.can > any body help

Re: [Lazarus] read text file in lazarus

2009-04-03 Thread Graeme Geldenhuys
2009/4/3 Dians : > interesting but i'm still newbie.. how do i read text file in lazarus ,  i > have been looking for documentation but i have not still get it yet, i have You could also use the RTL as follows: var sl: TStringList; begin sl := TStringList.Create; sl.LoadFromFile('/tmp/rea

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Paul Ishenin
Graeme Geldenhuys wrote: > Well Paul, it is already way above 2MB! Using Lazarus (trunk) r19175. > > LCL-fpGUI = 2,530,336 bytes > LCL-GTK1 = 2,700,452 bytes > LCL-GTK2 = 2,793,732 bytes > It is on linux. On windows with strip and no icon it is only 1,5MB. The difference here because of using

Re: [Lazarus] read text file in lazarus

2009-04-03 Thread Christian Iversen
Dians wrote: > hi all, i have been watch a for a long time the growth up of lazarus , > i'm interesting but i'm still newbie.. how do i read text file in > lazarus , i have been looking for documentation but i have not still > get it yet, i have ever read like this : > > lbIndexOpen := False;

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Paul Ishenin
Mattias Gärtner wrote: > Zitat von Marco van de Voort : > > >> On Thu, Apr 02, 2009 at 08:25:16PM -0300, Felipe Monteiro de Carvalho wrote: >> >>> The application is not empty. If you check the symbols inside the >>> application you will see that almost all LCL components are added, and >>>

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Vincent Snijders
Graeme Geldenhuys schreef: > On Fri, Apr 3, 2009 at 2:18 PM, Paul Ishenin wrote: >> I think it will not grow to more than 2MB even after 2 years. Moreover I >> suspect size can go down when we start using native resources. > > Well Paul, it is already way above 2MB! Using Lazarus (trunk) r19175.

[Lazarus] read text file in lazarus

2009-04-03 Thread Dians
hi all, i have been watch a for a long time the growth up of lazarus , i'm interesting but i'm still newbie.. how do i read text file in lazarus , i have been looking for documentation but i have not still get it yet, i have ever read like this : lbIndexOpen := False; while not lbIndexOpen do

Re: [Lazarus] TProcess

2009-04-03 Thread Alex du Plessis
I am trying to run pg_dump on a PostgreSQL database. On the command line one can specify the user name but not the password. Once the process is running pg_dump requests the password inside the console window. there is no commandline option to pass the password to the program. I can get the p

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Graeme Geldenhuys
2009/4/3 Felipe Monteiro de Carvalho : > would be happier if the executable was 100kb but depended on 24MB of > DLLs (like the Qt4 installer for Mac OS X), which is obviously > contradictory if you know about the technology. I must agree here. I would much rather prefer a stand-alone application t

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Graeme Geldenhuys
On Fri, Apr 3, 2009 at 2:18 PM, Paul Ishenin wrote: > > I think it will not grow to more than 2MB even after 2 years. Moreover I > suspect size can go down when we start using native resources. Well Paul, it is already way above 2MB! Using Lazarus (trunk) r19175. LCL-fpGUI = 2,530,336 bytes LCL

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Mattias Gärtner
Zitat von Marco van de Voort : > On Thu, Apr 02, 2009 at 08:25:16PM -0300, Felipe Monteiro de Carvalho wrote: > > The application is not empty. If you check the symbols inside the > > application you will see that almost all LCL components are added, and > > PNG support, XML library, etc, etc, etc

Re: [Lazarus] TProcess

2009-04-03 Thread 闫程远
i think when you execute the process you should prompt for password and check if it's legal. i mean there's a dialog for the user to enter the password. 2009/4/3 ik > How do you execute the TProcess ? > How do you pass the password ? > > Ido > > > > On Fri, Apr 3, 2009 at 2:05 PM, Alex du Plessi

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Felipe Monteiro de Carvalho
2009/4/3 Игорь Ткаченко : > I'm developing system utilities (http://safelyremove.com/, > http://lockhunter.com/) and I know from feedback that users of such > system tools expect to see small executables rather than big > executables.  If a system tool like ours have size larger than 2 MBs (it > ca

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Paul Ishenin
Игорь Ткаченко пишет: > Hello Felipe, > > Yes, I know that "size isn't a big deal in a real world", but this is > correct just for some kind of GUI applications. From version to version > LCL application executables grows in size. What size of empty > applications will produce Lazarus in 2 years

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Marco van de Voort
On Thu, Apr 02, 2009 at 08:25:16PM -0300, Felipe Monteiro de Carvalho wrote: > The application is not empty. If you check the symbols inside the > application you will see that almost all LCL components are added, and > PNG support, XML library, etc, etc, etc, even if not used. The > smartlinking i

Re: [Lazarus] TProcess

2009-04-03 Thread ik
How do you execute the TProcess ? How do you pass the password ? Ido On Fri, Apr 3, 2009 at 2:05 PM, Alex du Plessis wrote: > I am trying to run a program which requires a password inside > TProcess. However, I cannot seem to pass this password from my Lazarus > App to the process once it is

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Marco van de Voort
On Thu, Apr 02, 2009 at 05:03:19PM -0500, H?ctor Fiandor Rosario wrote: > I had the same problems, but I remedy following this rules: > > I prepare a .bat with three sentences as follow: > > strip.exe LoadExcelFile.exe > upx.exe LoadExcelFile.exe > LoadExcelFile.exe If the wiki article talks abo

Re: [Lazarus] Building Lazarus SVN on Mac OS X 10.4 intel

2009-04-03 Thread Vincent Snijders
Roland Turcan schreef: > Hello all, > > I cannot believe, that nobody knows how to build up Lazarus at MacOS X > 10.4. I cannot believe that either. Maybe you are the only one having these problems. For what it is worth the Lazarus snapshots are build on Mac OS X 10.4 computers. make bigide i

[Lazarus] can't compile GTK2 program with lazarus 0.9.26-2

2009-04-03 Thread 闫程远
hi all!i've upgraded my lazarus to 0.9.26-2 from the official deb source.when i compile a program with GTK2,lazarus warns me that it cannot find "gtk2int.pas" used by interface. my fpc version is 2.2.2-8,also installed from the official deb source.can any body help me? regards, Yan Chengyuan. _

[Lazarus] TProcess

2009-04-03 Thread Alex du Plessis
I am trying to run a program which requires a password inside TProcess. However, I cannot seem to pass this password from my Lazarus App to the process once it is running. Does anybody know how to go about it? Thanx Alex du Plessis ___ Lazarus mai

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Giuseppe Luigi Punzi
Cool, Cool, I will try to do it at home this afternoon (I don't have MAC at my office), and I hope this is the solution. Cheers. P.D.: Still asking to me why I can open employee but not my databases. Graeme Geldenhuys escribió: > On Thu, Apr 2, 2009 at 4:08 PM, Giuseppe Luigi Punzi > wrote: >

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Alexey S. Smirnov
Marc Weustink пишет: Alexey S. Smirnov wrote: SmartLink problem is quite simple. It seems that all units, mentioned in "Interface->Uses" section will be fully linked. Only units mentioned in "Implementation->Uses" section can be checked during SmartLink. So, to enhance linking

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Graeme Geldenhuys
On Fri, Apr 3, 2009 at 12:45 PM, Graeme Geldenhuys wrote: > To add a user (for example, “sparky”) to the firebird group, the root > user needs to > enter: >   $ usermod -G firebird sparky Arg sh*t! Remember to add the -a parameter! Otherwise you get removed from all other groups not specifie

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Graeme Geldenhuys
On Thu, Apr 2, 2009 at 4:08 PM, Giuseppe Luigi Punzi wrote: > > Now, I can't open any database from Lazarus/SQLdb nor Flamerobin, > getting an error about 'Permission Denied'. = Quoted from excellent The Firebird Book === Linux/UNIX Users and Groups ---

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Samuel Herzog
Sorry for my question, but do all those statements e.g. DebugLN('WARNING: obsolete call to RecreateWnd for %s', [AWinControl.ClassName]); make the exe-file bigger ? There are thousends of them. Von: Marc Weustink An: General mailing list Gesendet: Freitag, d

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Marc Weustink
Alexey S. Smirnov wrote: > Graeme Geldenhuys пишет: >> On Fri, Apr 3, 2009 at 3:02 AM, Paul Ishenin wrote: >> >>> Felipe Monteiro de Carvalho wrote: >>> And this has been debated 1 million times before, please search in the mailling list archives. >>> This also means

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Игорь Ткаченко
Héctor, Thank you for your advice! However using upx.exe just hides but not resolves the problem. Moreover AFAIK upx still doesn't support native Windows 64 code. And the final thing at using UPX causes some troubles. You may read about it here: http://wiki.lazarus.freepascal.org/Size_Matters

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Игорь Ткаченко
Graeme, I also downloaded KOL and MCK GUI kit and I created an empty application with the size of 200 KBs (70 KB without icon). However KOL have a very-very minimalistic approach. They even do not use Object Pascal classes and this is not object oriented library, because to manage all the obje

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Игорь Ткаченко
Hello Felipe, Yes, I know that "size isn't a big deal in a real world", but this is correct just for some kind of GUI applications. From version to version LCL application executables grows in size. What size of empty applications will produce Lazarus in 2 years? 5 MBs or 10 MBs? :) If LCL exe

Re: [Lazarus] Building Lazarus SVN on Mac OS X 10.4 intel

2009-04-03 Thread Roland Turcan
Hello all, I cannot believe, that nobody knows how to build up Lazarus at MacOS X 10.4. TRoland; <<< 2.4.2009 15:36 - Roland Turcan "k...@rotursoft.sk" >>> RT> Hello Mattias, RT> Thanks for your reply. RT> I know this document which describes how to build an application on RT> 10.5 for 10.4, b

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Alexey S. Smirnov
Graeme Geldenhuys пишет: On Fri, Apr 3, 2009 at 3:02 AM, Paul Ishenin wrote: Felipe Monteiro de Carvalho wrote: And this has been debated 1 million times before, please search in the mailling list archives. This also means that problem of big execut

Re: [Lazarus] Large program size - 1.8 MB for empty GUI project

2009-04-03 Thread Kostas Michalopoulos
> This isn't such a big deal because hello world applications are > useless, in real world applications you will need to use multiple > components, have graphics support, use xml, etc, and those are already > there, so your EXE size won't grow when you need them. I had many times the need to make

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Graeme Geldenhuys
On Fri, Apr 3, 2009 at 9:30 AM, Giuseppe Luigi Punzi wrote: > > I don't think is necessary to change all this permissions to all folders > to access. Is ridiculous. Actually I think you are right. I think the only important directory is the last one that the database actually lives in. > I alway

Re: [Lazarus] Permission denied error with Firebird SS on OSX

2009-04-03 Thread Giuseppe Luigi Punzi
Hi Graeme, Graeme Geldenhuys escribió: > 2009/4/2 Giuseppe Luigi Punzi Ruiz : > >> galilea:testfb glpunzi$ ls -all >> /Library/Frameworks/Firebird.framework/Versions/Current/Resources/examples/empbuild/ >> > > What happens if you move your database into this "examples" directory? > Can you