Re: [fpc-pascal] A simple HTTP request with FPC standard units

2012-11-24 Thread Michael Van Canneyt
as I know, SMTP is a fairly simple protocol, probably it is not too hard to implement. Michael. 2012/11/23, Michael Van Canneyt : On Fri, 23 Nov 2012, Leonardo M. Ramé wrote: You mean probably s := TFPCustomHTTPClient.Get('http://a_site/a_page'); It could be done, but it

Re: [fpc-pascal] "Case of" documentation

2012-11-24 Thread Michael Van Canneyt
r, and the documentation never got corrected. I will fix this. I should probably also document that you can use strings. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Dataset indexdefs.find: documentation wrong?

2012-12-02 Thread Michael Van Canneyt
mentation states: Find...returns Nil if no matching index definition was found. Not a Delphi guy - should the implementation or the documentation be fixed? I'll have a look tomorrow. Normally, the (unwritten) convention is that 'Find' returns nil. '

Re: [fpc-pascal] The secrets of FPMake

2012-12-02 Thread Michael Van Canneyt
at: http://wiki.freepascal.org/FPMake Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread Michael Van Canneyt
er. S is (behind the scenes) a pointer to a memory area. You should do FillChar(s[1], 1024, '*'); Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread Michael Van Canneyt
On Mon, 3 Dec 2012, Jonas Maebe wrote: On 03 Dec 2012, at 11:13, Michael Van Canneyt wrote: On Mon, 3 Dec 2012, ik wrote: var s : AnsiString; l : word; begin SetLength(s, 1024); FillChar(s, 1024, '*'); You are overwriting the pointer. S is (behind the scenes) a pointer to

Re: [fpc-pascal] length for long ansistring = segment fault

2012-12-03 Thread Michael Van Canneyt
On Mon, 3 Dec 2012, Jonas Maebe wrote: On 03 Dec 2012, at 11:52, Michael Van Canneyt wrote: On Mon, 3 Dec 2012, Jonas Maebe wrote: On 03 Dec 2012, at 11:13, Michael Van Canneyt wrote: You are overwriting the pointer. S is (behind the scenes) a pointer to a memory area. You should do

Re: [fpc-pascal] Coping a DataSet

2012-12-03 Thread Michael Van Canneyt
On Mon, 3 Dec 2012, Marcos Douglas wrote: On Mon, Dec 3, 2012 at 2:03 PM, wrote: On Mon, 3 Dec 2012, silvioprog wrote: Guys, Is "Assign" method implemented for dataset in FPC? No, it is not. Datasets differ wildly in how they access and store data. Michael. But all d

Re: [fpc-pascal] fpdoc and linked elements

2012-12-04 Thread Michael Van Canneyt
On Tue, 4 Dec 2012, Graeme Geldenhuys wrote: Hi Michael (or anybody else that could help), I have a xml description file with the following elements. The first one (for ImageName property) which doesn't list the unit name in the link attribute, is never found by fpdoc. So the gene

Re: [fpc-pascal] fpdoc exclude option

2012-12-04 Thread Michael Van Canneyt
dy is already working on this, before I start on it. Yes: add skip=1 to an element. I see I need to document this in the tag reference, as well as the 'link' attribute. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] fpdoc output "parsing used unit..."

2012-12-04 Thread Michael Van Canneyt
ting, unit B is processed first (recursively). Then all references to identifiers in unit B in the documentation of unit A will be resolved. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpdoc output "parsing used unit..."

2012-12-04 Thread Michael Van Canneyt
On Tue, 4 Dec 2012, Graeme Geldenhuys wrote: On 2012-12-04 16:52, Michael Van Canneyt wrote: Imagine unit A and unit B. Unit A references unit B. You create somewhere in A's documentation a link to an identifier in unit B. OK thanks. I'll try and reorder my units in the proje

Re: [fpc-pascal] FCL-JSON: Getting the data into pascal classes

2012-12-08 Thread Michael Van Canneyt
k it is in general a good idea to have such a mechanism, it would help in many cases. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Searching for database libraries

