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] 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
> 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 archiv

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: http://free-pascal-lazarus.989080.n3.nabble.co

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 assi

Re: [Lazarus] record literal in FPC?

2013-01-08 Thread leledumbo
If you declare an inline function producing the record, the effect would be the same with that literal record. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-record-literal-in-FPC-tp4028464p4028474.html Sent from the Free Pascal - Lazarus mailing list a

Re: [Lazarus] New Lazarus User

2013-01-05 Thread leledumbo
> Can Lazarus run and are people using Lazarus on Ubuntu 12.10 and does it use Wine. Yes, Lazarus even supports Linux first before Windows. So no, no stupid emulation through Wine required. Everything is NATIVE. I use it on my Kubuntu 12.10. -- View this message in context: http://free-pascal-

Re: [Lazarus] How can a program executing a command via TProcess detect an input prompt and create a graphical dialog for the input?

2013-01-01 Thread leledumbo
There's no such a way AFAIK, you have to know exactly what your program is executing. Therefore you have to always give the graphical input dialog (and it's up to you when to show it, before or during execution). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/L

Re: [Lazarus] Linking dynamic libraries

2012-12-30 Thread leledumbo
> As far as I understand dynamic link libraries are only required at runtime, why lazarus require it on compilation? Not in *nix world. The inner workings between .dll and .so are different. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Linking-dynami

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread leledumbo
> 1) from the source code of lua52.pas, how do you know the array parameter to luaL_newlib() accepts only static array but not dynamic array? No, I didn't say that. Only the pointer version is correct. The array version is wrong despite the array type passed, this is due to the pointer addresses b

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-30 Thread leledumbo
> 1) what's the difference between open array and dynamic array? Is "array of Integer" open or dynamic? Open array can only be declared as parameter type, it can't be declared as a variable type. When done in latter case, it will always be dynamic array. The following example will explain: type

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-29 Thread leledumbo
Sorry, I think I was too fast in reading the unit. After reading slowly, the APIs actually uses open array, not dynamic array. In this case @lib should be the same as @lib[0], but here's something interesting: I tried your code (converted as program): uses lua52; type TluaLReg = array of luaL_

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-29 Thread leledumbo
Reading luaL_newlib documentation and lua52.pas implementation of it (it's a macro in the original C code), I see that you need a sentinel value to mark the end of the array by putting nil in the name part. I was already skeptic since the API doesn't mention the number of elements in the array as c

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-28 Thread leledumbo
> The Assembler shows that @lib and @lib[0] are exactly same thing. The following program shows that they are NOT the same #!/usr/bin/instantfpc var a1: array of Integer; begin setlength(a1,1); writeln(ptruint(@a1)); writeln(ptruint(@a1[0])); end. output: $ chmod +x test.pas $ ./test.pas

Re: [Lazarus] SEGFAULT: difference between pointer and dynarray?

2012-12-28 Thread leledumbo
Pointer and dynamic array are not the same, even though dynamic array is built on top of pointer (to a structure). When you pass a dynamic array variable, you're passing pointer TO THE STRUCTURE, NOT THE DATA. To correctly do it, you have to pass pointer to the first data, which is @lib[0] in your

Re: [Lazarus] debugging and "strip --strip-all ./lazarus* ./startlazarus"

2012-12-28 Thread leledumbo
Or add -g- as well (it will override -gl) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-debugging-and-strip-strip-all-lazarus-startlazarus-tp4028281p4028288.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] Is it possible to detect type in a generic class

2012-12-28 Thread leledumbo
AFAIK no, since T could be anything from base type to most complex type, and not all types get runtime type information. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Is-it-possible-to-detect-type-in-a-generic-class-tp4028285p4028287.html Sent from the

Re: [Lazarus] pointers in writing extension for Lazarus

2012-12-05 Thread leledumbo
> Can you please give me some pointers in the matter on how to start writing it, what should I be looking for etc... ? Maybe you can find something here: http://wiki.lazarus.freepascal.org/Extending_the_IDE -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Laza

Re: [Lazarus] New user interface for future major releases of Lazarus

2012-12-04 Thread leledumbo
If you have some time and skills, you better try to integrate KZDesktop (form designer docking + automatic object inspector/code explorer switching), EasyDockManager (full layout saving) and AnchorDocking/GlassDocking (beautiful interface). -- View this message in context: http://free-pascal-la

