[DUG] Is it a bug in latest version of Delphi? - Solution

Rohit Gupta r.gupta at xtra.co.nz
Wed Feb 24 11:14:41 NZDT 2010


Jolyon,

As I mentioned I was reporting on things 7 years old, with failing 
memory quite common to my  age. 

And I am not going to spend the time searching for it to prove you right 
or wrong.  Again, from memory, Intel was changing the design of the 
memory manager which was going to mean that  a better definition of the 
null pointer would be  ffffffffff...  What happened with that, I do not 
know or care.

As for the rest, please pretend you are hearing the stereotypical Indian 
voice.

"Oh my golly gosh, thank you for clarifying that sir.  I must have spent 
months trying a billion solutions before I must have accidentally found 
the X2."

Did it not occur to you, that it works because I knew what I was 
doing....  :-)  And before you retort, I do not modify the vcl for any 
reason as it could lead to problems when using bpls on a clients machine 
where they already exist from some other application.

Rohit


Jolyon Smith wrote:
>
> There was no change in the “Windows standard”.  It’s a simple error in 
> some poorly implemented error handling code added to the VCL at some 
> point (subsequently fixed in combo boxes, but not listboxes – as of 
> D2006).
>
>  
>
> You needn’t have waded through all the replies to find that the answer 
> was provided.  The answer came very quickly… what then followed was a 
> great deal of pointless and diverting/misleading speculation as to 
> other possible explanations that disregarded the fact that the answer 
> was very quickly apparent from an inspection of the VCL source.
>
>  
>
>  
>
> FYI - Your “multiple by 2” solution worked because it transformed a 
> stored value of “-1” into “-2”, which then avoided the collision 
> between that value (-1) and the Windows “error” code and thus avoided 
> the problem caused by the overly-helpful and incorrectly implemented 
> error handling code in the VCL.
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20100224/269a3de9/attachment.html 


More information about the Delphi mailing list