Re: [fpc-pascal] a queried interface destroyed after writeln the address of it

2012-08-23 Thread ZAN DoYe
thank you:) ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] a queried interface destroyed after writeln the address of it

2012-08-23 Thread Jonas Maebe
ZAN DoYe wrote on Thu, 23 Aug 2012: I don't know if it's an undefined behavior or a bug. The environment is fpc 2.6-bugfix branch x86-64 linux. See the details in the attached code Your code is wrong: you have to assign the result of cm.create to an interface variable instead of to a class

[fpc-pascal] a queried interface destroyed after writeln the address of it

2012-08-22 Thread ZAN DoYe
I don't know if it's an undefined behavior or a bug. The environment is fpc 2.6-bugfix branch x86-64 linux. See the details in the attached code program t2; {$mode objfpc} uses sysUtils; type ip= interface ['{f0cea771-a3f1-4223-bea2-c46c5f0f61fa}'] end; iq= interfac