[Lazarus] Dependencies in XUbuntu 13.10

2014-03-29 Thread Leonardo M. Ramé
/usr/bin/ld: cannot find -lglib-2.0 /usr/bin/ld: cannot find -lgthread-2.0 /usr/bin/ld: cannot find -lgmodule-2.0 /usr/bin/ld: cannot find -lpango-1.0 /usr/bin/ld: cannot find -lcairo /usr/bin/ld: cannot find -latk-1.0 Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Dependencies in XUbuntu 13.10

2014-03-29 Thread Leonardo M. Ramé
On 29/03/14 17:25, Leonardo M. Ramé wrote: I'm trying to compile trunk in a newly installed XUbuntu 13.10, but I'm stuck because of lacking dependencies. Do you know which packages I have to install to met those dependencies?. Here's the output o the linking step: ... Target OS: Linux for x86

[Lazarus] fcl-web deleted headers?

2014-03-27 Thread Leonardo M . Ramé
x86_64 and Lazarus trunk. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Brook-fpWeb POST without fields

2014-03-20 Thread Leonardo M . Ramé
://127.0.0.1:8080/webodf/programs/editor/src-localeditor.html Accept-Encoding: gzip,deflate,sdch Accept-Language: es-419,es;q=0.8,en;q=0.6 Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Brook-fpWeb POST without fields

2014-03-20 Thread Leonardo M . Ramé
containing a typed array that I'm trying to send to the server using a POST command. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] Brook-fpWeb POST without fields

2014-03-20 Thread Leonardo M . Ramé
On 2014-03-20 20:03:45 +0100, Michael Van Canneyt wrote: On Thu, 20 Mar 2014, Leonardo M. Ramé wrote: Hi, a CGI I'm making needs to receive a POST message containing binary data, but it doesn't contain fields, so I cannot access that data from my program. What is the problem

Re: [Lazarus] Brook-fpWeb POST without fields

2014-03-20 Thread Leonardo M . Ramé
On 2014-03-20 15:12:26 -0300, silvioprog wrote: 2014-03-20 14:59 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: Hi, a CGI I'm making needs to receive a POST message containing binary data, but it doesn't contain fields, so I cannot access that data from my program. I'm using

Re: [Lazarus] Brook-fpWeb POST without fields

2014-03-20 Thread Leonardo M . Ramé
On 2014-03-20 16:23:36 -0300, silvioprog wrote: 2014-03-20 16:07 GMT-03:00 Leonardo M. Ramé l.r...@griensu.com: [...] Let me clarify this. My app is a CGI program running on an Apache server, the client is a javascript file running on the same server. The relevant part of the client

Re: [Lazarus] What better way to use the mailing list?

2014-03-20 Thread Leonardo M . Ramé
. They simply don't arrive on my email. :/ Is there any way to receive ALL messages from the list, in full, and in real time as they are sent by the authors? Thank you! Are you sure your ISP is not filtering or something?, what MUA do you use?. -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Compiling on OpenBSD

2014-03-06 Thread Leonardo M . Ramé
SecondaryConfigPath=/etc/lazarus TApplication.HandleException Access violation Stack trace: $00020CE4A389 line 43 of /usr/src/lib/libc/stdio/snprintf.c -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus

[Lazarus] Help with algorithm

2013-12-20 Thread Leonardo M . Ramé
transformations, then extract the overlapping part and lastly paint. Before doing so, I'm asking here, because I'm afraid it could take too long to apply n transformations before displaying the final result. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Help with algorithm

2013-12-20 Thread Leonardo M . Ramé
On 2013-12-20 16:49:06 +, Mark Morgan Lloyd wrote: Leonardo M. Ramé wrote: I'm thinking of copying the buffer into an two dimensional matrix, apply transformations, then extract the overlapping part and lastly paint. Before doing so, I'm asking here, because I'm afraid it could take too

[Lazarus] Pointer type handling

2013-12-09 Thread Leonardo M . Ramé
returned by the library. If I pass a Pointer (instead of a PWord or PByte) and cast it to PWord, for example. I get the same result if I have passed a PByte. How can I handle a situation like this without explicitly define each type?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Pointer type handling

2013-12-09 Thread Leonardo M . Ramé
On 2013-12-09 16:24:22 +0100, Hans-Peter Diettrich wrote: Leonardo M. Ramé schrieb: Hi, I'm passing a pointer buffer as void * to a C library that returns Uint8 or Uint16 (and signed types). If I explicitly declare the buffer as PByte, PWord, etc. I get exactly what I need, but, I would

