Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-13 Thread leledumbo
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

Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread leledumbo
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

Re: [Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-12 Thread leledumbo
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

[Lazarus] LazarusDir and FPCSourceDirectory not saved to environmentoptions.xml

2014-02-11 Thread leledumbo
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

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-08 Thread leledumbo
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

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-08 Thread leledumbo
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

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-07 Thread leledumbo
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:

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-06 Thread leledumbo
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

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-05 Thread leledumbo
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

Re: [Lazarus] Lazarus/FPC for Web Development only

2014-02-05 Thread leledumbo
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 -

Re: [Lazarus] startlazarus x lazarus

2014-01-16 Thread leledumbo
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

Re: [Lazarus] Linker errors

2014-01-15 Thread leledumbo
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:

Re: [Lazarus] Linker errors

2014-01-15 Thread leledumbo
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

Re: [Lazarus] revision 43702 gives broken lazbuild

2014-01-12 Thread leledumbo
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. --

Re: [Lazarus] FPC and Lazarus trunk

2014-01-11 Thread leledumbo
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

[Lazarus] revision 43702 gives broken lazbuild

2014-01-11 Thread leledumbo
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:

Re: [Lazarus] FPC and Lazarus trunk

2014-01-10 Thread leledumbo
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. --

Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?

2014-01-05 Thread leledumbo
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:

Re: [Lazarus] What are the prerequisites for compiling Lazarus on a KDE based system?

2014-01-04 Thread leledumbo
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. --

Re: [Lazarus] Ubuntu 14.04 LTS - Any plans to include 1.0.x on it?

2013-12-23 Thread leledumbo
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:

Re: [Lazarus] PDO: Pascal Data Objects, who uses?

2013-12-13 Thread leledumbo
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:

Re: [Lazarus] cross-compiler win32:i386 can't compile

2013-12-07 Thread leledumbo
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

Re: [Lazarus] How is XMLConfig supposed to work?

2013-11-27 Thread leledumbo
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

Re: [Lazarus] What are the perfomance and memory usage effects of having heaptrc running?

2013-11-23 Thread leledumbo
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

Re: [Lazarus] Resources

2013-11-23 Thread leledumbo
{$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

Re: [Lazarus] Local CHM help files or web based?

2013-11-12 Thread leledumbo
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. --

Re: [Lazarus] DateDif function needed

2013-11-09 Thread leledumbo
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

Re: [Lazarus] Compilation error when targeting Android

2013-11-07 Thread leledumbo
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

Re: [Lazarus] need info some warning

2013-10-29 Thread leledumbo
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

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread leledumbo
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

Re: [Lazarus] WriteLn back to the GUI

2013-10-23 Thread leledumbo
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

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-18 Thread leledumbo
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.

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
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. --

Re: [Lazarus] Can't compile Lazarus on Linux Mint 15

2013-10-17 Thread leledumbo
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

Re: [Lazarus] Graeme would love this, or not, I think

2013-10-11 Thread leledumbo
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

Re: [Lazarus] Loading photos on a form

2013-10-07 Thread leledumbo
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

Re: [Lazarus] How do you remove form caption area?

2013-10-05 Thread leledumbo
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. --

Re: [Lazarus] How do you remove form caption area?

2013-10-04 Thread leledumbo
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. -- ___

Re: [Lazarus] FPC arm building issue

2013-09-26 Thread leledumbo
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:

Re: [Lazarus] global items in TApplication

2013-09-14 Thread leledumbo
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

Re: [Lazarus] Build Lazarus on Linux? Make is deprecated?

2013-08-08 Thread leledumbo
'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. --

Re: [Lazarus] Pascal Script and Lazarus/Free Pascal

2013-08-05 Thread leledumbo
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 -

Re: [Lazarus] version of fpuname function for windows

2013-07-16 Thread leledumbo
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:

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-15 Thread leledumbo
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:

Re: [Lazarus] Should TObject or TComponent have a Comment property?

2013-07-15 Thread leledumbo
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:

Re: [Lazarus] Lazarus, Jedi etc.

2013-07-13 Thread leledumbo
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

Re: [Lazarus] Should TObject or TComponent have a Comment property?

2013-07-11 Thread leledumbo
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:

Re: [Lazarus] SynEdit Code Completion

2013-07-08 Thread leledumbo
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. --

Re: [Lazarus] TProcess and Windows XP

2013-07-03 Thread leledumbo
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

Re: [Lazarus] Lazarus Compile Error

2013-06-20 Thread leledumbo
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

Re: [Lazarus] TComboBox with AutoComplete property

2013-06-15 Thread leledumbo
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:

Re: [Lazarus] TComboBox with AutoComplete property

2013-06-14 Thread leledumbo
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:

Re: [Lazarus] crti.o crtbegin.o crtend.o crtn.o

2013-06-04 Thread leledumbo
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:

Re: [Lazarus] [ANN] fpCEF3

2013-05-26 Thread leledumbo
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:

Re: [Lazarus] ARMV7

2013-05-15 Thread leledumbo
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

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
'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:

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
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:

Re: [Lazarus] ARMV7

2013-05-14 Thread leledumbo
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.

Re: [Lazarus] Get Lazarus version at runtime

2013-05-13 Thread leledumbo
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. --

Re: [Lazarus] Arm-linux PPU invalid versioin 126

2013-05-07 Thread leledumbo
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

Re: [Lazarus] How to detect if a project is a simple program or a application?

2013-05-04 Thread leledumbo
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:

Re: [Lazarus] RAD Studio XE4 Released?

2013-04-24 Thread leledumbo
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:

Re: [Lazarus] Slow pointer assignments

2013-04-18 Thread leledumbo
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

Re: [Lazarus] Linux GUI Application define CONSOLE

2013-04-14 Thread leledumbo
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

Re: [Lazarus] Linux GUI Application define CONSOLE

2013-04-13 Thread leledumbo
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

Re: [Lazarus] Hints for Android

2013-04-11 Thread leledumbo
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:

Re: [Lazarus] [FR] LCLWidgetType not easy

2013-04-08 Thread leledumbo
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

Re: [Lazarus] Lazarus and file associations under Windows

2013-04-04 Thread leledumbo
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

Re: [Lazarus] Lazarus update

2013-03-19 Thread leledumbo
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

Re: [Lazarus] Lazarus update

2013-03-19 Thread leledumbo
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

Re: [Lazarus] Installing Lazarus

2013-03-10 Thread leledumbo
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 -

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-08 Thread leledumbo
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

Re: [Lazarus] What's External: SIGFPE?

2013-03-07 Thread leledumbo
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

Re: [Lazarus] Error while compiling

2013-03-07 Thread leledumbo
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

Re: [Lazarus] Android LCL example with 2.7.1

2013-03-06 Thread leledumbo
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. --

Re: [Lazarus] buffer and string

2013-03-04 Thread leledumbo
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

Re: [Lazarus] LongString does not work?

2013-03-03 Thread leledumbo
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:

Re: [Lazarus] Ok I give up!

2013-03-02 Thread leledumbo
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

Re: [Lazarus] ForceDirectoriesUTF8

2013-03-02 Thread leledumbo
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

Re: [Lazarus] buffer and string

2013-03-02 Thread leledumbo
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,

Re: [Lazarus] TDD

2013-02-27 Thread leledumbo
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

Re: [Lazarus] CRM and MVC

2013-02-27 Thread leledumbo
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

Re: [Lazarus] global operator overloading

2013-02-25 Thread leledumbo
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

Re: [Lazarus] operator overloading

2013-02-24 Thread leledumbo
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

Re: [Lazarus] log4delphi maintainer

2013-02-22 Thread leledumbo
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. --

Re: [Lazarus] Debugging generics

2013-02-15 Thread leledumbo
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

Re: [Lazarus] Lazarus 1.0.6 Release

2013-02-07 Thread leledumbo
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:

Re: [Lazarus] Communication with PostgreSQL

2013-02-07 Thread leledumbo
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

Re: [Lazarus] Unpack of PHP

2013-02-04 Thread leledumbo
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

Re: [Lazarus] Project Options dialog

2013-02-03 Thread leledumbo
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. --

Re: [Lazarus] compiling PowerPDF on win32

2013-01-30 Thread leledumbo
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

Re: [Lazarus] netbook? running lazarus on android?

2013-01-26 Thread leledumbo
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:

Re: [Lazarus] terminal window not displayed in lazarus on kubuntu linux

2013-01-19 Thread leledumbo
This program should clear screen and generate random numbers but the  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. --

Re: [Lazarus] terminal window not displayed in lazarus on kubuntu linux

2013-01-18 Thread leledumbo
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:

Re: [Lazarus] [ISSUE] FCL-Web and LazReport

2013-01-18 Thread leledumbo
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 -

Re: [Lazarus] Got Pointer, expected Open Array Of Char

2013-01-13 Thread leledumbo
I think making src also a var parameter... Or const since it's meant to be read only -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Got-Pointer-expected-Open-Array-Of-Char-tp4028513p4028521.html Sent from the Free Pascal - Lazarus mailing list

Re: [Lazarus] Startlazarus starting wrong Lazarus

2013-01-13 Thread leledumbo
What's the output of: which lazarus -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Startlazarus-starting-wrong-Lazarus-tp4028516p4028522.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] Got Pointer, expected Open Array Of Char

2013-01-13 Thread leledumbo
Actually, rather than continuing this, if what you need is only to copy a dynamic array then you can simply: dst := Copy(src,0,Length(src)); -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Got-Pointer-expected-Open-Array-Of-Char-tp4028513p4028525.html

Re: [Lazarus] Got Pointer, expected Open Array Of Char

2013-01-11 Thread leledumbo
What's the type of dst and src that you pass to the function? Array is not pointer, and I have no idea about open array with var modifier. Open array is compatible with any array (and its subarrays through slicing). -- View this message in context:

Re: [Lazarus] record literal in FPC?

2013-01-09 Thread leledumbo
As far as I know pascal inline directive only affect the compiler, not how you write code. Could you please give an example how inline function helps in my question? Yes it does, what I mean is to create something that Point() function does and using inline directive it's nearly the same as

<    1   2   3   4   >