2012-12-08 Thread Michael Van Canneyt
n the registry, in which case you could try that first. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Searching for database libraries

2012-12-09 Thread Michael Van Canneyt
On Sat, 8 Dec 2012, Mark Morgan Lloyd wrote: Michael Van Canneyt wrote: On Fri, 7 Dec 2012, Mark Morgan Lloyd wrote: When using something like InitialisePostgres3(), if the approximate location of the database library (.so or .dll) is known, what's the most effective way of findin

Re: [fpc-pascal] Searching for database libraries

2012-12-09 Thread Michael Van Canneyt
On Sun, 9 Dec 2012, Mark Morgan Lloyd wrote: Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: Maybe the installer writes something in the registry, in which case you could try that first. There's a problem with this on (at least some versions of) Windows: if

[fpc-pascal] Downtime www/svn/bugtracker : Maintenance

2012-12-14 Thread Michael Van Canneyt
move. Only www.freepascal.org, svn.freepascal.org and bugs.freepascal.org will be affected. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Indexing files

2012-12-15 Thread Michael Van Canneyt
sm on windows, but I haven't had time to look at it yet: I wanted to make a unified architecture for this kind of things. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-16 Thread Michael Van Canneyt
the 'standard sql' referred to ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Indexing files

2012-12-16 Thread Michael Van Canneyt
On Sun, 16 Dec 2012, Marco van de Voort wrote: In our previous episode, Michael Van Canneyt said: The inotify calls are available on Linux. It tells you when a file/folder changes: function inotify_init: cint; function inotify_init1(flags:cint):cint; function inotify_add_watch(fd:cint

Re: [fpc-pascal] Indexing files

2012-12-16 Thread Michael Van Canneyt
ws at that time. IMHO packages in FCL should at least support the core platforms. I will have a look at it. It's on my todo anyway. If Ales has a OSX/BSD variant, then that would be helpful. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] Documentation

2012-12-17 Thread Michael Van Canneyt
around etc.) external documentation is really annoying, for the detailed documentation of mature source inline docs are simply unsuitable IMHO. Well, I have planned a inline-to-external conversion for fpdoc for exactly this reason. Michael. ___ fpc-pasca

Re: [fpc-pascal] GetTableNames in TSQLConnection / Postgresql

2012-12-18 Thread Michael Van Canneyt
oming from an Oracle background, I just always made schemas for my tables.) Confirming once again that we are all creatures of habit :-) I think that with the modifications proposed here, we should be able to cater for many habits :-) Michael. ___

[fpc-pascal] fpdoc enhanced - call for tests

2012-12-20 Thread Michael Van Canneyt
e not yet correctly rendered. (as visible in http://www.freepascal.org/docs-html/fcl/index-9.html) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
lf, we'll make 2 RTLs: one backwards compatible, one with the new unicode string. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
pecifies a string type by itself. 2) the unit comes in compiled form. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
witch between them), without changing code? Thus: Any function with "string" as param will be "automatically" overloaded for all supported string types? Provided a) you recompile everything b) The unit does not specify a string type the ans

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
On Sat, 22 Dec 2012, Martin Schreiber wrote: On Saturday 22 December 2012 12:55:12 Michael Van Canneyt wrote: [...] - The {$H } directive will be extended so you can choose which string type you need per unit. (ansi/wide/utf16/utf8...)    This is different from Delphi, where you don't

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
On Sat, 22 Dec 2012, luiz americo pereira camara wrote: Em 22/12/2012 09:55, "Michael Van Canneyt" escreveu: > > > > Because of the requirement for backwards compatibility with FPC itself, we'll make 2 RTLs: one backwards compatible, one with the new unicode str

Re: [fpc-pascal] Re: Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
On Sat, 22 Dec 2012, Reinier Olislagers wrote: On 22-12-2012 12:55, Michael Van Canneyt wrote: On Sat, 22 Dec 2012, dev.dliw-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: Hi, concerning the string topic, for me (using fpc since 2.0.4 on a regular basis; TP experience ~ average user) there

Re: [fpc-pascal] Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
ly, I think we have enough with the command-line version) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Strings - suggestions

