Re: [fpc-pascal] File monitoring Linux

2011-09-13 Thread Mattias Gaertner
On Tue, 13 Sep 2011 13:14:10 +0100 Martin Schreiber mse00...@gmail.com wrote: Am 13.09.2011 13:05, schrieb Mattias Gaertner: Hi, I'm searching some pascal code for file monitoring for Linux. That means getting notified if a file in a directory or its sub directories was modified. I

[fpc-pascal] Multiple enumerators per class

2011-09-15 Thread Mattias Gaertner
Hi all, I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly that it is not possible to have multiple enumerators per class. It even gave a proposal for a new feature that did not add anything new. I added an example how to add a second enumerator to a

Re: [fpc-pascal] Multiple enumerators per class

2011-09-15 Thread Mattias Gaertner
On Thu, 15 Sep 2011 18:52:30 -0300 Flávio Etrusco flavio.etru...@gmail.com wrote: On Thu, Sep 15, 2011 at 6:37 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Hi all, I found the Wiki page about the new for-in loop and found a misinformation. It stated wrongly

[fpc-pascal] arm controller unit

2011-09-26 Thread Mattias Gaertner
Hi, On target 'arm' sometimes the compiler uses the controller unit. For the codetools I need to know the exact conditions. What flags indicate that the controller unit is used? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] SIGPIPE avoid or catch

2011-09-27 Thread Mattias Gaertner
Hi all, When I start under Linux a process with TProcess [poUsePipes], write stuff to Input and the process exits I get a SIGPIPE (broken pipe), which kills my whole program immediately. How can I catch or avoid the SIGPIPE with TProcess? Mattias ___

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
Ralf A. Quint free...@gmx.net hat am 15. Oktober 2011 um 05:03 geschrieben: At 03:56 PM 10/14/2011, Andrew Pennebaker wrote: Yeah, I know to chmod my scripts before dot-slashing them. It's just that fpc can't handle shebangs, and I don't want to have to choose either scripting or

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
Tomas Hajny xhaj...@hajny.biz hat am 15. Oktober 2011 um 10:19 geschrieben: On Sat, October 15, 2011 00:43, Andrew Pennebaker wrote: Thanks ik. Merf, it appears fpc can't compile when a shebang is added. In future versions, can fpc treat shebangs as comments so that instantfpc code

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-15 Thread Mattias Gaertner
Ralf A. Quint free...@gmx.net hat am 15. Oktober 2011 um 19:15 geschrieben: At 10:00 AM 10/15/2011, Mattias Gaertner wrote: Ralf A. Quint free...@gmx.net hat am 15. Oktober 2011 um 05:03 geschrieben: At 03:56 PM 10/14/2011, Andrew Pennebaker wrote: Yeah, I know to chmod my scripts

Re: [fpc-pascal] Any command line interpreters for Free Pascal?

2011-10-16 Thread Mattias Gaertner
Andrew Pennebaker andrew.penneba...@gmail.com hat am 16. Oktober 2011 um 19:53 geschrieben: There are plenty who do believe it's convenient to hide compilation in the background--the users of instantfpc. Syntax for shebangs in fpc would bridge instantfpc and traditional Pascal code. You

Re: [fpc-pascal] Stack corruption setting UnicodeString Char

2011-10-19 Thread Mattias Gaertner
Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com hat am 19. Oktober 2011 um 09:13 geschrieben: Hello, Usually when we work with PChars we do things like this to set the final terminator: var    ansistr: ansistring; begin    // Copy the originating string taking into

Re: [fpc-pascal] parent class as a parameter type

2011-11-17 Thread Mattias Gaertner
On Thu, 17 Nov 2011 15:15:46 +0100 Sven Barth pascaldra...@googlemail.com wrote: Am 17.11.2011 15:07, schrieb ik: On Thu, Nov 17, 2011 at 16:03, Sven Barth pascaldra...@googlemail.com mailto:pascaldra...@googlemail.com wrote: Am 17.11.2011 09:23, schrieb ik: It's not

Re: [fpc-pascal] How to read TDOMNode attributes

2011-12-02 Thread Mattias Gaertner
On Fri, 2 Dec 2011 19:30:17 + Frank Church vfcli...@gmail.com wrote: On 2 December 2011 19:09, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Fri, 2 Dec 2011 18:59:25 + Frank Church vfcli...@gmail.com wrote: Is there a way of knowning the attribute count of a TDOMNode

Re: [fpc-pascal] Testing applications with FPCUnit