Re: [Lazarus] WebLaz bug

2012-11-30 Thread leledumbo
Feel free to file a feature request -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-WebLaz-bug-tp4027787p4027809.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mail

Re: [Lazarus] WebLaz bug

2012-11-29 Thread leledumbo
> for example "...Invalid value for property A" A in > Error reading TFPWebAction.OnRequest: Invalid is TFPWebAction.OnRequest -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-WebLaz-bug-tp4027787p4027794.html Sent from the Free Pascal - Laza

Re: [Lazarus] WebLaz bug

2012-11-28 Thread leledumbo
> I don't know if this bug is related to Lazarus, WebLaz or FPC. Please tell me and I'll post it on Mantis: To reproduce it, please follow this steps: 1) Create a CGI application. You'll need WebLaz package. 2) Add an FPWebModule. 3) Add two or three actions. Compile and check if they work a

Re: [Lazarus] How to build a separete unit file for db connection

2012-11-25 Thread leledumbo
http://delphi.about.com/od/database/l/aa101601a.htm -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-to-build-a-separete-unit-file-for-db-connection-tp4027782p4027783.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___

Re: [Lazarus] Fatal: Circular unit reference between units

2012-11-21 Thread leledumbo
This is very likely to happen on user interface units. Decide: do you really need to have them using each other? or actually one can / must be started / opened / executed from the other? the problem might also happen if you tightly integrate data to the user interface. if you use 3rd unit / object

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread leledumbo
> 1. Can I somehow format only selected code? JCF made changes in whole editor. No AFAIK, it can't use partial parsing to format the code since it may lose scope information thus can cause wrong formatting. > 2. JCF has problem if strings have special characters (for example polish > "ę"). It thr

Re: [Lazarus] FPC Source Error: directory not found

2012-11-08 Thread leledumbo
> Any suggestions how to improve the error message to make this more clear? It would be a bit long, but I hope much clearer: "Lazarus cannot find the directory in which FPC source code is located (Lazarus assumes it is located in ). The directory should have at least "rtl" and "packages" director

Re: [Lazarus] FPC Source Error: directory not found

2012-11-08 Thread leledumbo
Isn't it clear enough? The dialog expects you to have FPC source directory and it defaults to that popped-up value, which you could override with your own. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPC-Source-Error-directory-not-found-tp4027560p402

Re: [Lazarus] Deep exe strip :)

2012-10-25 Thread leledumbo
> Is exists any global strip to get the smallest possible exe size? Not to my knowledge, but in my version (1.1 about 1 month ago) if I change build mode then all dependencies are recompiled, with the same options I guess, because I got a slightly smaller binary. -- View this message in context

Re: [Lazarus] Passing Sender to a sub procedure

2012-09-22 Thread leledumbo
Code please? The error indicates that you're accessing instance members from a class member. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Passing-Sender-to-a-sub-procedure-tp4026765p4026767.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] strange error with RichMemo

2012-09-21 Thread leledumbo
Add the package unit to the lpr uses clause, or check "add unit to the uses clause" or something similar in the package viewer -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-strange-error-with-RichMemo-tp4026757p4026760.html Sent from the Free Pascal -

Re: [Lazarus] "Running" a library

2012-09-14 Thread leledumbo
> A library cannot be run alone. However there 2 kinds of libraries: a dynamic library (.dll, .so) and a static library. You can test your library code by creating a program that links the code statically, or uses its code units directly. Ehm... FPC can't create static libraries... anymore :)

[Lazarus] "Running" a library

2012-09-14 Thread leledumbo
Currently, if we have a library project, there's no way to test it without creating 2nd project which is an application. Should Lazarus implement something like V$ does? i.e. when "Run" is executed on a library project, the IDE then ask for an executable to run (the executable uses the library, so

Re: [Lazarus] Passing a section of an array to a function.

2012-09-10 Thread leledumbo
> If you know the amount of bytes you want to copy then you should use "Copy(buf, 32, count)" as argument for decompress_r or if you don't know the amount you should change your function from "array of Byte" to "PByte" and pass the address of the 32nd byte using "@buf[32]" Or use the array sli

Re: [Lazarus] Writing application that sends things into facebook