2012-12-22 Thread Michael Van Canneyt
On Sat, 22 Dec 2012, Reinier Olislagers wrote: On 22-12-2012 17:50, Michael Van Canneyt wrote: On Sat, 22 Dec 2012, Reinier Olislagers wrote: On 22-12-2012 12:55, Michael Van Canneyt wrote: On Sat, 22 Dec 2012, dev.dliw-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: Hi, concerning the

Re: [fpc-pascal] Re: Strings - suggestions

2012-12-24 Thread Michael Van Canneyt
On Sat, 22 Dec 2012, Reinier Olislagers wrote: On 22-12-2012 12:55, Michael Van Canneyt wrote: On Sat, 22 Dec 2012, dev.dliw-re5jqeeqqe8avxtiumw...@public.gmane.org wrote: Hi, concerning the string topic, for me (using fpc since 2.0.4 on a regular basis; TP experience ~ average user

Re: [fpc-pascal] Basically on the right track?

2012-12-27 Thread Michael Van Canneyt
tion 3: Is it possible to specify the libraries to use to fpc ? In Ada we have .gpr files that can list where things are to be found. What do you mean with this question ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepasca

Re: [fpc-pascal] CrossFPC is finally released

2012-12-31 Thread Michael Van Canneyt
- would seem to me a matter of improving the installer so it includes cross-compilation. Please don't mistake this as critique (crossfpc performed as it should), I am just curious for your motivation. Maybe I missed some things. Michael. ___ fp

Re: [fpc-pascal] CrossFPC is finally released

2012-12-31 Thread Michael Van Canneyt
On Mon, 31 Dec 2012, Simon Kissel wrote: Hi Michael, What puzzles me is: why still do this ? Depends. From my own/commercial perspective: Thank you for your answer and your support of FPC ! My curiosity is not really satisfied - still do not see why you consider retaining Delphi 7 an

Re: [fpc-pascal] Does FPHTTPServer support Keep-Alive: ON?

2013-01-02 Thread Michael Van Canneyt
On Tue, 1 Jan 2013, leledumbo wrote: I want to benchmark but the current result looks weird: Currently, Connection: Keep-alive is not supported. So the server is not strictly http/1.1 compliant. Michael. ___ fpc-pascal maillist - fpc-pascal

Re: [fpc-pascal] Int64 is not an ordinal...

2013-01-05 Thread Michael Van Canneyt
. So, why aren't Int64 and QWord "true" ordinals? Because they don't fit in 32 bits. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] State of fcl-stl generics lib

2013-01-11 Thread Michael Van Canneyt
and better patches it gets, the better it is. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpsystem output

2013-01-14 Thread Michael Van Canneyt
n What is the reason? Here the output looks OK when executing as-is. But if you are using the crt unit, that may mess up the terminal. I added crt, and then the output was indeed indented. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Michael Van Canneyt
On Tue, 15 Jan 2013, Rainer Stratmann wrote: Am Tuesday 15 January 2013 08:57:58 schrieb Michael Van Canneyt: On Mon, 14 Jan 2013, Rainer Stratmann wrote: When calling for example fpsystem( 'cat /proc/partitions' ); the lines are not beginning at the 1st character of the next lin

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Michael Van Canneyt
On Tue, 15 Jan 2013, Rainer Stratmann wrote: Am Tuesday 15 January 2013 13:25:08 schrieb Michael Van Canneyt: On Tue, 15 Jan 2013, Rainer Stratmann wrote: Am Tuesday 15 January 2013 08:57:58 schrieb Michael Van Canneyt: On Mon, 14 Jan 2013, Rainer Stratmann wrote: When calling for example

Re: [fpc-pascal] fpsystem output

2013-01-15 Thread Michael Van Canneyt
xample dhcp service programs). Isn't it possible to make a function in crt that makes the behaviour wanted? Something like crt.turn_linefeed_on(); or similar. No, it is not. CRT is simply not meant to be mixed with raw output, and definitely not from other programs. There would

Re: [fpc-pascal] Unit alias

2013-01-19 Thread Michael Van Canneyt
conscious decision not to have this. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
e fcl-stl and caring about bugs in it, feel free to volunteer. I will give you appropriate rights to deal with it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
from time to time shows it is not dead code :-) Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 11:15, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 06:17, schrieb leledumbo: No one seems to see: http://bugs.freepascal.org/view.php?id=23654 :( Well, it's a new feature:

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 14:22, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 11:15, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 06:17, schrieb leledumbo: No one

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 14:47, schrieb Michael Van Canneyt: ? Why not ? I see no difference with a list or collection ? A tree is something implementation specific while the fpc-stl is only about opaque data structures. E.g. the fpc-stl supports TSet: but

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 15:16, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 14:47, schrieb Michael Van Canneyt: ? Why not ? I see no difference with a list or collection ? A tree is something implementation

Re: [fpc-pascal] Re: State of fcl-stl generics lib

2013-01-20 Thread Michael Van Canneyt
On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 15:37, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 15:16, schrieb Michael Van Canneyt: On Sun, 20 Jan 2013, Florian Klämpfl wrote: Am 20.01.2013 14:47, schrieb Michael Van Canneyt

[fpc-pascal] Re: [fpc-devel] FPJSONRTTI: Case insensitive.

2013-01-24 Thread Michael Van Canneyt
e(const AName: TJSONStringType; CaseInsensitive : Boolean = False): Integer; Line 450 of fpjsonrtti could be changed to set this to True, but it will have a bad impact on performance. Maybe we can have a property for this. You should fix your incoming JSON instead. Michael.

Re: [fpc-pascal] Re: [fpc-devel] FPJSONRTTI: Case insensitive.

2013-01-24 Thread Michael Van Canneyt
On Thu, 24 Jan 2013, silvioprog wrote: 2013/1/24 Michael Van Canneyt [...] Maybe we can have a property for this. This would be an excellent idea. This new property could be to False by default. I'll open an issue about this. Implemented it. Please test and close the bugrepo

Re: [fpc-pascal] [Announcement] Castle Game Engine 4.0.0 release for FPC game developers

2013-01-26 Thread Michael Van Canneyt
lot of new engine documentation (tutorial, classes overview etc.) and useful examples. Pretty impressive. Keep up the good work !! Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TFPCanvasDrawer and anti-alias.

2013-01-28 Thread Michael Van Canneyt
On Mon, 28 Jan 2013, silvioprog wrote: Hello, TFPCanvasDrawer provides  anti-alias support? Not for lines. For texts, it should be able to add it. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org

Re: [fpc-pascal] Bufdataset TCustomBufDataset.InternalOpen; swallowing filter construction

2013-02-04 Thread Michael Van Canneyt
t the user wanted seems a bit weird.. I think it should indeed bubble up. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Can property setters be procedures only?

2013-02-06 Thread Michael Van Canneyt
from being set by a function? Yes, the absence of a result. Results sometimes require special handling (strings etc). I can call a function to set that property, but I wonder why a setter can't be a function? Because there is no result. Where is the result in MyControl.Top:=3; ? Mi

Re: [fpc-pascal] Can property setters be procedures only?

2013-02-06 Thread Michael Van Canneyt
On Wed, 6 Feb 2013, Frank Church wrote: On 6 February 2013 09:07, Michael Van Canneyt wrote: On Wed, 6 Feb 2013, Frank Church wrote: When I try to set a property using a function I get the error: form001.pas(28,64) Error: Illegal symbol for property access form001.pas(34,1) Fatal

[fpc-pascal] Re: [fpc-devel] Feature announcement: Type helpers

2013-02-06 Thread Michael Van Canneyt
very much Sven, excellent work ! :-) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] what happened to the "contributed units" listing?

2013-02-07 Thread Michael Van Canneyt
he browser. Michael.___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] what happened to the "contributed units" listing?

2013-02-07 Thread Michael Van Canneyt
On Thu, 7 Feb 2013, José Mejuto wrote: El 07/02/2013 13:50, Michael Van Canneyt escribió: It's on http://www.freepascal.org/contrib/contribs.html now. But some pages may still contain old links, see http://bugs.freepascal.org/view.php?id=23769 . Hello, Please, add some ki

Re: [fpc-pascal] Re: what happened to the "contributed units" listing?

2013-02-07 Thread Michael Van Canneyt
k web development coding in FPC/Lazarus will take off if code samples are not freely available, especially if there are no commercial confidentiality issues involved. All FPC code is in the SVN repository. Michael. ___ fpc-pascal maillist - fpc-p

Re: [fpc-pascal] Re: JSON coders beware...

2013-02-07 Thread Michael Van Canneyt
ith Pascal ? Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TStringList.InsertItem

2013-02-08 Thread Michael Van Canneyt
Changing; 1021 If FCount=Fcapacity then Grow; 1022 If Index It could do that, feel free to provide a patch :) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-09 Thread Michael Van Canneyt
in this directory (especially if Global=True). It just returns the name of the appropriate location." So it is not a bug. We can maybe have an appropriate 'AllowCreate' or 'EnsureDir' parameter or so. But for system con

Re: [fpc-pascal] Re: what happened to the "contributed units" listing?

2013-02-09 Thread Michael Van Canneyt
On Sat, 9 Feb 2013, Frank Church wrote: On 7 February 2013 21:23, Michael Van Canneyt wrote: On Thu, 7 Feb 2013, Frank Church wrote: On 7 February 2013 12:35, leledumbo wrote: Bye2 PHP based list, welcome fpweb + ExtJS based list :) -- Do we get the chance to view the code used

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-09 Thread Michael Van Canneyt
On Sat, 9 Feb 2013, Giuliano Colla wrote: Il 09/02/2013 10:25, Michael Van Canneyt ha scritto: On Sat, 9 Feb 2013, Reinier Olislagers wrote: On 9-2-2013 1:49, Giuliano Colla wrote: It turned out that the reason was simply that the default AppConfigDir (~/.config/ ) wasn't there

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-09 Thread Michael Van Canneyt
On Sat, 9 Feb 2013, Bart wrote: On 2/9/13, Michael Van Canneyt wrote: Like I said, we can imagine a parameter 'AllowCreate' or 'ForceCreate'. GetAppConfigDir(Global : Boolean: ForceCreate: Booelan = false) : String; While this can easily be implemented without br

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-09 Thread Michael Van Canneyt
On Sat, 9 Feb 2013, Bart wrote: On 2/9/13, Michael Van Canneyt wrote: If creating the directory fails, the function does not return an errorcode, unless we decide to let it raise an exception in this case.. There is only one way: if the ForceCreate is implemented and if creation fails

Re: [fpc-pascal] TStringList.Put calls change even if value hasn't changed

2013-02-10 Thread Michael Van Canneyt
value. Every write in the list triggers a change. This is how delphi implements it, and that is how we implemented it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread Michael Van Canneyt
ctory "/my/path/to/" $00427F7E Which means that you are still (as previously) responsible for catching possible errors. But these errors should be less frequent with this change. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TStringList.Put calls change even if value hasn't changed

2013-02-11 Thread Michael Van Canneyt
On Mon, 11 Feb 2013, Bart wrote: On 2/10/13, Michael Van Canneyt wrote: You expect wrong. No supposition is made whatsoever on the value. Every write in the list triggers a change. This is how delphi implements it, and that is how we implemented it. That's why I mentioned I mig

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread Michael Van Canneyt
On Mon, 11 Feb 2013, Giuliano Colla wrote: Il 11/02/2013 09:21, Michael Van Canneyt ha scritto: On Mon, 11 Feb 2013, Giuliano Colla wrote: 3) But if also the *path* to the file doesn't yet exist, it just crashes without rising an exception that the user application can handle so

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-11 Thread Michael Van Canneyt
w, this I leave up to the programmer. But I will say this: trying to format the user's harddrive or attempt to fry his monitor is usually the wrong approach ;) Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freep

Re: [fpc-pascal] TStringList.Put calls change even if value hasn't changed