[Lazarus] Setting TextLineBreakStyle in TMemo

2013-11-28 Thread Leonardo M . Ramé
myMemo.Lines.TextLineBreakStyle := tlbsCRLF, also my program adds lines to the TMemo using myMemo.Lines.Add(text). But, when I do myMemo.Lines.SaveToFile(...) the result is an LF (unix) text file. Does anyone what I'm doing wrong?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] Stored Procedure Params

2013-11-18 Thread Leonardo M . Ramé
:= 'value1'; SqlQuery1.ParamByName('param2').AsString := 'value2'; What I'm doing wrong?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

[Lazarus] utf8process error while compiling lazarus on Win32

2013-11-05 Thread Leonardo M . Ramé
] Error 2 Any hint?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] New PostgreSql 9.3 and JSON

2013-09-09 Thread Leonardo M . Ramé
Hi, I've published a blogpost about getting JSON from queries using the new PostgreSql 9.3. Please take a look and comment: http://leonardorame.blogspot.com.ar/2013/09/lazarus-postgresqls-json-your-secret.html Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] List Printer Resolutions

2013-08-23 Thread Leonardo M . Ramé
Hi, I would like to know if the Printer instance has a method to get the list of accepted DPI resolutions on each printer. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

[Lazarus] Memory leaks in AggPas

2013-07-30 Thread Leonardo M . Ramé
/Agg2D.pas $0057C2C8 line 3110 of ../render/software/Agg2D.pas ... -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Memory leaks in AggPas

2013-07-30 Thread Leonardo M . Ramé
On 2013-07-30 23:00:53 +0200, Mattias Gaertner wrote: On Tue, 30 Jul 2013 17:39:30 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: Hi, this is part of the dump generated by heaptrace from an fpGui application that uses AggPAS (the AggPas code from fpGui is the same as in Lazarus

Re: [Lazarus] Memory leaks in AggPas

2013-07-30 Thread Leonardo M . Ramé
On 2013-07-30 23:25:48 +0200, Mattias Gaertner wrote: On Tue, 30 Jul 2013 18:19:27 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: [...] You have the backtrace and you have your code that lead to this mem leak. So you have more information than we do. What help do you need

[Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
for runtime. Is there a way to build runtime packages using Lazbuild?. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
On 2013-06-25 18:57:39 -0300, Leonardo M. Ramé wrote: Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd machine, but, as this app requires the run-time package utf8tools I've tried compiling using lazbuild: lazbuild --add-package

Re: [Lazarus] Lazbuild and RunTime Packages

2013-06-25 Thread Leonardo M . Ramé
On 2013-06-25 17:48:10 -0500, Paul Breneman wrote: On 06/25/2013 04:57 PM, Leonardo M. Ramé wrote: Hi, I'm trying to compile Xidel (http://videlibri.sourceforge.net/xidel.html) on a headless FreeBsd machine, but, as this app requires the run-time package utf8tools I've tried compiling using

[Lazarus] Fatal error compiling 41361

2013-05-22 Thread Leonardo M . Ramé
: There were 13 errors compiling module, stopping ERROR: tool reported error make: *** [useride] Error 2 My version of fpc is this: Free Pascal Compiler version 2.7.1 [2013/05/11] for x86_64 -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] TFPImageCanvas alphablend

2013-05-12 Thread Leonardo M . Ramé
is black. Does anyone know a way to create a TFPMemoryImage created by composing one or more PNGs without losing the alpha channel?. I know this can be done with TBgraBitmap or AggPass, but I cannot use then right now. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-11 Thread Leonardo M . Ramé
On 2013-05-11 09:45:14 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: On 2013-05-10 21:53:21 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: On 2013-05-10 21:29:48 +0200, Michael Van Canneyt wrote: Can you produce

[Lazarus] Layered TFPImage

2013-05-10 Thread Leonardo M . Ramé
is a way to copy one image WITH TRANSPARENT BACKGROUND onto another. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

[Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-10 Thread Leonardo M . Ramé
to be there. The resulting image is an TFPMemoryImage composed of two TFPImageCanvas one containing the image and a 2nd one containing the text. How can I avoid those red dots?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com attachment: freetypefont.png

Re: [Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-10 Thread Leonardo M . Ramé
On 2013-05-10 20:34:00 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: Hi, I'm writing text over TFPImageCanvas using a TFreeTypeFont, and I noted some times, the text contains wrong colors around the pixels of the text. I've attached an image to show

Re: [Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-10 Thread Leonardo M . Ramé
On 2013-05-10 21:00:37 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: On 2013-05-10 20:34:00 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: Hi, I'm writing text over TFPImageCanvas using a TFreeTypeFont, and I noted

Re: [Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-10 Thread Leonardo M . Ramé
On 2013-05-10 21:29:48 +0200, Michael Van Canneyt wrote: Can you produce a bitmap with just the text and see what that looks like ? I've tried that, and the result is the same. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus

Re: [Lazarus] TFPImageCanvas and TFreeTypeFont colors

2013-05-10 Thread Leonardo M . Ramé
On 2013-05-10 21:53:21 +0200, Michael Van Canneyt wrote: On Fri, 10 May 2013, Leonardo M. Ramé wrote: On 2013-05-10 21:29:48 +0200, Michael Van Canneyt wrote: Can you produce a bitmap with just the text and see what that looks like ? I've tried that, and the result is the same

[Lazarus] SIGSEGV when trying to use a TCustomControl

2013-04-19 Thread Leonardo M . Ramé
to make it work?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] SIGSEGV when trying to use a TCustomControl

2013-04-19 Thread Leonardo M . Ramé
On 2013-04-19 10:35:18 -0300, Flávio Etrusco wrote: On Fri, Apr 19, 2013 at 10:27 AM, Leonardo M. Ramé l.r...@griensu.com wrote: I'm creating a very basic TCustomControl with just a Constructor and its Destructor. TMyCustomControl = class(TCustomControl) public constructor Create

Re: [Lazarus] SIGSEGV when trying to use a TCustomControl

2013-04-19 Thread Leonardo M . Ramé
On 2013-04-19 10:53:09 -0300, Marcos Douglas wrote: On Fri, Apr 19, 2013 at 10:38 AM, Leonardo M. Ramé l.r...@griensu.com wrote: On 2013-04-19 10:35:18 -0300, Flávio Etrusco wrote: On Fri, Apr 19, 2013 at 10:27 AM, Leonardo M. Ramé l.r...@griensu.com wrote: I'm creating a very basic

[Lazarus] Library function trashing object (was: SIGSEGV when trying to use a TCustomControl)

2013-04-19 Thread Leonardo M . Ramé
memory position trashed?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Library function trashing object

2013-04-19 Thread Leonardo M . Ramé
that it is not a var parameter. Dňa 19. 4. 2013 19:18 Leonardo M. Ramé wrote / napísal(a): But I need the 2nd param to be changed by the function, that's why I declare it as var. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list

Re: [Lazarus] Library function trashing object

2013-04-19 Thread Leonardo M . Ramé
On 2013-04-19 21:08:29 +0200, Lubos Pintes wrote: I probably don't understand. You will be able to change it, I see no problem. It is a local variable which can be changed. Dňa 19. 4. 2013 20:55 Leonardo M. Ramé wrote / napísal(a): On 2013-04-19 20:52:04 +0200, Lubos Pintes wrote: I think

Re: [Lazarus] Library function trashing object

2013-04-19 Thread Leonardo M . Ramé
int f(int x); If you declare it as function f(var x: integer): integer; and then try to assign something to x, the access violation is very probably raised because x contains value, not address. Thanks for the explanation Lubos, much clear now. -- Leonardo M. Ramé http

[Lazarus] Slow pointer assignments

2013-04-18 Thread Leonardo M . Ramé
very slow (in terms of milliseconds) when the TBitmap is bigger. What I can do to make it faster?. P.S.: as you can see, I removed the way lRed, lGreen and lBlue are calculated, because that won't change the overall speed of the routine. - Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Slow pointer assignments

2013-04-18 Thread Leonardo M . Ramé
try it. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Slow pointer assignments

2013-04-18 Thread Leonardo M . Ramé
On 2013-04-18 12:49:07 -0300, Leonardo M. Ramé wrote: On 2013-04-18 08:48:11 -0700, leledumbo wrote: 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

Re: [Lazarus] Slow pointer assignments

2013-04-18 Thread Leonardo M . Ramé
On 2013-04-18 20:37:06 +0200, Ludo Brands wrote: On 04/18/2013 07:53 PM, Leonardo M. Ramé wrote: On 2013-04-18 12:49:07 -0300, Leonardo M. Ramé wrote: On 2013-04-18 08:48:11 -0700, leledumbo wrote: Assign all the RGBA value in one go, that would reduce the inner loop by 4 times. i.e

[Lazarus] TPicture SIGSEGV

2013-04-15 Thread Leonardo M . Ramé
:= @Changed; FGraphic.OnProgress := @Progress; Changed(Self); end; end; The assigned image is a .png I've set using the ObjectInspector's TImage.Picture property. Why the SIGSEGV is raised?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] TPicture SIGSEGV

2013-04-15 Thread Leonardo M . Ramé
On 2013-04-15 21:25:06 +0200, Bart wrote: On 4/15/13, Leonardo M. Ramé l.r...@griensu.com wrote: Hi, I'm using Lazarus on x86_64 compiled from today and fpc 20240. I've placed a TImage with a picture assigned, on a TForm. I need to do Image1.Picture.Bitmap, to obtain the bitmap

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-10 Thread Leonardo M . Ramé
On 2013-04-10 10:11:59 +0200, Felipe Monteiro de Carvalho wrote: Try using ISO_8859_1ToUTF8 from the unit lconvencoding.pas Or another routine from this unit, depending on the encoding. Great!, that worked. Thanks Felipe!. -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Leonardo M . Ramé
is: lStr := 'Añoranza'; What can I do to show accented characters?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Leonardo M . Ramé
On 2013-04-09 15:20:33 +0100, Martin wrote: On 09/04/2013 15:11, Leonardo M. Ramé wrote: Hi, I'm working with a C shared library that returns a pointer to char. It's all ok when not using special characters such as ñ or accents, but when I get these, they are replaced by ? signs

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Leonardo M . Ramé
On 2013-04-09 15:28:56 +0100, Martin wrote: On 09/04/2013 15:22, Leonardo M. Ramé wrote: On 2013-04-09 15:20:33 +0100, Martin wrote: On 09/04/2013 15:11, Leonardo M. Ramé wrote: Hi, I'm working with a C shared library that returns a pointer to char. It's all ok when not using special

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Leonardo M . Ramé
On 2013-04-09 18:41:06 +0300, Anton Kavalenka wrote: On 09.04.2013 18:07, Leonardo M. Ramé wrote: On 2013-04-09 15:28:56 +0100, Martin wrote: On 09/04/2013 15:22, Leonardo M. Ramé wrote: On 2013-04-09 15:20:33 +0100, Martin wrote: On 09/04/2013 15:11, Leonardo M. Ramé wrote: Hi, I'm working

Re: [Lazarus] PAnsiChar to UTF8 issues

2013-04-09 Thread Leonardo M . Ramé
On 2013-04-09 15:35:18 -0400, waldo kitty wrote: On 4/9/2013 14:42, Howard Page-Clark wrote: On 09/04/13 6:35, Leonardo M. Ramé wrote: No, I've tried all kinds of combinations of ansitoutf8, unicodestring, etc, but nothing works, all returns ? or the box with the X in the place of ñ

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-07 Thread Leonardo M . Ramé
On 2013-04-07 10:54:12 +0200, Michael Van Canneyt wrote: On Sat, 6 Apr 2013, Leonardo M. Ramé wrote: On 2013-04-07 00:04:45 +0200, Michael Van Canneyt wrote: On Sat, 6 Apr 2013, Leonardo M. Ramé wrote: On 2013-04-06 13:22:39 -0300, Leonardo M. Ramé wrote: On 2013-04-06 17:46:06

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-06 Thread Leonardo M . Ramé
On 2013-04-06 00:04:07 +0200, Mattias Gaertner wrote: On Fri, 5 Apr 2013 17:33:22 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: Hi, it must be that I've been working for more than 8 hrs but I can't find where the problem is... I need to pass a file via stdIn to TProcess

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-06 Thread Leonardo M . Ramé
On 2013-04-06 17:18:29 +0200, Mattias Gaertner wrote: On Sat, 6 Apr 2013 11:55:41 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: On 2013-04-06 00:04:07 +0200, Mattias Gaertner wrote: On Fri, 5 Apr 2013 17:33:22 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: Hi, it must

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-06 Thread Leonardo M . Ramé
On 2013-04-06 17:46:06 +0200, Mattias Gaertner wrote: On Sat, 6 Apr 2013 12:37:06 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: [...] Check return value of Proc.Input.Write. And call Proc.CloseInput when your input was written completely. Mmm, I'm getting the same result

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-06 Thread Leonardo M . Ramé
On 2013-04-06 13:22:39 -0300, Leonardo M. Ramé wrote: On 2013-04-06 17:46:06 +0200, Mattias Gaertner wrote: On Sat, 6 Apr 2013 12:37:06 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: [...] Check return value of Proc.Input.Write. And call Proc.CloseInput when your input

Re: [Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-06 Thread Leonardo M . Ramé
On 2013-04-07 00:04:45 +0200, Michael Van Canneyt wrote: On Sat, 6 Apr 2013, Leonardo M. Ramé wrote: On 2013-04-06 13:22:39 -0300, Leonardo M. Ramé wrote: On 2013-04-06 17:46:06 +0200, Mattias Gaertner wrote: On Sat, 6 Apr 2013 12:37:06 -0300 Leonardo M. Ramé l.r...@griensu.com wrote

[Lazarus] Can't copy TMemoryStream to TProcess.Input

2013-04-05 Thread Leonardo M . Ramé
'); CompressLZMA(lStr).SaveToFile('output.lzma'); finally lStr.Free; end; end. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Leonardo M . Ramé
to the data_rows database referencin to which column this cell is related. 4) To get the spreadsheet, please read this: http://stackoverflow.com/questions/3002499/postgresql-crosstab-query Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus

Re: [Lazarus] data matrix with thousands of columns

2013-03-26 Thread Leonardo M . Ramé
to insert millions of entries when application is running and this solution will slow enormously the app. If you know the columns in advance, nothing stops you from creating such large tables. -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:02:18 +0100, Mattias Gaertner wrote: On Sun, 24 Mar 2013 14:51:26 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: lStream.WriteBuffer(lTmpBuff^, lBufSize*SizeOf(Word)); I've already tried that, but it doesn't work as expected. Maybe the problem is caused because lBufSize

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 15:19:11 -0300, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé l.r...@griensu.com: Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: lTmpBuff := lBuffer; I := 0; while I lBufSize do begin lStream.Write(lTmpBuff^, SizeOf(PWord)); inc(lTmpBuff

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:21:49 +0100, Sven Barth wrote: On 24.03.2013 19:19, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé l.r...@griensu.com: Hi, I'm copying a buffer of PWord to a TMemoryStream using this code: lTmpBuff := lBuffer; I := 0; while I lBufSize do begin lStream.Write(lTmpBuff

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 19:46:09 +0100, Sven Barth wrote: On 24.03.2013 19:30, Leonardo M. Ramé wrote: On 2013-03-24 19:21:49 +0100, Sven Barth wrote: On 24.03.2013 19:19, Joao Morais wrote: 2013/3/24 Leonardo M. Ramé l.r...@griensu.com: Hi, I'm copying a buffer of PWord to a TMemoryStream using

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 20:29:44 +0100, Sven Barth wrote: On 24.03.2013 20:14, Leonardo M. Ramé wrote: On 2013-03-24 20:02:38 +0100, Sven Barth wrote: On 24.03.2013 19:57, Leonardo M. Ramé wrote: On 2013-03-24 19:46:09 +0100, Sven Barth wrote: On 24.03.2013 19:30, Leonardo M. Ramé wrote: On 2013-03-24

Re: [Lazarus] Copy buffer of PWord to TMemoryStream

2013-03-24 Thread Leonardo M . Ramé
On 2013-03-24 20:44:50 +0100, Sven Barth wrote: On 24.03.2013 20:39, Leonardo M. Ramé wrote: Now your lBufSize contains the number of pixels, so only Inc(I, 1) should be correct. And for copying all data at once you now need to use lBufSize * SizeOf(Word) instead. And the for-loop variant

[Lazarus] WebLaz GZipped response

2013-03-11 Thread Leonardo M . Ramé
Hi, in order to created gzip'd streams Responses to requests, do I need to explicitly create the gzipped stream?, if yes, does the browser decompress it automaticall?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus

Re: [Lazarus] WebLaz GZipped response

2013-03-11 Thread Leonardo M . Ramé
On 2013-03-11 16:22:09 -0300, silvioprog wrote: 2013/3/11 Leonardo M. Ramé l.r...@griensu.com Hi, in order to created gzip'd streams Responses to requests, do I need to explicitly create the gzipped stream?, if yes, does the browser decompress it automaticall?. Regards

Re: [Lazarus] WebLaz GZipped response

2013-03-11 Thread Leonardo M . Ramé
Yep. https://github.com/silvioprog/brookframework/tree/master/demos/http/transferencodingdeflate Change it to use gz. :) Thanks!, it's working great now. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list

Re: [Lazarus] XanaNews port to Lazarus

2013-03-06 Thread Leonardo M . Ramé
. Anyway, I am thinking of starting such a project. But to save time, I might try and port XanaNews to Lazarus. Has this been done already, or has somebody started work on this that I could contribute to? Did you try http://pan.rebelbase.com/ ? -- Leonardo M. Ramé http

Re: [Lazarus] Ok I give up!

2013-03-02 Thread Leonardo M . Ramé
'); Is there a space between SaveToFile and the opening parentheses?. Try removing it. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] XML Property Editor

2013-02-20 Thread Leonardo M . Ramé
I'm writing a component with a property containing an XML string and need a property editor for it. Before writing one I would like to know if there's one already done. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus

Re: [Lazarus] XML Property Editor

2013-02-20 Thread Leonardo M . Ramé
On 2013-02-20 14:43:36 -0300, Daniel Gaspary wrote: On Wed, Feb 20, 2013 at 12:00 PM, Leonardo M. Ramé l.r...@griensu.com wrote: I'm writing a component with a property containing an XML string and need a property editor for it. Before writing one I would like to know if there's one already

[Lazarus] Debugging generics

2013-02-15 Thread Leonardo M . Ramé
I've tried to enter into a method of a generic class (TTree from gtree.pas) using F7, but, instead of entering into that method, the ide shows the red bar on the caller unit. Does anyone experienced problems while debugging generics?. Regards, -- Leonardo M. Ramé http

Re: [Lazarus] Debugging generics

2013-02-15 Thread Leonardo M . Ramé
On 2013-02-15 09:06:34 -0800, leledumbo wrote: I don't remember debugger support status for generics. But have you ensured the unit is compiled with debugging info? Mmm, I'm sure it wasn't compiled with debugging info. Thanks for the hint. -- Leonardo M. Ramé http

Re: [Lazarus] OT a bit - Planet Object Pascal

2013-02-13 Thread Leonardo M . Ramé
me an email with the feed details and I'll add you. Ido Hi Ido, congrats for the site. Feel free to add mine: http://leonardorame.blogspot.com/feeds/posts/default Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus

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

2013-01-17 Thread Leonardo M . Ramé
not a problem, because I'm the only one in charge of creating reports, a different story will be when the final user wants to create their own reports. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus

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

2013-01-17 Thread Leonardo M . Ramé
]github.com/silvioprog libHaru is exactly that, and I can confirm it works with Unicode Fonts, and everything I need. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] Editor and ObjectInspector

2013-01-10 Thread Leonardo M . Ramé
. Some times, I need to edit a form property without opening the form. I just click an object in the object treeview, then change a property in the Object Inspector. What do you think?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Change View unit/form (F12) bug

2013-01-06 Thread Leonardo M . Ramé
On 2013-01-06 10:14:30 +0100, Mattias Gaertner wrote: On Sat, 5 Jan 2013 22:36:51 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: On 2013-01-05 14:50:42 -0200, William Oliveira Ferreira wrote: using anchordocking? Yes. Please report this bug. Done. http

Re: [Lazarus] Change View unit/form (F12) bug

2013-01-06 Thread Leonardo M . Ramé
On 2013-01-06 10:14:30 +0100, Mattias Gaertner wrote: On Sat, 5 Jan 2013 22:36:51 -0300 Leonardo M. Ramé l.r...@griensu.com wrote: On 2013-01-05 14:50:42 -0200, William Oliveira Ferreira wrote: using anchordocking? Yes. Please report this bug. Mattias Mattias, I found

[Lazarus] Change View unit/form (F12) bug

2013-01-05 Thread Leonardo M . Ramé
is to go back and forth between unit1 and unit2, and press F12 until I see the correct form. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] New Lazarus User

2013-01-05 Thread Leonardo M . Ramé
. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Change View unit/form (F12) bug

2013-01-05 Thread Leonardo M . Ramé
On 2013-01-05 17:11:35 +0100, Bart wrote: On 1/5/13, Leonardo M. Ramé l.r...@griensu.com wrote: 1) Edit unit1.pas 2) Press F12 - view unit1.lfm 3) Press F12 to go back to the source editor. 4) Change tab to unit2.pas 5) Press F12 -- BUG!!! - you'll see unit1.lfm instead of unit2

Re: [Lazarus] Change View unit/form (F12) bug

2013-01-05 Thread Leonardo M . Ramé
On 2013-01-05 14:50:42 -0200, William Oliveira Ferreira wrote: using anchordocking? Yes. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

[Lazarus] Parsing SQL before OPEN

2012-12-01 Thread Leonardo M . Ramé
Hi, i'm creating a generic method for adding WHERE statement to ANY select query, and I'm wondering if I can traverse the FIELDS collection before executing the query, something like an SQL parser without execution. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] WebLaz bug

2012-11-29 Thread Leonardo M . Ramé
with lfm, but I'd add more info to the error message, for example ...Invalid value for property A, just add the property with problems. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] WebLaz bug

2012-11-29 Thread Leonardo M . Ramé
(name_of_removed_method) for property TFPWebAction.OnRequest. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] WebLaz bug

2012-11-28 Thread Leonardo M . Ramé
: Boolean); 5) Compile and test. When you invoke any action of this webmodule, you'll get this: Error reading XXX.Actions: Error reading TFPWebAction.OnRequest: Invalid value for property -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Cannot debug app (gdb errors)

2012-11-10 Thread Leonardo M . Ramé
On 2012-11-09 10:11:36 -0300, Leonardo M. Ramé wrote: Hi, I'm having some problems since a couple of days. I cannot start my app from the IDE, I get the same errors with or without debug information. My setup is this: Ubuntu 12.04 Linux 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15