2012-09-03 Thread leledumbo
Start from here: http://developers.facebook.com/docs/reference/api/ The authentication uses OAuth 2.0 which I'm not aware any implementation of. BigChimp and ludob created an OAuth 1.0a implementation in fpctwit, maybe you could take that as a base (though I'm not sure about the effort since I have

Re: [Lazarus] Delphi post-XE3 roadmap

2012-09-03 Thread leledumbo
Seems like those bankers finally realized their mistake: https://forums.embarcadero.com/thread.jspa?threadID=76285&tstart=0 The restriction now applies only to dbExpress. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Delphi-post-XE3-roadmap-tp4025806p

Re: [Lazarus] Delphi post-XE3 roadmap

2012-08-30 Thread leledumbo
> This is just what can make such classes dead slow in real life use. +1/0 (tried with Lua, Java, Python, etc. no more small, obvious, straight, easy to write code to load a file contents into a string variable easily. complicated techniques required) > Now replace "five" by "MyAccount", and fee

Re: [Lazarus] Delphi post-XE3 roadmap

2012-08-29 Thread leledumbo
Embrace yourself, people. We might get a lot of "attack" from to-be-previous-Delphi-users (assuming they finally look at Lazarus/FPC instead of moving to other dev platforms). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Delphi-post-XE3-roadmap-tp4025

Re: [Lazarus] Delphi post-XE3 roadmap

2012-08-29 Thread leledumbo
> The intermediate results in string expressions can cause much overhead. Standard problems in languages whose strings are immutable. Simply avoid it... don't even try to implement it... please... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Delphi-p

Re: [Lazarus] Lazarus IDE v0.5 - a blast from the past

2012-08-29 Thread leledumbo
I wasn't aware of its existence when this version came out :') *my first Lazarus is 0.9.23* -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-IDE-v0-5-a-blast-from-the-past-tp4026023p4026081.html Sent from the Free Pascal - Lazarus mailing list arc

Re: [Lazarus] Lazarus assembler debug window format

2012-08-25 Thread leledumbo
Oh, I didn't know what that field is for. If only it's named "Debugger command line options" or something it similar it would be clearer to me. I can get the feature running as well now, thanks :) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Lazarus-a

Re: [Lazarus] Lazarus assembler debug window format

2012-08-24 Thread leledumbo
I don't see any way to interact with the debugger, so it's not possible ATM. GDB can be set to display disassembly in intel syntax through "set disassembly-flavor intel" but we need a way to feed it to GDB. Please file a feature request. -- View this message in context: http://free-pascal-lazar

Re: [Lazarus] LazFreeType and documentation

2012-08-24 Thread leledumbo
Looks like there should be 2 files: - lazarus/lcl/lazfreetypeintfdrawer.pas - lazarus/components/lazutils/easylazfreetype.pas perhaps at the time the wiki was written, both files are merged as one, or the wiki contains typo. -- View this message in context: http://free-pascal-lazarus.989080.n3

Re: [Lazarus] Question about fcl-web Request's Handled variable

2012-08-23 Thread leledumbo
I don't know about the Handled parameter, but I handle cookies exactly like what you did through a common ancestor. But the cookies handling is done at OnBeforeRequest, with descendants link their OnBeforeRequest to it. So descendants code are still clean from this. -- View this message in conte

Re: [Lazarus] My Lazarus Dream: Cross Compile Linux64 -> Linux32 on Ubuntu 12.04

2012-08-23 Thread leledumbo
In short, it's the same as X11 one. You must have 32-bit versions of those (development) libraries. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-My-Lazarus-Dream-Cross-Compile-Linux64-Linux32-on-Ubuntu-12-04-tp4025869p4025883.html Sent from the Free P

Re: [Lazarus] Delphi post-XE3 roadmap

2012-08-22 Thread leledumbo
> They plan to use LLVM (though this is not mentioned in that roadmap article). I've read this somewhere before, but AFAIK only for the C++ builder (they might create a Delphi frontend though, should be easy for them since Delphi compiler is written in C++). -- View this message in context: h

Re: [Lazarus] What to use instead of Delphi's RichEdit component?

2012-08-19 Thread leledumbo
Because Delphi's RichEdit is a wrapper over Win32 API component which doesn't have counterpart in other widgetsets. There are two alternatives which are built in a cross-platform way: http://wiki.freepascal.org/RichMemo http://wiki.freepascal.org/RichView (no editing features AFAIK) -- View thi

