Re: [Lazarus] Lazarus program files very big, why?
Bo Berglund wrote: I installed Lazarus on my Pi2B (see other therad) and am now using fpc 3.1.1 and Lazarus 1.5. I also installed tightvnc for GUI access via VNC from my Win7 PC. My first test program on the Pi2B is a GUI application with 2 edit boxes and 2 buttons to test MD5 calculations. One button calculates MD5 of a text in one edit box and displays on the other. The other button calculates the MD5 of the Application.Exename (its own executable file) and displays the executable file name in one edit box and MD5 in the other. Total lines of code in the two events are 7. Amazingly this little program is 24.5 Mbytes as shown: -rwxr-xr-x 1 root root 24493881 Oct 3 21:35 project1 So my questions are: 1) Why is Lazarus creating such an enormously big executable file? 2) Why is it placing the project files in /root/tmp? Why not in /home/pi/something_or_other? Is this normal or have I installed Lazarus in some strange way that bypasses the user Pi? Remove debug into at the project level, or run strip on the binary. note the install program's -s option, but that usually assumes that it can call strip to do the work which might not be the case on a non-development machine. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] JCF bug
Hi, Just saw this problem that if you miss character it will cause Lazarus crash : > unit Unit1; > > {$mode objfpc}{$H+} > > interface > > uses Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs; > > type TForm1 = class(TForm) private { private declarations } > public { public declarations } end; > > type TgardQuality = (gLow, gMedium, gHigh, gVeryHigh); > > const TgardQualityNames: array[TgardQuality] of string = > ('low,//<- > - if you miss ' it will crash 'medium', 'high', > 'veryhigh' ); > > var Form1: TForm1; > > implementation > > {$R *.lfm} > > end. > > Please test it if you have this problem too. Regards, Ara -- http://www.fastmail.com - Same, same, but different... -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] JCF bug
On 04.10.2015 16:32, Aradeonas wrote: Hi, Just saw this problem that if you miss character it will cause Lazarus crash : Actually, yes. I get an exception. But if you hit OK, Lazarus doesn't crash. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] JCF bug
Sometimes it will crash,not all time. Regards, Ara -- http://www.fastmail.com - Email service worth paying for. Try it for free -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] JCF bug
On 04.10.2015 17:44, Aradeonas wrote: Sometimes it will crash,not all time. Yes, it is a bug. Furthermore it causes a lot of memory leaks. Memory is leaked also if there are other (handled) syntax errors in the source. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] JCF bug
On 04.10.2015 16:32, Aradeonas wrote: Hi, Just saw this problem that if you miss character it will cause Lazarus crash : Not for me! Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus program files very big, why?
> 1) Why is Lazarus creating such an enormously big executable file? Always read FAQ before asking: http://wiki.lazarus.freepascal.org/Lazarus_Faq#Why_are_the_generated_binaries_so_big.3F > 2) Why is it placing the project files in /root/tmp? Why not in /home/pi/something_or_other? The setting is in Tools->Options->Environments->Files->Directory for building test projects, which defaults to tmp folder of your currently logged in user account. Other than FAQ, reading other existing documentation is essential: http://wiki.lazarus.freepascal.org/IDE_Window:_Environment_Options#Files -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-program-files-very-big-why-tp4044273p4044281.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus program files very big, why?
On Sun, 04 Oct 2015 00:06:00 +0200 Bo Berglundwrote: >[...] > 2) Why is it placing the project files in /root/tmp? > Why not in /home/pi/something_or_other? The default is ~/tmp. If you start Lazarus as root and root's home is /root then this is /root/tmp. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus