Hi Jonas,

Thank you!
I don't understand. 0011503 is a major failure. Is it in the compiler or in some library?
This code:

 Atest := TTest.Create();
 Atest := NIL;

will release properly the reference at assignment to NIL

this code does not:

 Atest := TestFunc();
 Atest := NIL;


This is a huge problem. This code must work the same way in both cases but it does not. We are porting a huge library of over 4 million lines of code from Delphi. This is a major show stopper. I can probably take a look in the compiler as it will be much easier and faster for us to fix the compiler to be Delphi compatible rather than rewriting the libraries. They rely heavily on interfaces and the correct reference counting. Rewriting this even if desirable will delay the project with at least a year at best. By definition when there are no active references to an interface it must be released. This is a total failure of the functionality.

 With best regards,
   Boian Mitov

--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------


----- Original Message ----- From: "Jonas Maebe" <[EMAIL PROTECTED]>
To: "FPC developers' list" <fpc-devel@lists.freepascal.org>
Sent: Thursday, June 19, 2008 4:15 AM
Subject: Re: [fpc-devel] Need patch for bugs : 0011503 / 0009472



On 19 Jun 2008, at 13:10, Boian Mitov wrote:

It appears that this bug has been fixed. Where I can get a patch for this? This is a very high priority bug for us, and we are glad that it has already been addressed :-) . I am very eager to test the fix.

Please read the comments to http://bugs.freepascal.org/view.php?id=9472

There was/is no bug in the compiler and therefore nothing has been "fixed".


Jonas
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to