Re: [Lazarus] TProcess pipe through StdIn

2012-08-17 Thread leledumbo
Those programs usually either wait for EOLn or EOF, so perhaps you want to try appending LineEnding to your text or Close the Input (guessing this is the way to signal an EOF). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-pipe-through-StdIn-t

Re: [Lazarus] fpWeb long process progress

2012-08-13 Thread leledumbo
> How can I send responses by intervals? AFAIK that's not the way web application works. It's the client that should be querying the server in a regular interval (using AJAX request perhaps). The server can track current progress status and return that right away when asked. -- View this messag

Re: [Lazarus] Problems with Lazarus on Ubuntu 11.10

2012-08-10 Thread leledumbo
> The Unity launcher gets unaccessible So you're using Unity? Sounds like there are quite a lot of problems/questions already asked about it either here or in the forum... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Problems-with-Lazarus-on-Ubuntu-1

Re: [Lazarus] Adds Gauge component on Lazarus

2012-07-27 Thread leledumbo
I think we already have them: http://wiki.freepascal.org/uE_Controls http://wiki.freepascal.org/BGRAControls#TBGRAKnob -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Adds-Gauge-component-on-Lazarus-tp4024969p4024976.html Sent from the Free Pascal - Laza

Re: [Lazarus] How does Lazarus find SQLite?

2012-07-24 Thread leledumbo
> This sounds like a bug in the component Or by design ;) Try asking the author, it should be written somewhere in the package files -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-How-does-Lazarus-find-SQLite-tp4024909p4024922.html Sent from the Free P

Re: [Lazarus] How does Lazarus find SQLite?