Re: [Lazarus] Cannot debug app (gdb errors)

2012-11-10 Thread Leonardo M . Ramé
Solved!. As this project uses BGRABitmap, I've found this: http://www.lazarus.freepascal.org/index.php?topic=16495.0 The problem was fixed after I changed from DWARF to STABS. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] Cannot debug app (gdb errors)

2012-11-09 Thread Leonardo M . Ramé
/buildd/gdb-7.4-2012.04/gdb/buildsym.c:696: internal-error: la verificaci\303\263n de consistencia interna fall\303\263\nA problem internal to GDB has been detected,\nfurther debugging may prove unreliable. \n -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Cannot debug app (gdb errors)

2012-11-09 Thread Leonardo M . Ramé
On 2012-11-09 15:10:21 +0100, Martin wrote: On 09/11/2012 14:11, Leonardo M. Ramé wrote: Hi, I'm having some problems since a couple of days. I cannot start my app from the IDE, I get the same errors with or without debug information. My setup is this: Ubuntu 12.04 Linux 3.2.0-33-generic

Re: [Lazarus] Cannot debug app (gdb errors)

2012-11-09 Thread Leonardo M . Ramé
On 2012-11-09 15:20:45 +0100, michael.vancann...@wisa.be wrote: On Fri, 9 Nov 2012, Leonardo M. Ramé wrote: On 2012-11-09 15:10:21 +0100, Martin wrote: On 09/11/2012 14:11, Leonardo M. Ramé wrote: Hi, I'm having some problems since a couple of days. I cannot start my app from the IDE, I

Re: [Lazarus] Splash window with drop shadow

2012-11-04 Thread Leonardo M . Ramé
On 2012-11-02 22:02:03 +0200, Alberto Narduzzi wrote: That's what I meant. Cheers, A. Alberto, the problem is with alphablending all elements of the form, including the PNG image, become transparent. -- Leonardo M. Ramé http://leonardorame.blogspot.com

[Lazarus] TAChart equal range in two charts

2012-11-04 Thread Leonardo M . Ramé
get that range to use in the 2nd chart?. Regards, -- Leonardo M. Ramé http://leonardorame.blogspot.com attachment: graphs.png-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Splash window with drop shadow

2012-10-30 Thread Leonardo M . Ramé
, but couldn't you just create a PNG with only the shadow, alpha-something; make the borderless window slightly bigger and transparent where the shaow is, and just drop the PNG onto it? Cheers, A. Alberto, how can I make a window transparent?. -- Leonardo M. Ramé http://leonardorame.blogspot.com

Re: [Lazarus] Remote application

2012-10-29 Thread Leonardo M . Ramé
could connect the client to the server remotely. -- Leonardo M. Ramé http://leonardorame.blogspot.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

<    1   2   3   4   5   >