2011-12-17 Thread Mattias Gaertner
On Sat, 17 Dec 2011 17:47:49 +0100 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: On Sat, Dec 17, 2011 at 5:03 PM, Luciano de Souza luchya...@gmail.com wrote: I can compile using callings like: fpc test.pas fpc -XX test.pas fpc test.pas -Fu./pas -FE./exe You can

[fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-18 Thread Mattias Gaertner
Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works with solr over jetty. curl works fine with both, so I guess the tomcat server works normally. Here is the code: client:=TFPHTTPClient.Create(nil); client.RequestHeaders.Add('Content-Type:

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2011-12-19 Thread Mattias Gaertner
On Mon, 19 Dec 2011 09:27:16 +0100 (CET) michael.vancann...@wisa.be wrote: On Mon, 19 Dec 2011, Mattias Gaertner wrote: Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works with solr over jetty. curl works fine with both, so I guess

Re: [fpc-pascal] Forward declarations

2011-12-22 Thread Mattias Gaertner
On Thu, 22 Dec 2011 15:33:13 -0500 Timothy Groves the.tail.kin...@gmail.com wrote: Can anyone think of a situation in which you would *have* to use forward declared functions? I'm trying to come up with an example for such for my book, and I am drawing a blank. Traverse a html tree. For

Re: [fpc-pascal] Re: Installing FPC 2.5.1 in Mac OS X

2012-01-05 Thread Mattias Gaertner
On Thu, 5 Jan 2012 15:53:19 +0100 (CET) mar...@stack.nl (Marco van de Voort) wrote: In our previous episode, Vincent Snijders said: Well, aside from installing different compilers in different prefixes (what I usually do), yes. I would file a bug, and see how Laz devels see it.

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Mattias Gaertner
Andreas Schneider ak...@gmx.de hat am 17. Januar 2012 um 11:23 geschrieben: On Sunday, January 15, 2012, at 15:04 Mattias Gaertner wrote: On Sun, 15 Jan 2012 05:58:21 -0800 (PST) Malvin malvin...@gmail.com wrote: So far i've managed to do the program quite well, and I was wondering, can

[fpc-pascal] MySQL5

2012-01-17 Thread Mattias Gaertner
Hi, I tried connecting to a mysql 5.5 database and used the fpc unit mysql51. There are only examples for 3 and 4, so I started with testdb4.pp and adapted it. It turned out that the MYSQL record is missing some new fields, so the mysql_init overwrites the memory behind. After adding some dummy

Re: [fpc-pascal] MySQL5

2012-01-17 Thread Mattias Gaertner
michael.vancann...@wisa.be hat am 17. Januar 2012 um 13:28 geschrieben: On Tue, 17 Jan 2012, Mattias Gaertner wrote: Hi, I tried connecting to a mysql 5.5 database and used the fpc unit mysql51. There are only examples for 3 and 4, so I started with testdb4.pp and adapted

Re: [fpc-pascal] Postscriptcanvas

2012-01-17 Thread Mattias Gaertner
Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com hat am 17. Januar 2012 um 13:59 geschrieben: On Tue, Jan 17, 2012 at 1:40 PM, David Copeland david.copel...@jsidata.ca wrote: I had not thought that approach (a non-visual lcl program) to be possible, but I will try it. Would I

Re: [fpc-pascal] Re: Help!!

2012-01-17 Thread Mattias Gaertner
Andreas Schneider ak...@gmx.de hat am 17. Januar 2012 um 16:08 geschrieben: On Tuesday, January 17, 2012, at 13:15 Felipe Monteiro de Carvalho wrote: If the use case is closing the main form without quitting the application, then I would prefer a property

Re: [fpc-pascal] Best practice for getting heap usage summary

2012-01-19 Thread Mattias Gaertner
On Thu, 19 Jan 2012 09:06:46 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What is considered best practice for getting a summary of heap usage, in a single-threaded program which doesn't need to be Delphi-compatible? In Delphi programs that have had to run for an

[fpc-pascal] Options -WG -WC -WF -WT

2012-01-29 Thread Mattias Gaertner
Hi, According to fpc -h (2.7.1): Option -WG creates graphic type application (EMX, OS/2, Windows). Option -WC creates console type application (EMX, OS/2, Windows). fpc -h (2.6.1) knows also: Option -WF creates full screen type application (EMX, OS/2) And the user documentation knows one more:

Re: [fpc-pascal] Options -WG -WC -WF -WT

2012-01-29 Thread Mattias Gaertner
On Sun, 29 Jan 2012 18:03:56 +0100 Sven Barth pascaldra...@googlemail.com wrote: On 29.01.2012 17:04, Mattias Gaertner wrote: Hi, According to fpc -h (2.7.1): Option -WG creates graphic type application (EMX, OS/2, Windows). Option -WC creates console type application (EMX, OS/2

Re: [fpc-pascal] Options -WG -WC -WF -WT

2012-01-29 Thread Mattias Gaertner
On Sun, 29 Jan 2012 20:13:36 +0100 Sven Barth pascaldra...@googlemail.com wrote: [...] -WF = {$apptype fs}: Fullscreen application on EMX and OS/2 For 2.7.1 too? The option is missing in the ppcx64 -h help. I took this knowledge from the compiler's source directly, so yes. [...]

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-01 Thread Mattias Gaertner
On Thu, 2 Feb 2012 00:03:15 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, What am I doing wrong in the following code? It always fails on test number 2. The DataString property is returning garbage, and not the value equal to the 'Graeme Geldenhuys' string.

[fpc-pascal] make rpm

2012-02-02 Thread Mattias Gaertner
Hi, When doing make rpm NOGDB=1 NODOCS=1 in fpcbuild/trunk I get a lot of unpackaged files under OpenSuse 12.1. In other words: it fails to build. Are there some docs about it? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

[fpc-pascal] How to use pam?

2012-02-06 Thread Mattias Gaertner
Hi, I need to authenticate user name and password under Linux. These are normal accounts so I guess libpam is the weapon of choice. But I can't find any pam binding in the FPC sources. Is there a better way or has really no one yet used pam with fpc? thanks, Mattias

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-06 Thread Mattias Gaertner
On Mon, 19 Dec 2011 10:39:09 +0100 (CET) michael.vancann...@wisa.be wrote: [...] What does 'strace' say ? Same happens on fpc wiki: Here is the strace: sendto(3, GET /index.php?title=Special:Exp..., 135, 0, NULL, 0) = 135 recvfrom(3, HTTP/1.1 200 OK\r\nDate: Tue, 07 F..., 4096, 0, NULL, NULL)

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-06 Thread Mattias Gaertner
On Tue, 7 Feb 2012 01:47:52 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 19 Dec 2011 10:39:09 +0100 (CET) michael.vancann...@wisa.be wrote: [...] What does 'strace' say ? Same happens on fpc wiki: uses Classes, SysUtils, fphttpclient; ... var Response

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 09:26:10 +0100 (CET) michael.vancann...@wisa.be wrote: On Wed, 8 Feb 2012, Reinier Olislagers wrote: fpdocs Revision 889 svn revert --recursive . Open FPDocEditor on ExpandFileName, type a space somewhere, click Save icon. (Space seems to be automatically

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 11:43:19 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 8 February 2012 10:44, Mattias Gaertner wrote: Yes, but without any indentation it is hard to read. Indentation (whitespace), which is purely for human enjoyment, causes problems in some of the fpdoc

Re: [fpc-pascal] FPCDocs: diff: saving fpdoc gives huge diff

2012-02-08 Thread Mattias Gaertner
On Wed, 8 Feb 2012 16:03:05 +0100 Mattias Gaertner nc-gaert...@netcologne.de wrote: [...] Of course it would be nicer if the used xml readers/writers can be told to keep the spaces. Especially for version control systems. I will take a look. The xml reader/writer used by the fpdoc editor now

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-08 Thread Mattias Gaertner
On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann rainerstratm...@t-online.de wrote: Am Monday 19 December 2011 01:22:18 schrieb Mattias Gaertner: Hi, For some reason TFPHTTPClient.Post hangs when accessing a solr server over tomcat. It works with solr over jetty. curl works fine

Re: [fpc-pascal] TFPHTTPClient Post works with jetty, fails with tomcat

2012-02-09 Thread Mattias Gaertner
On Thu, 9 Feb 2012 09:43:55 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: On Thu, 9 Feb 2012, Mattias Gaertner wrote: On Tue, 7 Feb 2012 10:33:04 +0100 Rainer Stratmann rainerstratm...@t-online.de wrote: [...] If you have no content-length then mostly in the header

Re: [fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarus installer/updater: first Linux/Windows version released

2012-02-11 Thread Mattias Gaertner
Reinier Olislagers reinierolislag...@gmail.com hat am 11. Februar 2012 um 08:28 geschrieben: On 10-2-2012 18:23, Ludo Brands wrote: - (I hesitated to put this in the category bugs) lazarus is configured to use (default on ubuntu) ~/fpc/bin/fpc. I have 2.4.4 installed with a /etc/fpc.cfg

[fpc-pascal] fpdoc and tab characters

2012-02-13 Thread Mattias Gaertner
Hi, How are tab characters handled by fpdoc and its output formats? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] make clean / distclean leaves some ppu files

2012-02-15 Thread Mattias Gaertner
Hi, It seems make clean leaves ppu files behind: For example: ./packages/fpmkunit/units_bs/x86_64-linux/zbase.ppu Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

[fpc-pascal] fphttpclient get an url with colon

2012-02-16 Thread Mattias Gaertner
Hi, When I use TFPHTTPClient to fetch a page with a colon in the file name it appends a slash /. For example: Client:=TFPHTTPClient.Create(nil); Response:=TMemoryStream.Create; Client.Get('http://wiki.lazarus.freepascal.org/Image:Acs_demos.jpg',Response); It fetches /Image:Acs_demos.jpg/.

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi albertonardu...@yahoo.com wrote: I doubt that mediawiki uses malformed urls. And any browser and http client uses it without warning. as I said, it was out of curiosity. Googling around anyway, shows that there are some special

Re: [fpc-pascal] fphttpclient get an url with colon

2012-02-17 Thread Mattias Gaertner
On Fri, 17 Feb 2012 22:03:25 +0200 Alberto Narduzzi albertonardu...@yahoo.com wrote: [...] Anyway, http://wiki.lazarus.freepascal.org?Image=Acs_demos.jpg; is not that ugly. Probably it's not so sophisticated, but can do the very same job. No. This does not work with mediawiki. Mattias

Re: [fpc-pascal] Re: RE : Re: RE : FPCUp FPC/Lazarusinstaller/updater: first Linux/Windows version released

2012-02-18 Thread Mattias Gaertner
On Sat, 18 Feb 2012 16:14:58 +0100 Ludo Brands ludo.bra...@free.fr wrote: You can use the -Xp option to specify a path for FPC to search for the ppc* binaries. E.g. #!/bin/sh ~/whereever/we/installed/fpc -n @~/whereever/we/installed/fpc.cfg

Re: [fpc-pascal] Easy way to install FPC 2.6.x on Mint Linux?

2012-02-20 Thread Mattias Gaertner
On Mon, 20 Feb 2012 16:03:02 +0200 Juha Manninen juha.mannine...@gmail.com wrote: 2012/2/20, Ludo Brands ludo.bra...@free.fr: I retract my proposal :) If you haven't installed from a foreign distribution repository before then there are too many risks for messing up your complete

[fpc-pascal] How create a full text search with TChmWriter?

2012-02-20 Thread Mattias Gaertner
Hi, I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch to true, it takes a long time to process and the resulting chm is 30% bigger than the total of all files. So I guess it has created

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/20/12 18:00, Mattias Gaertner wrote: Hi, I'm using TChmWriter to pack some html files into a chm file. The index works. I don't have a TOC. Now I want a full text search. I set Writer.FullTextSearch

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
Žilvinas Ledas zilvinas.le...@dict.lt hat am 21. Februar 2012 um 10:38 geschrieben: I think you should set chmPrj.MakeSearchable := true; (where chmPrj: TChmProject;). At least I set it (with an ~1 year old lazarus+fpc and lhelp build) and I can search for (complete) words in generated chm

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: On 02/21/2012 03:18 AM, Mattias Gaertner wrote: On Mon, 20 Feb 2012 23:59:18 -0500 Andrew Hainesandrewd...@aol.com wrote: 30% bigger than the size of the uncompressed html files?! Yes. does lazarus

Re: [fpc-pascal] Outputting a set for debugging

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 21:19:52 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: What type can I cast a set (actually Lazarus's TShiftState) to, in order to be compatible with IntToHex() for debugging output? Or is there some other preferred procedure? Why not use

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: [...] Your chm file should not be bigger than the the uncompressed files unless you are writing only a couple of tiny

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-21 Thread Mattias Gaertner
On Tue, 21 Feb 2012 22:25:08 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/21/12 17:40, Mattias Gaertner wrote: On Tue, 21 Feb 2012 16:08:43 +0100 (CET) Mattias Gaertner nc-gaert...@netcologne.de wrote: [...] But it only finds whole words. :- And clicking on a page gives a black

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-22 Thread Mattias Gaertner
On Wed, 22 Feb 2012 12:06:08 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/21/12 10:08, Mattias Gaertner wrote: Andrew Haines andrewd...@aol.com hat am 21. Februar 2012 um 15:24 geschrieben: I guess then you are using AddStreamToArchive. No. I set

Re: [fpc-pascal] How create a full text search with TChmWriter?

2012-02-23 Thread Mattias Gaertner
On Thu, 23 Feb 2012 12:48:41 -0500 Andrew Haines andrewd...@aol.com wrote: On 02/22/12 18:01, Mattias Gaertner wrote: On Wed, 22 Feb 2012 12:06:08 -0500 I tried with only 500 files and it worked. That means I get a help and it finds files. But choosing a page just shows black. And after

Re: [fpc-pascal] (no subject)

2012-02-24 Thread Mattias Gaertner
Everton Vieira tonvie...@gmail.com hat am 23. Februar 2012 um 17:17 geschrieben: public procedures/function of a class that can be used without been necessary to create the class?=?71c4af2e-7ede-4749-bc03-e827c6f6ed0d-- Maybe you mean class procedures? That exists since many years.

Re: [fpc-pascal] FPC with case insensitive file system under Linux

2012-02-24 Thread Mattias Gaertner
On Fri, 24 Feb 2012 13:09:09 +0200 Graeme Geldenhuys graemeg.li...@gmail.com wrote: Hi, [rant] I'm just sick of the idiocy of Linux/Unix with there case sensitive file systems! Google'ing a round for the reason for this, it seems that in the 60's, it was C programmers that decided that

Re: [fpc-pascal] dynamic array as a part of dynamically allocated records behavior

2012-02-25 Thread Mattias Gaertner
On Sat, 25 Feb 2012 04:23:24 -0800 (PST) leledumbo leledumbo_c...@yahoo.co.id wrote: Consider the following program: {$mode objfpc} type TJam = array of Integer; TRuang = record nm_ruang: string; avl: TJam; end; PRuang = ^TRuang; var x: array of integer;

Re: [fpc-pascal] OT: Amazing new development tools

2012-02-26 Thread Mattias Gaertner
On Sun, 26 Feb 2012 11:43:38 +0100 (CET) Michael Van Canneyt mich...@freepascal.org wrote: On Sun, 26 Feb 2012, Vinzent Höfler wrote: On Sat, 25 Feb 2012 19:15:54 +0100, ik ido...@gmail.com wrote: I found the following amazing lecture that present a new idea of a development tool,

Re: [fpc-pascal] class of - instance created is wrong

2012-03-15 Thread Mattias Gaertner
Graeme Geldenhuys graemeg.li...@gmail.com hat am 15. März 2012 um 10:07 geschrieben: [...] TfpgCanvas | +-- TfpgX11Canvas | +-- TfpgCanvasBase TAgg2D | +-- TfpgCanvasBase [...] DefaultCanvasClass: TfpgCanvasBaseClass = nil; [...] function

Re: [fpc-pascal] SysUtils.GetEnvironmentVariable

2012-03-29 Thread Mattias Gaertner
Marcos Douglas m...@delfire.net hat am 29. März 2012 um 13:06 geschrieben: [...] === output end === Please note that in cmd the following are different: set FOO=bar = FOO - bar set FOO = bar = FOO - bar set FOO= bar = FOO - bar set FOO =bar = FOO - bar Regards,

Re: [fpc-pascal] Problems with assigning pointers

2012-04-10 Thread Mattias Gaertner
On Tue, 10 Apr 2012 18:08:04 +0200 dhkblas...@zeelandnet.nl wrote: I have some issues when assigning a pointer to a pointer variable. Consider this: TVertex = record x: double; y: double; end; PVertex = ^TVertex; TEdge = record v1: PVertex; v2: PVertex; end;

Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread Mattias Gaertner
On Thu, 19 Apr 2012 14:11:59 +0200 OBones obo...@free.fr wrote: Hello all, I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have designed a generator that creates a program and a set of units

Re: [fpc-pascal] Compiling from and to memory

2012-04-20 Thread Mattias Gaertner
On Fri, 20 Apr 2012 18:26:28 +0200 Florian Klaempfl flor...@freepascal.org wrote: Am 19.04.2012 14:11, schrieb OBones: Hello all, I'm currently creating a build chain where FPC is the last step, the one producing a DLL for Windows, x86 and x64. In front of it in the chain, I have

Re: [fpc-pascal] Commercial support for Lazarus/FPC

2012-04-21 Thread Mattias Gaertner
On Sat, 21 Apr 2012 17:31:47 +0200 Sven Barth pascaldra...@googlemail.com wrote: On 21.04.2012 12:12, denisgolovan wrote: [...] I am considering to subscribe to commercial support in FPC/Lazarus, but I don't have a clear picture what actually support is :) I am looking at

Re: [fpc-pascal] header translation question: I need an int sized boolean

2012-04-22 Thread Mattias Gaertner
On Sun, 22 Apr 2012 01:54:17 +0200 Bernd prof7...@googlemail.com wrote: Hi, I have this from the GLIB heads: typedef intgint; typedef gint gboolean; Why not use gboolean from the glib unit? Mattias ___ fpc-pascal maillist -

[fpc-pascal] make install changed/broken?

2012-04-27 Thread Mattias Gaertner
Hi, Has something changed with 'make install'? Instead of copying files it recompiles and fails. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] make install changed/broken?

2012-04-27 Thread Mattias Gaertner
Jonas Maebe jonas.ma...@elis.ugent.be hat am 27. April 2012 um 11:18 geschrieben: Mattias Gaertner wrote on Fri, 27 Apr 2012: Has something changed with 'make install'? Instead of copying files it recompiles and fails. My fault, fixed. Thanks. But now 'make all' fails with: /usr

Re: [fpc-pascal] cross compiling - easier than expected - wiki needs update?

2012-04-29 Thread Mattias Gaertner
On Sun, 29 Apr 2012 15:01:12 +0200 Bernd prof7...@googlemail.com wrote: Hi, I just thought I kill some time investigating cross compiling from i386-linux to i386-win32 and hada look at the wiki page http://wiki.freepascal.org/Cross_compiling It seems there is some important thing

Re: [fpc-pascal] cross compiling - easier than expected - wiki needs update?

2012-04-29 Thread Mattias Gaertner
On Sun, 29 Apr 2012 15:27:47 +0200 Bernd prof7...@googlemail.com wrote: 2012/4/29 Mattias Gaertner nc-gaert...@netcologne.de: You don't need to set the LCLWidgetType here because win32 is the default for TargetOS win32. I tried this but then it seems it would try to use what

Re: [fpc-pascal] InstantFPC and argv

2012-05-04 Thread Mattias Gaertner
On Fri, 04 May 2012 17:22:16 +0200 dhkblas...@zeelandnet.nl wrote: I'm creating a script to be executed by instantfpc when I noticed that paramstr(0) does not reflect the location of the script but the location of the cached executable. Is there a way to alter this location

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Mattias Gaertner
On Sat, 5 May 2012 14:07:01 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: On Fri, May 4, 2012 21:58, Marco van de Voort wrote: In our previous episode, Tomas Hajny said: 1) Find the first alphabetic character after the first line (which is already processed/skipped by InstantFPC

Re: [fpc-pascal] InstantFPC and argv

2012-05-05 Thread Mattias Gaertner
On Sat, 5 May 2012 14:08:26 +0200 Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 05 May 2012, at 14:02, Tomas Hajny wrote: My proposal is platform independent (i.e. it will work also under Win32, OS/2, etc., without any changes). Your proposal probably requires starting the compiled

Re: [fpc-pascal] ObjectBinaryToText - how to write only selected property?

2012-05-07 Thread Mattias Gaertner
On Sat, 5 May 2012 18:15:51 +0200 Krzysztof dib...@wp.pl wrote: Hi, ObjectBinaryToText method can save object structure to string, but how save only some propertys? ObjectBinaryToText only converts between to formats. It does not save object structures. That is done by TWriter. TWriter

Re: [fpc-pascal] InstantFPC and argv

2012-05-07 Thread Mattias Gaertner
On Mon, 7 May 2012 13:34:50 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: On Mon, May 7, 2012 12:21, Mattias Gaertner wrote: On Sat, 5 May 2012 15:04:05 +0200 (CEST) Tomas Hajny xhaj...@hajny.biz wrote: [...] The implementation for unix is only a few lines. I guess for winxx and os/2

Re: [fpc-pascal] converting c code

2012-05-13 Thread Mattias Gaertner
On Sun, 13 May 2012 15:09:15 +0200 Darius Blaszyk dhkblas...@zeelandnet.nl wrote: I'm struggling to convert a simple for loop from C to pascal. The code is shown below (as is a trace of the loop parameter values). I'm a bit puzzled how this should look elegantly in pascal. Anyone has an

Re: [fpc-pascal] Setting string to be UnicodeString by default

2012-05-15 Thread Mattias Gaertner
On Tue, 15 May 2012 10:43:19 +0200 Jonas Maebe jonas.ma...@elis.ugent.be wrote: Olivier Sannier wrote on Tue, 15 May 2012: Is there a way to force the string type to be an alias to UnicodeString instead of AnsiString as it is by default? It is not possible in FPC 2.6.x. Wth the svn

Re: [fpc-pascal] Re: TimSort

2012-05-24 Thread Mattias Gaertner
On Wed, 25 May 2011 09:29:09 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Wed, 25 May 2011 09:02:46 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: In our previous episode, Mattias Gaertner said: A quick look at wikipedia will show that timsort has a disadvantage

[fpc-pascal] fpimage blur

2012-05-31 Thread Mattias Gaertner
Hi, Is there a function to blur an entire fpimage or a rectangular area? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpimage blur

2012-05-31 Thread Mattias Gaertner
Graeme Geldenhuys graemeg.li...@gmail.com hat am 31. Mai 2012 um 12:59 geschrieben: On 31 May 2012 09:06, Mattias Gaertner nc-gaert...@netcologne.de wrote: Hi, Is there a function to blur an entire fpimage or a rectangular area? Not a direct function of Tfpimage, but is very easily

Re: [fpc-pascal] fpimage blur

2012-05-31 Thread Mattias Gaertner
S.Anil Yilmaz anilyil...@karatahta.com hat am 31. Mai 2012 um 16:39 geschrieben: Bgrabitmap for Lazarus has such filters as far as I know. You may use the algoritms I suppose. Thanks. It has some nice blur algorithms. But as far as I can see: BGRA is RGBA 8bit, I need up to 16 bit gray

Re: [fpc-pascal] fpimage blur

2012-06-01 Thread Mattias Gaertner
On Thu, 31 May 2012 20:42:35 +0100 Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 31 May 2012 12:35, Mattias Gaertner nc-gaert...@netcologne.de wrote: Can you give an example or some pseudocode? I just moved country, so don't have access to my development pc yet (still in shipping

[fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
Hi, Is there already a buffered file stream in the fpc sources? Or maybe a generic buffered input stream that can be used with TFileStream? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 17:13:28 +0300 Zaher Dirkey parm...@gmail.com wrote: On Sun, Jun 10, 2012 at 4:00 PM, Mattias Gaertner nc-gaert...@netcologne.de wrote: Hi, Is there already a buffered file stream in the fpc sources? Or maybe a generic buffered input stream that can be used

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 19:08:40 +0400 Alexander Shishkin alexv...@mail.ru wrote: 10.06.2012 18:40, Mattias Gaertner пишет: I want to pass the stream to a binary reader, which skips big parts of the stream. It can seek backwards and the files can be several GB, so I need the int64 read/write

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 16:54:30 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: On Sun, 10 Jun 2012, Mattias Gaertner wrote: Hi, Is there already a buffered file stream in the fpc sources? Yes. :) I guessed so. Or maybe a generic buffered input stream that can

Re: [fpc-pascal] buffered filestream

2012-06-10 Thread Mattias Gaertner
On Sun, 10 Jun 2012 18:24:14 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Sun, 10 Jun 2012 16:54:30 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: [...] It is even documented on http://www.freepascal.org/docs-html/fcl/bufstream/index.html Amazing, don't

Re: [fpc-pascal] buffered filestream

2012-06-11 Thread Mattias Gaertner
On Sun, 10 Jun 2012 19:02:52 +0200 Martin Schreiber mse00...@gmail.com wrote: On Sunday 10 June 2012 15:00:20 Mattias Gaertner wrote: Hi, Is there already a buffered file stream in the fpc sources? Or maybe a generic buffered input stream that can be used with TFileStream? MSEgui

[fpc-pascal] fpimage reader for jpeg2000

2012-06-11 Thread Mattias Gaertner
Hi, Has someone already implemented a fpimage reader for jpeg2000? Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpimage reader for jpeg2000

2012-06-12 Thread Mattias Gaertner
On Tue, 12 Jun 2012 20:03:40 +0200 Florian Klaempfl flor...@freepascal.org wrote: Am 11.06.2012 12:03, schrieb Mattias Gaertner: Hi, Has someone already implemented a fpimage reader for jpeg2000? Probably not due to the patent situation? I guess that's a minor: http://www.jpeg.org

Re: [fpc-pascal] Dynamically Execute method

2012-06-19 Thread Mattias Gaertner
On Tue, 19 Jun 2012 00:22:29 +0300 ik ido...@gmail.com wrote: Hi, I'm playing a bit with the notion of execute a method dynamically on demand. I'ved created the following PoC: https://gist.github.com/2950789 It works, but for some strange reason, I find myself feeling that I'm missing

Re: [fpc-pascal] Adding method dynamically to a class

2012-06-19 Thread Mattias Gaertner
ik ido...@gmail.com hat am 19. Juni 2012 um 14:22 geschrieben: Hello, Is there a way to tell in run-time that a specific function/procedure should belong to a class ? For example, let's say I have the following class: Type TTest = class procedure Foo; end; And I

Re: [fpc-pascal] fpimage blur

2012-06-20 Thread Mattias Gaertner
On Fri, 1 Jun 2012 09:32:22 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Thu, 31 May 2012 20:42:35 +0100 Graeme Geldenhuys graemeg.li...@gmail.com wrote: [...] Alternatively, AggPas also has many filter/blur/interpolation functions available. There are a few AggPas demos

Re: [fpc-pascal] Re: UTF8 JSON library: was: [Lazarus] UTF-8 XML

2012-06-24 Thread Mattias Gaertner
On Sun, 24 Jun 2012 15:14:36 -0300 Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Em 24/6/2012 12:22, Reinier Olislagers escreveu: On 24-6-2012 17:05, Luiz Americo Pereira Camara wrote: Hi, Thanks for your work. I plan to look at OAuth library soon No problems, if you have

Re: [fpc-pascal] Codepage: UTF-8 code greater than 65535 found

2012-06-25 Thread Mattias Gaertner
On Sun, 24 Jun 2012 23:31:38 -0300 luciano de souza luchya...@gmail.com wrote: Hello all, In order to enable UTF-8 characters, I tried to use it: program dvcodepage; {$codepage UTF8} uses Sysutils; var x: integer; BEGIN writeln('Digite um número'); readln(x); writeln('O

Re: [fpc-pascal] bug fpc-image

2012-07-07 Thread Mattias Gaertner
On Sat, 7 Jul 2012 14:40:14 +0200 tazio mirandola dev...@gmail.com wrote: hi all, i'm trying to resize a jpg via fpc-image, this is the relevant code(adapted from http://wiki.freepascal.org/fcl-image): uses fpimage, fpcanvas, FPImgCanv, fpreadjpeg,fpwritejpeg; procedure

Re: [fpc-pascal] Database problem on Solaris SPARC

2012-07-16 Thread Mattias Gaertner
On Mon, 16 Jul 2012 13:49:13 + Mark Morgan Lloyd markmll.fpc-pas...@telemetry.co.uk wrote: [...] Remove the ibconnection unit or put it in an {$IFNDEF SOLARIS}. (or should that be SUNOS ?) You'll have to remove TIBConnection from the registercomponents call as well. If that

Re: [fpc-pascal] Inter-process communication, a cautionary tale

2012-07-22 Thread Mattias Gaertner
On Wed, 18 Jul 2012 17:15:20 +0200 (CEST) michael.vancann...@wisa.be wrote: [...] I meant the SimpleIPC unit from the FCL: http://lazarus-ccr.sourceforge.net/docs/fcl/simpleipc/index.html Is there a simple two way IPC? It seems the '/tmp' directory is always used by simpleipc under unix. How

[fpc-pascal] strlen and nil

2012-08-01 Thread Mattias Gaertner
Hi, What does strlen return on nil? The FPC function strlen is implemented via FPC_PCHAR_LENGTH. The documentation does not say what happens when passing nil. Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org

Re: [fpc-pascal] strlen and nil

2012-08-01 Thread Mattias Gaertner
On Wed, 1 Aug 2012 12:21:05 +0200 (CEST) mar...@stack.nl (Marco van de Voort) wrote: In our previous episode, Mattias Gaertner said: What does strlen return on nil? The FPC function strlen is implemented via FPC_PCHAR_LENGTH. The documentation does not say what happens when passing nil

Re: [fpc-pascal] Compiling on Raspberry Pi

2012-08-07 Thread Mattias Gaertner
Graeme Geldenhuys graemeg.li...@gmail.com hat am 7. August 2012 um 16:45 geschrieben: Hi, On 7 August 2012 11:54, Koenraad Lelong fpas...@brouwerij.homelinux.net wrote: The rest of the apps compile fine although I had no possibility to test them since I don't yet have a suitable

Re: [fpc-pascal] How to find a graphic element in the form editor?

2012-08-07 Thread Mattias Gaertner
Graeme Geldenhuys graemeg.li...@gmail.com hat am 7. August 2012 um 16:48 geschrieben: On 7 August 2012 13:20, Howard Page-Clark h...@talktalk.net wrote: Use View | Components (shortcut Ctrl Alt P), and type 'filen' in the filter edit. Wow, and so we learn something new. :-) Maybe

  1   2   3   4   5   6   7   8   9   10   >