2012-07-24 Thread leledumbo
> It seems the Lazaurs uses SQLite. (For what, btw? just curious) Not at all, except if you install SQLite component. > So how does Lazarus find the SQLite library? Windows: anywhere in PATH *nix: /usr/lib or /usr/local/lib usually, but other places are possible (not really sure about all of th

Re: [Lazarus] Need help to get IDE forms object

2012-07-23 Thread leledumbo
It works! Yeah! Guess I'll need to explore LazarusIDE object, though working when the last source editor is closed the notebook is destroyed as well and on the next creation it doesn't get docked anymore. Furthermore, the form being designed is still flying around. -- View this message in contex

Re: [Lazarus] Need help to get IDE forms object

2012-07-22 Thread leledumbo
> Or do it manually: Connect the event LazarusIDE.AddHandlerOnIDERestoreWindows. In this event create the forms you need at start up: AForm:=IDEWindowCreators.GetForm(FormName,true); The FormName is one of 'MessagesView', 'CodeExplorerView', 'ProjectInspector', 'ObjectInspectorDlg'. AH

Re: [Lazarus] Need help to get IDE forms object

2012-07-20 Thread leledumbo
That could be of help, but only for the source editor. Isn't there any universal way? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Need-help-to-get-IDE-forms-object-tp4024867p4024869.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com.

[Lazarus] Need help to get IDE forms object

2012-07-20 Thread leledumbo
I need to get the object (TCustomForm) of IDE forms, namely object inspector, code explorer and source notebook. I need this to help a docking solution (kzdesktop: http://forum.lazarus.freepascal.org/index.php/topic,16736.0.html) to work. The successful way in 0.9.30.4 which is not working on 1.1 i

Re: [Lazarus] TProcess-problem

2012-07-10 Thread leledumbo
Would you mind giving some code? It's hard to analyze just from your words. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TProcess-problem-tp4024673p4024675.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] httpWebServer does not show images for some users

2012-07-08 Thread leledumbo
> RegisterFileLocation, AllowDefaultModule and AllowDefaultModule are not found in the chm help files I'd be surprised if you can find them in the chm since they're undocumented ATM, I'm planning on writing the docs for them. Please wait, since they're part of fcl-web while I'm currently documenti

Re: [Lazarus] Package: Adding httpd.pas link error in linux

2012-07-07 Thread leledumbo
> I have one httpd, only httpd22 /usr/lib/fpc/2.6.0/units/i386-linux/httpd22 and there is httpd.ppu What if you remove it from the package? Since httpd is already in compiler' search path, there should be no need to add it as part of a package. -- View this message in context: http://free-pascal

Re: [Lazarus] IDE more ...

2012-06-29 Thread leledumbo
It's known incomplete persistence implementation of anchordockingdsgn package, which is a show stopper for me as well to use that docking solution. I currently use easydockmgrdsgn package which despite it doesn't look as beautiful as anchordockingdsgn, it works, and I can dock every windows I want

Re: [Lazarus] Editable form in runtime

2012-06-20 Thread leledumbo
http://sourceforge.net/projects/jvruntimedesign/ -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Editable-form-in-runtime-tp4024492p4024495.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___

Re: [Lazarus] Can a C++ program use a freepascal object?

2012-06-06 Thread leledumbo
Yes, using C style procedural interface. You have to (un)wrap the object oriented code on both sides. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Can-a-C-program-use-a-freepascal-object-tp4024363p4024368.html Sent from the Free Pascal - Lazarus mailing

Re: [Lazarus] Canvas size mismatch with control size

2012-06-05 Thread leledumbo
Yes, that's true, and I have no idea whether it's by design or not. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Canvas-size-mismatch-with-control-size-tp4024351p4024358.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] Shared library names

2012-06-05 Thread leledumbo
Just use the -o option, but I'm not really sure about the date and time -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Shared-library-names-tp4024345p4024357.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. --

Re: [Lazarus] torry for lazarus?

2012-06-05 Thread leledumbo
Not as comprehensive as that (not even all components are there): http://sourceforge.net/projects/lazarus-ccr -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-torry-for-lazarus-tp4024352p4024356.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] Undefined identifier: RequireDerivedFormResource

2012-06-04 Thread leledumbo
Because it doesn't exist in your installation? Try to cleanup your installation, perhaps it's messy... to make sure, just try to recompile the whole IDE (that would recompile LCL as well). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Undefined-identifie

Re: [Lazarus] Statistics about Lazarus and FPC

2012-06-02 Thread leledumbo
That would be quite... hard to impossible, but this could help a few: http://www.ohloh.net/p/freepascal http://www.ohloh.net/p/lazarus http://sourceforge.net/projects/freepascal/files/stats/timeline http://sourceforge.net/projects/lazarus/files/stats/timeline http://www.lazarus.freepascal.org/index

Re: [Lazarus] newbie questions

2012-06-01 Thread leledumbo
> it "uses windows, graph;" where can I find reference info, examples and other doc about these libs? Windows unit is a binding to Windows API. It's not documented as it would be HUGE work and too duplicated since MSDN already documents it very well. The problem is that you have to understand

Re: [Lazarus] crash on bootstrap

2012-06-01 Thread leledumbo
Platform + OS + widgetset please... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-crash-on-bootstrap-tp4024245p4024288.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazaru

Re: [Lazarus] A few questions

2012-06-01 Thread leledumbo
> How is the status of latest Lazarus on Ubuntu? I had very bad experience during Ubuntu 11.04 and 11.10, notable problem is Laz does not play well with Unity global menu. It works fine, very fine... but on KDE XD * I always hate Gnome, now I even hate Unity more than Gnome -- View this messag

Re: [Lazarus] Undefined identifier: RequireDerivedFormResource

2012-06-01 Thread leledumbo
http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-February/060229.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Undefined-identifier-RequireDerivedFormResource-tp4024284p4024286.html Sent from the Free Pascal - Lazarus mailing list archive

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread leledumbo
Oh, I forgot that you need to: MimeTypes.LoadFromFile(AMimeTypesFile); first. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Function-to-get-the-mimetype-from-a-file-extension-tp3973851p3973969.html Sent from the Free Pascal - Lazarus mailing list archi

Re: [Lazarus] Function to get the mimetype from a file extension

2012-05-09 Thread leledumbo
No, we don't have a builtin one. However using any mime.types file (I forgot where I got mine, it's either from one of fpweb/lnet demo or my apache/php installation) you can do what you want: uses fpmimetypes; ... TheMimeType := MimeTypes.GetMimeType(ExtractFileExt(AFileName)); // TheMimeType no

Re: [Lazarus] Form in DLL

2012-04-30 Thread leledumbo
This is almost exactly the way I wrote plugin architecture for my apps. The difference is that the dll function call (which opens a form) is blocked within Application.Initialize and Application.Terminate, so the dll function (and the form) lifetime is only along the executed function. The only cur

