Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Florian Klaempfl
Bihar Anwar schrieb: > I found that the last element of a dynamic array starts with > reference count = 2 in FPC, but in Delphi is 1. Is this an FPC bug, > or FPC implements reference counting differ from Delphi? FPC and Delphi handle code generation for ref. counted types slightly different, so t

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Bihar Anwar
Florian Klaempfl: > FPC and Delphi handle code generation for ref. counted types slightly > different, so there might be cases where the ref. counter differs. As > long as there is no memory leak when the vars are properly used, we > don't consider it as a bug. I see, well, there should be exp

Re: [fpc-pascal] dynamic array contents and system.move

2010-05-02 Thread Bihar Anwar
>>Jürgen Hestermann wrote: >> Although I would have expected that special procedures exist to insert >> and remove array elements so that there is no need to do such things >> manually ... >David Emerson wrote: >These must be written on a case-by-case basis, for each type of array element. >Perhap

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Jonas Maebe
On 02 May 2010, at 10:30, Bihar Anwar wrote: > I see, well, there should be explanation about this in FPC doc. The reference counting logic is considered to be an opaque implementation detail (whose implementation can change at any time). It is undocumented by design. Jonas__

Re: [fpc-pascal] Is there anyone will answer my questions

2010-05-02 Thread Bart
This is the very last time I will answer your post. This is now the third time you post exactly the same question. Jürgen Hestermann and I have tried answering your questions in your very first post (see: http://lists.freepascal.org/lists/fpc-pascal/2010-April/024652.html and follow the thread).

Fwd: [fpc-pascal] Is there anyone will answer my questions

2010-05-02 Thread Jonas Maebe
If you post messages to a mailing list without mentioning that you are not subscribed, it's normal that people only reply to the mailing list without CC'ing you (because there is no way that they can know that you won't see their answers to the mailing list). You can read the answers by browsing

Re: [fpc-pascal] Is there anyone will answer my questions

2010-05-02 Thread Graeme Geldenhuys
On 2 May 2010 12:21, Jonas Maebe wrote: > If you post messages to a mailing list without mentioning that you are not > subscribed, it's normal that people only reply to the mailing list without > CC'ing you (because there is no way that they can know that you won't see > their answers to The m

Re: [fpc-pascal] Is there anyone will answer my questions

2010-05-02 Thread Jonas Maebe
On 02 May 2010, at 12:41, Graeme Geldenhuys wrote: > On 2 May 2010 12:21, Jonas Maebe wrote: >> If you post messages to a mailing list without mentioning that you are not >> subscribed, it's normal that people only reply to the mailing list without >> CC'ing you (because there is no way that t

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Bihar Anwar
On May 2, 2010 4:24:37 PM, Jonas Maebe wrote: > The reference counting logic is considered to be an opaque implementation > detail (whose implementation can change at any time). It is undocumented by > design. In fact, it was already documented in detail in FPC Language Reference Guide: 3.2.4

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Jonas Maebe
On 02 May 2010, at 13:46, Bihar Anwar wrote: > On May 2, 2010 4:24:37 PM, Jonas Maebe wrote: > > >> The reference counting logic is considered to be an opaque implementation >> detail (whose implementation can change at any time). It is undocumented by >> design. > > In fact, it was already

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Jonas Maebe
On 02 May 2010, at 14:05, Jonas Maebe wrote: > I know, we've had bug reports about that in the past. Such code is simply > broken. See e.g. http://bugs.freepascal.org/view.php?id=15526 > andhttp://bugs.freepascal.org/view.php?id=9472 And the thread starting with http://www.mail-archive.com/fp

Re: [fpc-pascal] Is this a reference counting bug?

2010-05-02 Thread Bihar Anwar
From: Jonas Maebe, May 2, 2010 7:05:46 PM >And the last one explicitly states "No assumptions should be made about the >number of temporary variables or the time when they are finalized". I see, thanks Jonas for noting that statements. >I know, we've had bug reports about that in the past. "Su

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread Marcos Douglas
Hi Graeme, On Fri, Apr 30, 2010 at 6:22 PM, Graeme Geldenhuys wrote: > > I haven't used FastCGI yet, but there seems to be an implementation > included with FPC. > >  /packages/fastcgi/* > I wanted know if many people here use that implementation of FastCGI. > Free Pascal is a very good choice

[fpc-pascal] internal error 200604201 ??

2010-05-02 Thread jfj
hello After installing ubuntu 10 i get an internal error 2000604201 when i compile a program. with previous version of ubuntu there was no problem. the source for error line seems ok: "if (p3[0] > 0) and (p3[0] < 100) then" any Idea? thanks in advance for any help __

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I am having some problems with XPath. EvaluateXPathExpression raises exceptions with some search strings and I am not sure if it is my limited knowledge of XPath, or a buggy XPath implementation. The attached demo uses the example from http://www.w3schools.com/xpath/xpat

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread Graeme Geldenhuys
On 2 May 2010 17:17, Marcos Douglas wrote: > I need to rewrite a Desktop app, coded in Delphi 7, to Web. The > options: PHP, Java, C# and Pascal. For me, FreePascal would be a good Some reasons: * Free Pascal is open source (always available and no vendor lock-in) * Free Pascal is free, so can

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread Rainer Stratmann
Am Sunday 02 May 2010 19:29:36 schrieb Graeme Geldenhuys: > On 2 May 2010 17:17, Marcos Douglas wrote: > > I need to rewrite a Desktop app, coded in Delphi 7, to Web. The > > options: PHP, Java, C# and Pascal. For me, FreePascal would be a good > > Some reasons: > * Free Pascal is open source (al

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread Lee Jenkins
Graeme Geldenhuys wrote: On 2 May 2010 17:17, Marcos Douglas wrote: I need to rewrite a Desktop app, coded in Delphi 7, to Web. The options: PHP, Java, C# and Pascal. For me, FreePascal would be a good Some reasons: * Free Pascal is open source (always available and no vendor lock-in) * Fre

[fpc-pascal] linked list to criticize

2010-05-02 Thread spir ☣
Hello, Finally did it! Managed to write in Pascal a linked list type, with all common operations (put, change, remove, find & more). If anyone is nice enough to have a look, comment, and criticize: http://spir.wikidot.com/pascal-doubly-linked-list (There's an extensive intro text, and a test suit

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Frank Church
I have run it with some success. What I find missing now is the ability to give the correct output for a an index value, such as //bookstore/book[1]/title. It works on the w3schools version but not in the FPC one. Are we on the same versions of Lazarus and XPath? On 2 May 2010 17:37, Lee Jenkins

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Felipe Monteiro de Carvalho
Hello, I think it would be good if you add a link to your package here: http://wiki.lazarus.freepascal.org/Components_and_Code_examples -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I have run it with some success. What I find missing now is the ability to give the correct output for a an index value, such as //bookstore/book[1]/title. It works on the w3schools version but not in the FPC one. Try changing to only using one front slash instead of tw

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Frank Church
When I try it the /bookstore/book[price>35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / . > Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 with Lazarus 0.9.28 On 2

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: When I try it the /bookstore/book[price>35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / . Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 wi

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Graeme Geldenhuys
2010/5/2 spir ☣ : > (There's an extensive intro text, and a test suite with output.) Did you know FPC comes with a unit testing framework called fpcUnit? /src/packages/fcl-fpcunit/src Alternatively you can also use DUnit2 which I ported to Free Pascal a while back, and has a bit more features a

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread duilio foschi
how do I build a minimal 'hello world' CGI application under Free Pascal ? Where do I find 'instructions for dummies' ? Peppe 2010/5/2 Lee Jenkins : > Graeme Geldenhuys wrote: >> >> On 2 May 2010 17:17, Marcos Douglas wrote: >>> >>> I need to rewrite a Desktop app, coded in Delphi 7, to Web.

Re: [fpc-pascal] linked list to criticize

2010-05-02 Thread Paul Nicholls
Hi Denis, nice :) I'm curious, why didn't you make it a class...wouldn't that have made it nicer/easier to use and program? cheers, Paul - Original Message - From: "spir ☣" To: "FreePascal" Sent: Monday, May 03, 2010 4:25 AM Subject: [fpc-pascal] linked list to criticize Hello,

Re: [fpc-pascal] TCgiApplication in cgiapp unit - mostly deprecated

2010-05-02 Thread leledumbo
> how do I build a minimal 'hello world' CGI application under Free Pascal ? > > Where do I find 'instructions for dummies' ? Have a look http://wiki.lazarus.freepascal.org/CGI_Web_Programming here . -- View this message in context: http://old.nabble.com/TCgiApplication-in-cgiapp-unit---mos

Re: [fpc-pascal] internal error 200604201 ??

2010-05-02 Thread leledumbo
> any Idea? Please report. And internal error always means bug. -- View this message in context: http://old.nabble.com/internal-error-200604201tp28427734p28432087.html Sent from the Free Pascal - General mailing list archive at Nabble.com. ___ fp