2013-02-11 Thread Michael Van Canneyt
On Mon, 11 Feb 2013, Bart wrote: On 2/11/13, Michael Van Canneyt wrote: I am aware of this. But the impact of changing it is impossible to guess, so it is not subject to change. Which is fine by me. I just wondered, and now I'm informed... And with that new knowledge I can impro

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Michael Van Canneyt
. I'd suggest you to ask on the Lazarus list whether it is intentionally that you can't close a form of which the OnClose event handler raises an exception. This is also so in Delphi. Just tested. Michael. ___ fpc-pascal maillist -

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-12 Thread Michael Van Canneyt
ponsible to handle exceptions, show the user error messages and give the user choices (e.g. ignore, retry). BTW, the Ini.Free writes to disk, so it needs the try..except, the WriteValue calls do not need the try..except. That depends. if you disabled write caching, every write call will update t

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Michael Van Canneyt
On Tue, 12 Feb 2013, Leonardo M. Ramé wrote: Hi, I would like to know if there's a standard tree structure where each node is a TObject. With "standard" I mean, in a standard package, like fcl-base. there is one in the generics. But not as a regular

Re: [fpc-pascal] Tree structure

2013-02-12 Thread Michael Van Canneyt
do M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal FCL_base does have one: avl_tree Does not allow multiple children, only left/right

Re: [fpc-pascal] download link on viewvc pages is missing

2013-02-13 Thread Michael Van Canneyt
e it back ;-) Send your patches to the viewvc maintainers. We operate a standard viewvc installation. If it is gone, it means they removed it. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] download link on viewvc pages is missing

2013-02-13 Thread Michael Van Canneyt
On Wed, 13 Feb 2013, LacaK wrote: Michael Van Canneyt  wrote / napísal(a): On Wed, 13 Feb 2013, LacaK wrote: Hi, the "(download)" link (together with the "(as text)") link that used to be next to "(view)" and "(annotate)" in

Re: [fpc-pascal] Re: Fpc Access Violation if AppConfigDir doesn't exist.

2013-02-13 Thread Michael Van Canneyt
On Wed, 13 Feb 2013, Giuliano Colla wrote: Sven Barth ha scritto: On 13.02.2013 10:11, Lukasz Sokol wrote: On 13/02/2013 07:34, Michael Müller wrote: I'm not sure if somebody else mentioned this already but I have the feeling that Giuliano thinks that he has to decide to use try-fi

Re: [fpc-pascal] Make TStringList.ExchangeItems virtual?

2013-02-13 Thread Michael Van Canneyt
tage is that making it virtual will make it slower, since an additional VMT lookup must be done. The reason that it is a separate routine is exactly to make it faster, otherwise quicksort could just have used Exchange().. Michael. ___ fpc-

Re: [fpc-pascal] Make TStringList.ExchangeItems virtual?

2013-02-15 Thread Michael Van Canneyt
a private non virtual version (which could be called by the default implementation of ExchangeItem as well). Should I open a ticket in bugtracker for this? Yes, please. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] TEventLog, RegisterMessageFile and {$R fclel.res}

2013-02-16 Thread Michael Van Canneyt
It is by far the easiest. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] TEventLog, RegisterMessageFile and {$R fclel.res}

2013-02-16 Thread Michael Van Canneyt
On Sat, 16 Feb 2013, Reinier Olislagers wrote: On 16-2-2013 12:26, Michael Van Canneyt wrote: On Sat, 16 Feb 2013, Reinier Olislagers wrote: Decided I liked/needed that and did this: {$R fclel.res} ... FLog.RegisterMessageFile(''); That should be ParamStr(0) instead of empty st

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-16 Thread Michael Van Canneyt
) to blog about their experiences is like pulling teeth.I think a law should be passed requiring FPC users to blog about their usage and experiences at least twice a year. Maybe not everyone is so enthousiast about blogs as you ? I agree with Florian; I prefer to work on FPC. Michael._

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-16 Thread Michael Van Canneyt
On Sat, 16 Feb 2013, geneb wrote: On Sat, 16 Feb 2013, Michael Van Canneyt wrote: I tried something like this before and I was suprised at the dearth of Lazarus and FreePascal bloggers. Getting Lazarus and FPC developers, (let alone users) to blog about their experiences is like pulling