Re: [Lazarus] Editor Toolbar as default package

2012-04-27 Thread leledumbo
> well, i think the editortoolbar buttons should be related to source management tools, as copy, paste, breakpoints, undo, redo, save as(s)... I didn't put standard edit actions (undo/redo/cut/copy/paste/save( as)/etc), because I already comfortable with the shortcut. However, this is not the case

Re: [Lazarus] Editor Toolbar as default package

2012-04-27 Thread leledumbo
Attached is my settings, if any of you are interested: http://free-pascal-lazarus.989080.n3.nabble.com/file/n3944149/editortoolbar.xml editortoolbar.xml -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Editor-Toolbar-as-default-package-tp3943071p3944149.ht

Re: [Lazarus] Key-down event codes

2012-04-22 Thread leledumbo
I don't really know about it, but as long as you use VK_* constants from LCLType unit I guess it would be no problem (well... I never had such a problem on GTK2 / Qt / WinAPI, the 3 widgetsets that I use) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Key

Re: [Lazarus] File not found.

2012-04-13 Thread leledumbo
ElnOutError due to file not found should print out the filename. Is it "/home/dave/Documents/ACAD/4m2.dwg" or "" or even nothing at all? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-File-not-found-tp3909198p3909550.html Sent from the Free Pascal - Lazar

Re: [Lazarus] What is this compiling errors (with new 0.9.30.4)

2012-03-25 Thread leledumbo
Looks like a mix of old and new .o's, have you tried cleaning up everything? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-What-is-this-compiling-errors-with-new-0-9-30-4-tp3842213p3857448.html Sent from the Free Pascal - Lazarus mailing list archive at

Re: [Lazarus] FPDocManager news

2012-03-08 Thread leledumbo
Where is this FPDocManager? I've seen a thread about it, but I can't find (or miss due to skimming) where it is. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-FPDocManager-news-tp3810758p3811886.html Sent from the Free Pascal - Lazarus mailing list archi

Re: [Lazarus] Cannot run lazarus other than from terminal

2012-03-04 Thread leledumbo
A reboot fixes the issue :) Though I'm still curious why... -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Cannot-run-lazarus-other-than-from-terminal-tp3798099p3798160.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- _

[Lazarus] Cannot run lazarus other than from terminal

2012-03-04 Thread leledumbo
Lazarus svn r35704 FPC svn r20468 Kubuntu 11.10 x86 Whenever I try to execute from desktop shortcut (.desktop) or double-clicking associated file, I got "Disk full" message box. I've n-tuple checked whether there are other Lazarus/FPC installed but `which` seems to point to the correct instance an

Re: [Lazarus] Contribute to a book instead of wiki?

2012-03-02 Thread leledumbo
> Oh yes, and it shows them grafically, not as raw text. Now that's something I don't know :) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3793507.html Sent from the Free Pascal - Lazarus mailing list arc

Re: [Lazarus] Contribute to a book instead of wiki?

2012-03-01 Thread leledumbo
The book seems to be written with OpenOffice.org / LibreOffice, that would be difficult to track changes. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Contribute-to-a-book-instead-of-wiki-tp3789922p3792385.html Sent from the Free Pascal - Lazarus mailin

Re: [Lazarus] Problem compiling lazarus trunk

