Re: [Lazarus] Getting project type
Seems not, I guess you'll have to use your custom defines. Unused units will be left out automatically if you use smartlinking, with prerequisites that the unit must not have any initialization/finalization section. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Getting-project-type-tp4035844p4035848.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] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
> Anyway I now see, that there is an invalid identifier: " NiceChartD7". I added check. Please test. Tested and working. So, what the code would do now if such an invalid identifier occurs? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035843.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] Attn Martin, LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
Ah...my bad, my FPC wasn't built with debugging info, only Lazarus was. Perhaps that could be the problem? But GDB knows when I give "b FPC_RAISEEXCEPTION"? OK, this is weird... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035840.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] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
> Ah, you debugged startlazarus. > Please start /media/LinuxShared/lazarus/lazarus in gdb. No difference: leledumbo@LeleBuntu:/media/Sources/fpc$ gdb /media/LinuxShared/lazarus/lazarus GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /media/LinuxShared/lazarus/lazarus...done. (gdb) b FPC_RAISEEXCEPTION Breakpoint 1 at 0x8072f25 (gdb) run Starting program: /media/LinuxShared/lazarus/lazarus Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/leledumbo/.lazarus" SecondaryConfigPath="/etc/lazarus" TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted: unit1.pas [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement PackageEditor_ NiceChartD7 0 X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x66000fe [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement PackageEditor_ NiceChartD7 0 LAZARUS END - cleaning up ... [TMainIDE.Destroy] A [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END During startup program exited normally. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035835.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] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
> Please load the IDE in the debugger and set a breakpoint at FPC_RAISEEXCEPTION. Then run, reproduce the error and create a backtrace. Done, but gdb doesn't seem to catch the exception. Here's the log: (gdb) b FPC_RAISEEXCEPTION Breakpoint 1 at 0x8072a45 (gdb) run Starting program: /usr/bin/startlazarus Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. is a file TLazarusManager.Run starting /media/LinuxShared/lazarus/lazarus ... Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 14: reading configurations from ~/.fonts.conf is deprecated. TMainIDE.ParseCmdLineOptions: PrimaryConfigPath="/home/leledumbo/.lazarus" SecondaryConfigPath="/etc/lazarus" TSourceEditorSharedValues.GetMainLinkScanner not pascal highlighted: unit1.pas [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement X Error: BadWindow (invalid Window parameter) 3 Major opcode: 20 (X_GetProperty) Resource id: 0x64000eb [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement LAZARUS END - cleaning up ... [TMainIDE.Destroy] A [TMainIDE.Destroy] B -> inherited Destroy... TMainIDE [TMainIDE.Destroy] END During startup program exited normally. However, I've managed to get the exception source (line 2656 of laz2_dom) by removing try-except in the respective code block. Extending the exception message a bit, I guess I know the problem. Here's the log: [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement PackageEditor_ NiceChartD7 FXML11=0 As you can see, I have PackageEditor_NiceChartD7 in FormIdList tag. The line ending seems to be the cause. I've removed the whole FormIdList tag and everything seems well now. I have no idea now whether this should be reported as bug or not. I have no idea where that LineEnding comes from, because I never touch environmentoptions.xml before this (unless when there's a problem). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035824.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] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
After some experiments, it looks like there's a bug in handling MY environmentoptions.xml. Running the IDE from terminal shows up: [TEnvironmentOptions.Save] error writing "/home/leledumbo/.lazarus/environmentoptions.xml": EDOMError in DOMDocument.CreateElement when I change certain value. but when I rename my .lazarus to .lazarusold, the IDE creates a new .lazarus folder and when I change the same certain value, the file can be saved. Moving the new environmentoptions.xml to .lazarusold and rename it back to .lazarus shows that the IDE can save modified values. Since the permissions of both files are the same, I simply copy-paste the contents of my old environmentoptions.xml to the new one. Guess what? The error message above comes again. Here I attach the environmentoptions.xml that breaks the saving routine. Please run lazarus from terminal, try changing a value (e.g. single button on taskbar) and see the debug log. If it could reveal the same error message in your installation, I'll file a bug report. environmentoptions.xml <http://free-pascal-lazarus.989080.n3.nabble.com/file/n4035804/environmentoptions.xml> -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035804.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] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
> If Lazarus is on Linux, one problem is due to file permissions. Your .lazarus directory was somehow changed to read only or owner so you can't save env variables on it, if not, the file must be corrupt? If on Ubuntu in your home directory, you can try 'sudo chown yourusername.yourusername -R .lazarus' then launch lazarus, change to correct settings, exit then run again. Yes, I'm on linux. The file is not read only, because I can rename it normally (no sudo required) and when I start Lazarus with environmentoptions.xml renamed, after I close the IDE it creates a new environmentoptions.xml. Still, in the new file, LazarusDirectory and FPCSourceDirectory don't exist. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799p4035802.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
[Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml
I have no idea since when, but the latest I've tried is r43866. Lazarus keeps asking for FPC source directory and it can't even find its own directory. Even so, after choosing the correct values, upon restarting these are asked again. So, I inspect environmentoptions.xml and indeed these values are missing. Could anyone confirm before I file a bug report? Or link to the bugtracker if it's been reported? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/LazarusDir-and-FPCSourceDirectory-not-saved-to-environmentoptions-xml-tp4035799.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/FPC for Web Development only
> Hm... but he used Brook? One thing for sure he uses fcl-web, but no idea whether he uses it directly or through Brook. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035724.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/FPC for Web Development only
> You used Brook in the construction of this site? Not me, it's him. I haven't done any publicly accessible web app with Brook yet. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035722.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/FPC for Web Development only
The second link at the bottom is his name, he's one of Pascal evangelist in Indonesia. We're running roadshows about Modern Pascal across Indonesia. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035719.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/FPC for Web Development only
> Hehe... Thanks buddy! Please see Bootstrap project. :) http://getbootstrap.com Yep, I already use that along with jQuery. They do help covering my bad design. I really have no sense in good looking one, all I care is simplistic and straightforward yet intuitive UI/UX :p -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035684.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/FPC for Web Development only
> 1 - http://buscadobairro.com.br (under construction, and is a very basic site because I did it with low cost to my client, see the login form here http://imagebin.org/291097 and some others screens here http://imagebin.org/291098, http://imagebin.org/291100); > > 2 - http://54.232.90.2/duallapi/login (under construction, click in this > link, after, see some pics here http://imagebin.org/291103, > http://imagebin.org/291104, http://imagebin.org/291105, > http://imagebin.org/291106); > > 3 - http://duallsistemas.com.br/api.bf/login (click in this link, after, > see two pics here http://imagebin.org/291101, http://imagebin.org/291102); Nice screenies, Silvio *gosh, I wish I have a design sense that is as good as my coding sense* -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035636.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/FPC for Web Development only
> This project should be web, multilanguage, and so on…(now all should be web ☹ ) and I would like to know your opinion if it’s worth to develop web applications using server side with Brook (for example), and HTML5 and JS for client side, against other options like Java, PHP, Python. Yes, I'd choose Brook for big web projects. You wouldn't want to burden the server with Java. PHP and Python is a bit lighter, but not capable enough for speed (PyPy is actually quite good though). You can use either FastCGI or embedded web server (my choice for easy deployment) and the flexible routing mechanism of Brook will help you write more structured URLs. Plus, it has a lot of features besides those offered by fcl-web. After all, it's built on top of fcl-web so you can get the best of both. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-FPC-for-Web-Development-only-tp4035589p4035602.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] startlazarus x lazarus
Actually startlazarus just starts lazarus (as its name implies), you can see the source code yourself -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-startlazarus-x-lazarus-tp4035408p4035431.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] Linker errors
> Maybe one more question: is it true if I assume that when using any cocntrol from the "ExtCtrls" unit, the Interfaces unit is required even when the components used are not visible ? Yes. Interfaces unit is the unit that links LCL with the chosen GUI library backend. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linker-errors-tp4035393p4035407.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] Linker errors
Whenever you have `undefined reference to WSRegisterXXX`, you're missing Interfaces unit in the .lpr. Sometimes package that registers custom components (such as RichMemo) in its package main file is also required to be added to .lpr's uses clause. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linker-errors-tp4035393p4035395.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] revision 43702 gives broken lazbuild
OK, just checked out again. Everything works. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/revision-43702-gives-broken-lazbuild-tp4035343p4035358.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
[Lazarus] revision 43702 gives broken lazbuild
Can anyone confirm before I file a bug report? This happens when I try to build using `make clean lazbuild useride`, lazbuild crashes even when called without argument. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/revision-43702-gives-broken-lazbuild-tp4035343.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] FPC and Lazarus trunk
> Search for variants.* especially in the install folder as there may be several dangling ones due to recent changes in 2.7.1. If more then one is found, it would be better to clean all object files thoroughly. Got it, instead of rtl and objpas, there are rtl and rtl-objpas directories now. The latter seems that recent changes you're talking about. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-and-Lazarus-trunk-tp4035310p4035316.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] FPC and Lazarus trunk
Same here, no idea yet. Investigating... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-and-Lazarus-trunk-tp4035310p4035314.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] What are the prerequisites for compiling Lazarus on a KDE based system?
No idea, sorry. I don't use fpcup and I don't know whether it suppresses compiler/assembler/linker messages or not. If you build manually by hand, you'll be able to see a list of "cannot find: -lXXX" which indicates the missing libraries. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-are-the-prerequisites-for-compiling-Lazarus-on-a-KDE-based-system-tp4035177p4035211.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] What are the prerequisites for compiling Lazarus on a KDE based system?
Just check what -lXXX are missing -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-are-the-prerequisites-for-compiling-Lazarus-on-a-KDE-based-system-tp4035177p4035181.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] Ubuntu 14.04 LTS - Any plans to include 1.0.x on it?
You can get the debs from sourceforge, or simply follow: http://wiki.lazarus.freepascal.org/Lazarus_release_version_for_Ubuntu It will come up in your package manager, much easier than windows installer :) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Ubuntu-14-04-LTS-Any-plans-to-include-1-0-x-on-it-tp4034894p4034900.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] PDO: Pascal Data Objects, who uses?
Latest commit is in 2008, the project is indeed outdated. I did take a look at it a few years ago, but since Greyhound borns, I never look at it anymore. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-PDO-Pascal-Data-Objects-who-uses-tp4034725p4034748.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] cross-compiler win32:i386 can't compile
You get the cross compiler, that's all you need. Lazarus does NOT need to be cross compiled. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-cross-compiler-win32-i386-can-t-compile-tp4034702p4034703.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] How is XMLConfig supposed to work?
>From http://wiki.lazarus.freepascal.org/xmlconf, looks like simply setting FileName will do. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-is-XMLConfig-supposed-to-work-tp4034509p4034513.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] Resources
{$R} (FPC style) resources are not the same as Lazarus resources. See: http://wiki.freepascal.org/Lazarus_Resources -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Resources-tp4034456p4034457.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] What are the perfomance and memory usage effects of having heaptrc running?
> Does heaptrc intercept and monitor memory allocation throughout the program execution, or does it do a scan of memory usage for output only at program shutdown? Look at the source code, it's open :) Basically HeapTrc will replace the current memory manager with its own, tracing everything that's related to memory. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-are-the-perfomance-and-memory-usage-effects-of-having-heaptrc-running-tp4034452p4034453.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] Local CHM help files or web based?
CHM for me, it has nice features that web based one can't do fast. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Local-CHM-help-files-or-web-based-tp4034271p4034272.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] DateDif function needed
Indeed that was wrong, I shouldn't exploit the internal details. Below is the correct one (still no need for that complicated code of yours): uses SysUtils,DateUtils; var Date1,Date2: TDate; Y,M,D: Word; begin Date1 := EncodeDate(2012,12,21); Date2 := EncodeDate(2013,01,01); Y := YearsBetween(Date1,Date2); M := MonthsBetween(Date1,Date2); D := DaysBetween(Date1,Date2); WriteLn(Y,'-',M,'-',D); end. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-DateDif-function-needed-tp4034182p4034192.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] DateDif function needed
uses SysUtils; var Date1,Date2: TDate; Y,M,D: Word; begin Date1 := EncodeDate(2012,12,21); Date2 := EncodeDate(2013,01,01); DecodeDate(Date2 - Date1,Y,M,D); // you have them in Y, M and D, respectively end. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-DateDif-function-needed-tp4034182p4034184.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] Compilation error when targeting Android
You need to set -Fl to point to the NDK libraries, read up fpc.cfg thing here: http://wiki.freepascal.org/Android#Building_cross_compiler -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Compilation-error-when-targeting-Android-tp4034178p4034179.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] need info some warning
> In project1.lpr file line 21 is "end." In case of link time warning/error, no information related to source code that can be used for this. The location information available is the last tokens that the parser sees: end. > /usr/bin/ld: warning: /opt/lazarus/link.res contains output sections; did > you forget -T? http://www.freepascal.org/faq.var#unix-ld219 -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-need-info-some-warning-tp4034053p4034057.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] WriteLn back to the GUI
If I understood correctly, you want to override the meaning of WriteLn (for programs and units using globals.pas), right? In that case, just create Write(Ln) procedure in globals unit. That will override the system unit one. However, you can't have the one with variable number of arguments, at least not in the system unit style one. Here's a compilable example: {$mode objfpc} // you have to either in ObjFPC or Delphi mode for array of const to work var g: Boolean = true; // replace this with your callback variable procedure WriteLn(args: array of const); var i: Integer; begin if not g then System.WriteLn('g') else begin for i := Low(args) to High(args) do case args[i].vtype of vtinteger: System.Write(args[i].vinteger); vtboolean: System.Write(args[i].vboolean); vtchar : System.Write(args[i].vchar); vtextended : System.Write(args[i].VExtended^); vtString : System.Write(args[i].VString^); vtPointer: System.Write(Longint(args[i].VPointer)); vtPChar : System.Write(args[i].VPChar); vtObject : System.Write(args[i].VObject.Classname); vtClass : System.Write(args[i].VClass.Classname); vtAnsiString : System.Write(AnsiString(args[i].VAnsiString)); else System.Write(args[i].vtype); end; System.WriteLn; end; end; begin WriteLn([1]); // yep, you need the angel bracket WriteLn([1,2]); WriteLn([1,3]); WriteLn(['this is ',3,' args']); end. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-WriteLn-back-to-the-GUI-tp4033934p4033950.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] WriteLn back to the GUI
> I am trying to find where WriteLn is declared; but, apparently, WriteLn is among the select few that Lazarus will ignore 'Find Declaration' requests --at least that's how it behaves (latest Lazarus stable) on my side. WriteLn is NOT a regular procedure. It's rather a special command for the compiler to replace it with the correct procedure call (which unfortunately you can't directly call without a hack). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-WriteLn-back-to-the-GUI-tp4033934p4033941.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] Can't compile Lazarus on Linux Mint 15
Could it be the functions were splitted in two libraries sometime ago? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033871.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] Can't compile Lazarus on Linux Mint 15
> I have the same problem on Ubuntu 13.04 and the cairo libs are installed. Including the -dev package? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033860.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] Can't compile Lazarus on Linux Mint 15
Looks like it can't find cairo development library to link -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-t-compile-Lazarus-on-Linux-Mint-15-tp4033838p4033853.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] Graeme would love this, or not, I think
3-4 comments to help promoting Lazarus/Free Pascal to them. Mind to help as well, guys? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Graeme-would-love-this-or-not-I-think-tp4033781p4033788.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] Loading photos on a form
> confused on what control to use (timage, tbitmap, something else)and what are the steps to get the image to that control? TImage is meant for static image, TBitmap could be one of the possible image container of TImage, or used freely to draw or manipulate other bitmaps. Just drop a TImage and set its Picture property. To load an image from code, use TImage.Picture.LoadFromFile(). png and jpg should be supported out of the box. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Loading-photos-on-a-form-tp4033737p4033739.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] How do you remove form caption area?
No idea then, seems to be Windows API specific -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033726.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] How do you remove form caption area?
BorderStyle := bsNone -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-do-you-remove-form-caption-area-tp4033716p4033717.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] FPC arm building issue
Seems like you're just getting a broken revision. This: zipper.pp(2721) Error: Error while assembling exitcode 1 zipper.pp(2721) Fatal: There were 2 errors compiling module, stopping Fatal: Compilation aborted paszlib\units\arm-linux\zipper.s: Assembler messages: paszlib\units\arm-linux\zipper.s:3325: Error: immediate expression requires a # prefix -- `cmp r8,INVALID' is something that should NEVER happen because it happens at .s generated by the compiler. Just report or wait for fix. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-arm-building-issue-tp4033590p4033593.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] global items in TApplication
In short, you can't put it in the .dpr if you want it to be accessible from all units. Actually, there's not really any magic behind TApplication, you can still create your own TApplication descendant (preferably in its own unit) and assign that to Application variable. Provide a global property to access Application as your TApplication descendant to get its specific features. However, I consider this approach complicated. If you don't like global vars, just provide getter function or read only property (property also works at unit level in fpc), let all those variables hidden in the implementation. A single unit that is set as application configuration is good enough. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-global-items-in-TApplication-tp407p408.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] Build Lazarus on Linux? Make is deprecated?
> 'make' is not in the search path. Correct 'make' to 'fpc' -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Build-Lazarus-on-Linux-Make-is-deprecated-tp4032830p4032843.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] Pascal Script and Lazarus/Free Pascal
Both code should be fairly in sync, but use the graeme version instead, it may contain Lazarus specific fixes. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Pascal-Script-and-Lazarus-Free-Pascal-tp4032756p4032759.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] version of fpuname function for windows
> Please I would like to know if its possible to fpuname function for windows? No, the containing unit is BaseUnix, Windows doesn't implement unix functions. You have to use the one from Windows unit since I don't think cross platform function exists yet. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-version-of-fpuname-function-for-windows-tp4032477p4032491.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] Should TObject or TComponent have a Comment property?
> Well, then they need to be added for Delphi compatiblity :o I can't say anything anymore when the reason is this :) > They have been added. It's just not yet in trunk. Hoo... a hidden branch? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Should-TObject-or-TComponent-have-a-Comment-property-tp4032315p4032398.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, Jedi etc.
> Indeed! More people should be introduced [and educated] to the much > better open source database servers out there, like Firebird and > PostgreSQL. Or if they insist on using MySQL (compatible alternative): MariaDB -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-Jedi-etc-tp4032338p4032397.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, Jedi etc.
The whole JEDI sucks, dependencies hell everywhere and IS TIED TO WINDOWS! Some of the components have been converted though. Virtual Treeview is available for Lazarus. Quickreport is not needed because we have LazReport, more over, FastReport is also Lazarus compatible. Lazarus can connect to many DBMS, MySQL is one of them. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-Jedi-etc-tp4032338p4032339.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] Should TObject or TComponent have a Comment property?
> Annotations like in Java would be nice... No IMHO, that would complicate reading the code (more cluttered) as you can see in the newer Delphi versions (called attributes instead of annotations though). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Should-TObject-or-TComponent-have-a-Comment-property-tp4032315p4032318.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] SynEdit Code Completion
http://svn.freepascal.org/svn/lazarus/trunk/ide/sourceeditor.pp ? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-SynEdit-Code-Completion-tp4032288p4032289.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] TProcess and Windows XP
Error 193 is "%1 is not a valid Win32 application", what is your .Executable or .CommandLine property? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-and-Windows-XP-tp4032239p4032244.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 Compile Error
I fix this a little while ago in trunk. 1.0.10 should be free from this bug. What's your fpc version? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-Compile-Error-tp4031986p4031988.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] TComboBox with AutoComplete property
> I has many TComboBox components on the forms without the AutoComplete property set to True, so I was looking for the easy way to make it True during the run time. Then loop over the components instead of checking the Sender only -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TComboBox-with-AutoComplete-property-tp4031889p4031906.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] TComboBox with AutoComplete property
OnCreate of what? For TForm, the Sender parameter would be... the form itself. Why don't you directly set the property? i.e. ComboBox1.AutoComplete := true; -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TComboBox-with-AutoComplete-property-tp4031889p4031893.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] "crti.o" "crtbegin.o" "crtend.o" "crtn.o"
Just ignore the warnings, they seem to be safe for FPC programs (FPC doesn't use GCC initializer/finalizer, it has its own). This may be caused by newer binutils, whose behavior is documented here: http://gcc.gnu.org/onlinedocs/gccint/Initialization.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-crti-o-crtbegin-o-crtend-o-crtn-o-tp4031611p4031619.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] [ANN] fpCEF3
> Currently it needs to be compiled without -WG (so you have this ugly cmd window) - this will change as soon as I don't need debug info output any more. Use DebugLn instead, it will work with/without standard output available. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ANN-fpCEF3-tp4031418p4031454.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] ARMV7
> also physically deleting C:\Develop\fpc\2.7.x\units\arm-android directory and recompiling fpc with CROSSOPT="-CfVFPV3 -OoFASTMATH -CpARMV6" I get the same error. This is what I actually mean by "cleaning up your arm-android installation". If you've done that, then retry: > if I use only CROSSOPT="-CfVFPV3 -OoFASTMATH", FPC compiles well and ensure it really compiles. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ARMV7-tp4031329p4031335.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] ARMV7
Isn't the error message clear enough? > PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu > Trying to use a unit which was compiled with a different FPU mode The compiler tries to load the system unit, but it's compiled with different FPU mode that the one you're targetting with. Try cleaning up your arm-android installation and ensure that second FPC compilation really works. > error on FPC compiling I haven't tried, but please be verbose about the error. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ARMV7-tp4031329p4031331.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] TextHeight in Console App
OK, that means it tries to get something from current widgetset, which is nil for a console application. I guess LCLBase is the least thing you can use from LCL for a console app. You could follow Graeme's advice. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TextHeight-in-Console-App-tp4031311p4031319.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] TextHeight in Console App
> 'Project TextHeight raised exception "External SIGSEGV" in file '.\include\lclintf.inc' at line 184.' What's there? It's part of lcl, so look for the file in lcl folder. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TextHeight-in-Console-App-tp4031311p4031312.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] Get Lazarus version at runtime
http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Get-Lazarus-version-at-runtime-tp4031280p4031286.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] Arm-linux PPU invalid versioin 126
> I have put a bounty to get a lazarus installer with android free pascal cross compile included. I've seen it and I guess I can do it since I already have in my current setup on Linux. But I'm too lazy to open my Windows again... :P A problem that might appear is that since the support is available on trunk, there's no guarantee that it will be bug free (well, even the stable version does, but not as problematic as trunk, especially since recently a branch has just been merged). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Arm-linux-PPU-invalid-versioin-126-tp4031143p4031161.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] How to detect if a project is a simple program or a application?
Console is always defined on Linux, because all Linux applications have console. I think it's better to use a custom define. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-detect-if-a-project-is-a-simple-program-or-a-application-tp4031127p4031128.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] RAD Studio XE4 Released?
> How can they sell this ... as a cross-platform solution ? For most people, having at least two different targets already counts cross-platform, even if the host is only one (yaoming). The prerequisites suck, REALLY REALLY SUCK (why do the hell they need .NET framework there?) Reference: http://docwiki.embarcadero.com/RADStudio/XE4/en/Installation_Notes_for_XE4 -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-RAD-Studio-XE4-Released-tp4030944p4030986.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] Slow pointer assignments
Assign all the RGBA value in one go, that would reduce the inner loop by 4 times. i.e.: var PixelPtr: PLongWord; PixelRowPtr: PByte; begin PixelRowPtr := Fbmp.RawImage.Data; for Y := 0 to Self.Height - 1 do begin PixelPtr := PLongWord(PixelRowPtr); for X := 0 to (Self.Width - 1) div 4 do begin PixelPtr^ := (lRed shl 24) or (lGreen shl 16) or (lBlue shl 8) or 255; Inc(PixelPtr); end; Inc(PixelRowPtr, FBmp.RawImage.Description.BytesPerLine); end; end; -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Slow-pointer-assignments-tp4030759p4030762.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] Linux GUI Application define CONSOLE
If your design is modular enough, you can use frontend-backend architecture. Only the frontend should differ. This could be achieved by having 2 .lpi referencing the same backend unit, with each own frontend (user interface). Another way would be to use build mode, differing in -Fu paths. One will refer to the console unit, while the other to the gui. This way requires you to have both units having the same interface. To ease maintenance, you could instead make one unit, but the implementation part is just an {$include} directive. This time, -Fi (instead of -Fu) will decide the path where the include file should be searched. So the layout is like: Solution 1 (-Fu): -backend.pas -frontend/ --console/ ---frontend.pas --gui/ ---frontend.pas Solution 2 (-Fi): -backend.pas -frontend.pas -include/ --console/ ---frontend.inc --gui/ ---frontend.inc -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linux-GUI-Application-define-CONSOLE-tp4030537p4030599.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] Linux GUI Application define CONSOLE
> I´m confusing... I always find out that the "CONSOLE" directive exists only for applications that does not require a GUI or in other words, applications that does not require a X server Linux applications are console, Linux doesn't have integrated GUI as a part of the system like Windows (which is why replacing X server with something else is quite easily possible). Everything (including X server) runs on top of it. It's just a matter of showing the console or not. Launching Lazarus from terminal will show output log during its execution without the need to redirect to file via --debug-log option, which is mandatory on Windows. > How can I distinguish applications in Text mode (CONSOLE) from Graphics > Applications (GUI) ? I don't think it's possible on Linux. Do you have any need for that? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linux-GUI-Application-define-CONSOLE-tp4030537p4030548.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] Hints for Android
> For using the LCL in Android see http://wiki.freepascal.org/Android_Interface instead of the link that you have. The link above also applies to LCL, since quite recent 2.7.1 has pure Android support (and I've been able to build my Android apps with it) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Hints-for-Android-tp4030495p4030498.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] [FR] LCLWidgetType not easy
> Regarding you usually need do do this not very often during your workflow. I suppose what you mean is to create build mode for each -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FR-LCLWidgetType-not-easy-tp4030411p4030455.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 and file associations under Windows
I'd say go for startlazarus.exe as it's the helper program used for successful automatic restart after installing a package (I don't know whether lazarus.exe will check and start startlazarus.exe by itself, but to be safe, it's better to start from startlazarus.exe). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-and-file-associations-under-Windows-tp4030325p4030327.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 update
> Is there a wiki on Updating For Idiots? AFAIK no, feel free to create one. Anyway, when you're able to program, you shouldn't be included in idiots group anymore... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-update-tp4029944p4029960.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 update
> Is there any way to record all currently installed components (Lazarus inbuilt and self-installed) and automatically re-install them when updating Lazarus? Lazarus doesn't distinguish components you add manually and the ones that come with it. So you have to keep track yourself. I put components I added myself outside Lazarus directory. The config file won't be lost when you update. Combining both, updating Lazarus can automatically re-install the extra components (with an IDE rebuild). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-update-tp4029944p4029949.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] Installing Lazarus
Where did you search? It's 0.6.5 in Lazarus-CCR (I have 0.6.6 from svn): http://sourceforge.net/projects/lazarus-ccr/files/lNet/ -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Installing-Lazarus-tp4029785p4029790.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] Android LCL example with 2.7.1
Lazarus 1.1 r40503 FPC 2.7.1 r23704, both my app and androidlcl example crashes with this: I/lclapp ( 738): [FORMS.PP] ExceptionOccurred I/lclapp ( 738): Sender=EIntOverflow I/lclapp ( 738): Exception=Arithmetic overflow I/lclapp ( 738): Stack trace: I/lclapp ( 738): $46AC306C I/lclapp ( 738): TApplication.HandleException Arithmetic overflow I/lclapp ( 738): Stack trace: I/lclapp ( 738): $46AC306C androidlcl generates much more information though: I/Process ( 76): Sending signal. PID: 738 SIG: 3 I/dalvikvm( 738): threadid=3: reacting to signal 3 I/dalvikvm( 738): Wrote stack traces to '/data/anr/traces.txt' F/libc( 738): Fatal signal 11 (SIGSEGV) at 0x400dac9c (code=2) I/Process ( 76): Sending signal. PID: 738 SIG: 3 I/dalvikvm( 738): threadid=3: reacting to signal 3 I/dalvikvm( 738): Wrote stack traces to '/data/anr/traces.txt' I/DEBUG ( 33): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** I/DEBUG ( 33): Build fingerprint: 'generic/sdk/generic:4.0.4/MR1/302030:eng/test-keys' I/DEBUG ( 33): pid: 738, tid: 738 >>> com.pascal.lcltest <<< I/DEBUG ( 33): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 400dac9c I/DEBUG ( 33): r0 r1 1000 r2 0003 r3 befa1fc4 I/DEBUG ( 33): r4 4004755c r5 400da000 r6 400daca8 r7 010c I/DEBUG ( 33): r8 1000 r9 10 4527c2c4 fp 000c I/DEBUG ( 33): ip f750 sp befa1fb8 lr 40022bef pc 40022bf0 cpsr 6030 I/DEBUG ( 33): d0 bf80bf80 d1 3ff042c8 I/DEBUG ( 33): d2 bf80 d3 3f80 I/DEBUG ( 33): d4 3f80 d5 3ff03f80 I/DEBUG ( 33): d6 bff0 d7 40803f80 I/DEBUG ( 33): d8 d9 I/DEBUG ( 33): d10 d11 I/DEBUG ( 33): d12 d13 I/DEBUG ( 33): d14 d15 I/DEBUG ( 33): scr 6013 I/DEBUG ( 33): I/DEBUG ( 33): #00 pc 0001ebf0 /system/lib/libc.so (__cxa_finalize) I/DEBUG ( 33): #01 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #02 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #03 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #04 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #05 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #06 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #07 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #08 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #09 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #10 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #11 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #12 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #13 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #14 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #15 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #16 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #17 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #18 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #19 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #20 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #21 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #22 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #23 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #24 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #25 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #26 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #27 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #28 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #29 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #30 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): #31 pc 0001ef9c /system/lib/libc.so (exit) I/DEBUG ( 33): I/DEBUG ( 33): code around pc: I/DEBUG ( 33): 40022bd0 f1a6d118 9b010a0c 0007e89a 0007e883 I/DEBUG ( 33): 40022be0 46414628 f8dd2203 f7eda010 b930ed06 (FAF."0. I/DEBUG ( 33): 40022bf0 0c0cf846 46284641 f7ed2201 4650ecfe F...AF(F."PF I/DEBUG ( 33): 40022c00 47889903 f1173e0c d5d837ff 2d00682d ...G.>...7..-h.- I/DEBUG ( 33): 40022c10 f1b9d1d0 d1180f00 c048f8df f8dc44fc ..H..D.. I/DEBUG ( 33): I/DEBUG ( 33): code around lr: I/DEBUG ( 33): 40022bcc 45810c04 f1a6d118 9b010a0c 0007e89a ...E
Re: [Lazarus] Error while compiling
Installing libx11-dev should automatically install libxcb-dev (which is the one you miss) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Error-while-compiling-tp4029732p4029741.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] What's "External: SIGFPE"?
> Could anyone explain what's SIGFPE? SIGFPE stands for SIGnal Floating Point Exception, that is caused by a probably invalid operation involving floating points. > Why there is a SetExceptionMask? Probably to override the same thing already done by (implicitly used) libraries, e.g. gtk2 > Why a normal empty form application will generate SIGFPE with these masks, > and how to trace down to the cause of this error? Because setting the mask means telling the processor to generate (or not to generate? I forgot) SIGFPE for the given operations. e.g. exZeroDivide may trigger SIGFPE if there's a division by zero with floating point operation. How to trace? You already get it, the program will report the line that causes it, you can directly go to the respective line to see what happens. But this requires that the code lies in the program space (not in external library) and the code is compiled with runtime error backtrace (-gl). Otherwise, the program can only report as deep as it can find. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-s-External-SIGFPE-tp4029706p4029715.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] Android LCL example with 2.7.1
Nice news Sven, so now I can drop the hacked 2.5.1? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Android-LCL-example-with-2-7-1-tp4029697p4029702.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] "buffer" and string
> If a buffer expect the first "element", and count is the number of elements to write, then what is the unit size of that element? is it always "byte"? From http://www.freepascal.org/docs-html/rtl/classes/thandlestream.write.html: "Write overrides the Write method of TStream. It uses the Handle property to write the Count BYTES from Buffer." -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-buffer-and-string-tp4029601p4029644.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] LongString does not work?
> I was using an INI file, but record make things a lot easier. If you use TIniFile, you don't have to worry about saving and restoring values. It's much easier than writing your own saving/restoring procedure. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-LongString-does-not-work-tp4029606p4029624.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] "buffer" and string
> My question is, why the above code with string works sometime, but not alwasy fail? TStream.Write expects a buffer, typically the first element of an item (NOT a pointer to it) and the length (number of elements after first one). > fs.Write(s, Length(s)); Here you try to give the WHOLE string, which is variable depending on the string type. It could be plain array for ShortString, but also pointer to a dynamically allocated structure for other strings. For ShortStrings, however, the above code will have the string length (if I'm not mistaken) before the first character in the written file. To do it correctly without converting to PChar is to give the first element: fs.Write(s[1], Length(s)); > What is the internal structure of string and variable array (i.e. array of > something)? Explained in docs: - static array: http://www.freepascal.org/docs-html/prog/progsu161.html#x204-2170008.2.9 - dynamic array: http://www.freepascal.org/docs-html/prog/progsu162.html#x205-2180008.2.10 - strings: http://www.freepascal.org/docs-html/prog/progsu159.html#x202-2120008.2.7 > What is the difference between @string and @string[1] or @array and > @array[0]? @string means pointer to to the string STRUCTURE, for ShortString, this is the same as @string[0] (the length) @string[1] means pointer to the first character in the string @array means pointer to the array STRUCTURE, for static array, this is the same as @array[] @array[0] means pointer to the element at index 0 -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-buffer-and-string-tp4029601p4029603.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] ForceDirectoriesUTF8
> as all my programs use string type, change them all to AnsiString is scaring and I don't know the consequence at all Do you access the string's internal structure? Do you write the string to file directly instead of taking its content? If not, then nothing you have to worry about. Standard string operations work the same for all string type. > My program is always in {$mode objfpc} So string is not a problem, but > shall I use the UTF8 version or not? I remember that Windows is NOT UTF8? Windows supports wide characters, I don't know the encoding but it's likely UTF-8 is at least in the subset. I suggest using UTF8 all the time. 1: You don't have to worry about it if in the future you need to support UTF-8 characters 2: It does not hurt your current program -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ForceDirectoriesUTF8-tp4029570p4029580.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] Ok I give up!
> I don't think my built in help is working, F1 does nothing. How do I enable built in help? http://wiki.freepascal.org/Installing_Help_in_the_IDE -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Ok-I-give-up-tp4029554p4029579.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] CRM and MVC
tiOPF and Greyhound (+ my ghORM) are two frameworks I've ever used. There are others, but I never touch them. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-CRM-and-MVC-tp4029487p4029508.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] TDD
No such a framework yet, but we have unit testing frameworks on which you can do TDD on top of. FPCUnit is distributed along, while FPTest is 3rd party. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TDD-tp4029488p4029507.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] "global" operator overloading
> Is there anyway to avoid this dilemma? Because I don't want treap.pas to "reversely" rely on a specialized class. No, it's not a dilemma, but rather a requirement. Before generics specialization, all required operations for given type must be known. This is because the symbol table when the generics is parsed must be reconstructed when it gets specialized. Think about declaring usual classes with the generic parameter replaced with actual type. If at that time, the operation < is not yet defined, the code won't compile anyway. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-global-operator-overloading-tp4029446p4029447.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] operator overloading
FPC operator overloading doesn't work inside classes, it must be declared globally, so method2 should work. What error do you get? What FPC version do you use? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-operator-overloading-tp4029399p4029400.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] log4delphi maintainer
Why don't you ask the porter? He puts his name in the wiki page, right? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-log4delphi-maintainer-tp4029386p4029387.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] Debugging generics
I don't remember debugger support status for generics. But have you ensured the unit is compiled with debugging info? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Debugging-generics-tp4029221p4029228.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] Communication with PostgreSQL
Looks like your fpc.cfg isn't setup well, could you post the content here? It should be located in /etc, if none exists, then you definitely miss one. Create the default file with fpcmkcfg program (comes with fpc, so you probably already have it) then move to /etc. Edit (or add) -Fu lines to point to your COMPILED units directory. If you install FPC from repository, this should normally be: -Fu/usr/lib/fpc//units//* (-Fu supports wildcard). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Communication-with-PostgreSQL-tp4029138p4029141.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 1.0.6 Release
Probably the one after this, note that Lazarus and FPC have separate release cycle, and Lazarus default distribution will always depend on the latest stable release of FPC (2.6.2 isn't out yet, right?). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-1-0-6-Release-tp4029078p4029140.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] Unpack of PHP
> ps. I tried the Unpack function of FPC, but I don't know how to use it. Unpack() is for unpacking previously Pack()-ed data -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Unpack-of-PHP-tp4029070p4029074.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] Project Options dialog
I'd rather have those options appear when the target platform combobox changes -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Project-Options-dialog-tp4029037p4029039.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] compiling PowerPDF on win32
Looks like Delphi mode or AnsiString as default string option is missing... Strings other than ShortStrings should be convertible to PChar. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-compiling-PowerPDF-on-win32-tp4028928p4028929.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] netbook? running lazarus on android?
> Does fpc 2.6 + lazarus work on android? No currently, though it's not impossible theoritically. At least somebody has compiled the compiler and some rtl units and provide it in the form of PascalGUI (find in market). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-netbook-running-lazarus-on-android-tp4028850p4028853.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] terminal window not displayed in lazarus on kubuntu linux
> This program should clear screen and generate random numbers but the [6n[H[m[H[2J and[1B seem to be control codes, also the console does not refresh. As been told before, the terminal window is not a true console. It doesn't understand control codes at all and will output as is. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-terminal-window-not-displayed-in-lazarus-on-kubuntu-linux-tp4028591p4028629.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] [ISSUE] FCL-Web and LazReport
Alex, could you try porting LazReport to nogui? AFAIR, the problem is the same as TAChart, it requires to draw somewhere. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-ISSUE-FCL-Web-and-LazReport-tp4028559p4028607.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] terminal window not displayed in lazarus on kubuntu linux
On Linux, there's no separation between console and gui programs. To see console output, you have to launch from something that can read standard output. It's your terminal by default, however Lazarus has such a feature from View->Debug Windows->Terminal Output. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-terminal-window-not-displayed-in-lazarus-on-kubuntu-linux-tp4028591p4028602.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