Re: [fpc-pascal] OT a bit - Planet Object Pascal

2013-02-17 Thread Michael Van Canneyt
from spreading the news, on the contrary. We'll be glad that you do, because it means you think FPC is worth the effort. Trying to convince us to spread the news, however, is wasted effort. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.free

Re: [fpc-pascal] Forward struct declaration in C

2013-02-22 Thread Michael Van Canneyt
ine a forward record? No. What you can do is merge the headers in a single unit: PTaskHandle__ = ^TTaskHandle__; and define TTaskHandle__ in the same block The CallBackProcPtr only needs a pointer, so you could also simply define a pointer. Michael. __

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
o manipulate the image in memory by doing a stretch directly. Choose an algorithm which is fast. The default interpolation will result in quite a lot of calculations. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepa

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
On Sun, 24 Feb 2013, Sven Barth wrote: On 24.02.2013 11:44, Michael Van Canneyt wrote: srcImg:=TFPMemoryImage.Create(0,0); Do not use TFPMemoryImage. It is a catch-all memory format, not optimized at all, using 64 bits for the images. Instead, use e.g. TFPCompactImgRGBA8Bit if you

Re: [fpc-pascal] Performance problems with Image Conversions

2013-02-24 Thread Michael Van Canneyt
not foreseen at the time of writing. It seems that it would be good if we'd refactor the interpolations then so that they can be used with either a canvas or an image as destination... Yes. I'll put it on my todo list. Michael. ___ fpc-pasca

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread Michael Van Canneyt
s .p (this extension can be seen in the Photoshop 1.0 source for example). Today .pp is used for example for FPC's test files (also for new ones) out if habit. I think you are under a misapprehension. It is not 'out of habit'. I use .pp for all my

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread Michael Van Canneyt
On Mon, 25 Feb 2013, Sven Barth wrote: On 25.02.2013 09:30, Michael Van Canneyt wrote: On Mon, 25 Feb 2013, Sven Barth wrote: Am 25.02.2013 07:14 schrieb "Eric Kom" : > > Good day, > > Please what is a difference between .pp and .pas files extension? It's mos

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread Michael Van Canneyt
years. Michael. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fpweb: processing URLs like GET http://server/cgi-bin/tigercgi/documents/301/

2013-02-25 Thread Michael Van Canneyt
GetNextPathInfo may be a likely candidate? Correct. 3. For any URL, I would like to differentiate between e.g. GET and PUT. How do I figure out which method (GET, POST, PUT, DELETE...)was used? See Request.Method. Michael. ___ fpc-pascal maillist - fpc

Re: [fpc-pascal] differences between .pp and .pas files

2013-02-25 Thread Michael Van Canneyt
On Mon, 25 Feb 2013, Graeme Geldenhuys wrote: On 2013-02-25 11:09, Michael Van Canneyt wrote: That is a bug in these editors, you should file a report. Kate, gEdit, syn, mcedit, vim, emacs, Notepad++, Geany etc... I wouldn't even know where to start finding all their bug tr

Re: [fpc-pascal] fpweb: processing URLs like GET http://server/cgi-bin/tigercgi/documents/301/

2013-02-25 Thread Michael Van Canneyt
On Mon, 25 Feb 2013, Reinier Olislagers wrote: On 25-2-2013 13:38, Michael Van Canneyt wrote: On Mon, 25 Feb 2013, Reinier Olislagers wrote: Say I have an fpweb CGI server with action documents registered and I GET http://server/cgi-bin/tigercgi/documents/301/ 1. How do instruct the

Re: [fpc-pascal] How to get info about CPU and Memory usage?

2013-02-27 Thread Michael Van Canneyt
t get these information by execution external process. This is becoming a FAQ. :-) There are no such units AFAIK, and executing an external process for this is not recommended. It is better to simply parse /proc/cpuinfo and /proc/PID/* Michael. __

<    8   9   10   11   12   13   14   15   16   17   >