2012-02-28 Thread leledumbo
Same error I got about two days ago svn. I just crazily typecast the problematic expression to the expected type and it compiles smoothly (and no bug so far, because I haven't used the dbgrid :p) -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Problem-comp

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2011-12-30 Thread leledumbo
> What commands do I have to use to rebuild FPC another target OS/CPU like Win32/i386 will be supported ? http://wiki.lazarus.freepascal.org/Cross_compiling -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Custom-OS-CPU-targets-for-FPC-build-help-tp3621041

Re: [Lazarus] read single char from STDIN

2011-11-18 Thread leledumbo
Try the example here: http://www.freepascal.org/docs-html/rtl/keyboard/getkeyevent.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-read-single-char-from-STDIN-tp3518536p3520501.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.co

Re: [Lazarus] Support for dotted unit name

2011-11-04 Thread leledumbo
> From the CodeRage 6 videos all I could see is that they now differentiate between VCL (eg: vcl.forms.pas) and FireMonkey (eg: fm.forms.pas) units. Too bad... now they will face problems when refactoring the framework, possibly causing users to create ifdefs in uses clause. I don't really know

Re: [Lazarus] Support for dotted unit name

2011-11-04 Thread leledumbo
> I cannot confirm that, seeing no such option in the IDE. Well, do you have it installed? Or at least have you read http://wiki.lazarus.freepascal.org/KOL-CE this ? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Support-for-dotted-unit-name-tp3476470

Re: [Lazarus] object streams

2011-09-20 Thread leledumbo
AFAIK no, only TComponent derived classes have streamer implementation now (take a look componentstreaming and pascalstream example). -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-object-streams-tp3351667p3352663.html Sent from the Free Pascal - Lazarus

Re: [Lazarus] Database Library Issues

2011-09-14 Thread leledumbo
> Aparently, Lazarus is looking for libpq.so.4, while my implementations have libpq.so.5 It shouldn't be hardcoded AFAIK: libpq.so only, which may be a symlink to the correct version. Try checking the source code whether the .4 is hardcoded or not. -- View this message in context: http://free-pa

Re: [Lazarus] Package output directory not inherited by project

2011-08-31 Thread leledumbo
> Your embweb is designtime only. > See Package options / IDE integration / package type. Right, thanks. It's the default value of the package. Should this be reported to Joost? I took it from fppkg. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Package-output-

[Lazarus] Package output directory not inherited by project

2011-08-29 Thread leledumbo
* cross posted from forum * I'm converting a fpWeb project to use EmbWeb, however I got compilation errors saying fpEmbWeb unit not found. When I open project options->inherited, I don't see any EmbWeb path (and indeed its path is not added to -Fu options) there yet I have it as the project depend

Re: [Lazarus] [fpc-devel] C++ gets language-internal concurrency support

2011-08-22 Thread leledumbo
> I seem to remember that there is an article about same in the FPC Wiki. Yep, here: http://wiki.lazarus.freepascal.org/OpenMP_support but it looks like no one is working on it... More can be found here: http://wiki.lazarus.freepascal.org/Category:Parallel_programming -- View this message in co

Re: [Lazarus] 67 Open source replacement apps, and we are not on the list :(

2011-08-17 Thread leledumbo
The Development Tools lists only MSVS and Adobe ColdFusion, surely the author is just a mainstream person. He knows only what marketing told him. -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-67-Open-source-replacement-apps-and-we-are-not-on-the-list-tp3

Re: [Lazarus] Files with .rst, .compiled files and .lrs extensions

2011-08-16 Thread leledumbo
> Using .res files requires fpc 2.4.4+ and 0.9.29+. Wasn't it 2.4.0+? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Files-with-rst-compiled-files-and-lrs-extensions-tp3258318p3258724.html Sent from the Free Pascal - Lazarus mailing list archive at Nabbl

Re: [Lazarus] MessageDLG and localization Win/Linux

2011-08-12 Thread leledumbo
> The same app compiled on my Debain Sid, i get > buttons Captions 'Ja' and 'Nein' even if i comment out the code above. AFAIK your system locale is the default, either you have to provide language choice options or hardcode the language you want to translator functions. -- View this message in

Re: [Lazarus] Is it safe to combine Gtk/Qt and Win32 in the same source tree?

2011-08-11 Thread leledumbo
> Is it safe to have both the Linux and Windows projects in the same tree, without any harmful side effects? Yes, of course. Did you do it so they could share common units? > I would love to use Qt or Gtk instead of Win32 for the Windows side, but I > am not ready to locate subtle bugs and incomp

Re: [Lazarus] 'with' is evil, isn't it?

2011-08-03 Thread leledumbo
> I think a warning if the name inside of 'with' overrides a name from outer scope would be an acceptable compromise. I agree with this solution, it doesn't change the syntax, yet it gives better chance to spot wrong scope of identifier which could happen during porting or upgrade. -- View this m

Re: [Lazarus] The right way of installing FPC to use with Lazarus?

2011-08-03 Thread leledumbo
> Lazarus requires rtl and package sources to lay inside \sources while FPC provides them inside fpcsrc folder. Huh? Isn't it configurable in environment options? I kept FPC binaries, FPC source code, and Lazarus (can't be separated between binaries and source code) in their own directories. That

<    1   2   3   4   >