> On May 26, 2017, at 4:06 PM, Dennis <[email protected]> wrote:
> 
>  writeln(  IntToHex(LongWord(aInt),4));
> 
>  writeln(  IntToHex(LongWord(aObj),4)); //this will output a different Hex 
> value from previous writeln

I think an object and interface are indeed not the same memory and you need to 
use Supports() to get a reference to the interface from the object. The 
interface reference can be cached and used later or you need to call Supports 
every time which does a string compare and is slow.

Regards,
        Ryan Joseph

_______________________________________________
fpc-pascal maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to