Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2003-07

Incorrect behaviour of interface queriing

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ivan Shikhalev

Hello!

When I try to query the interface, which is implemented by the ancestor of the class of the current object, but not it immediate class, then the QueryInterface returns nil. But it is not right because this interface is implemented really.

And as solving this problem, I am offering a small correction in the RTL-source file inc/objpas.inc. Diff file is attached.

------------
Ivan Shikhalev
http://fpc.by.ru/

Reply by email

Unknown author
to Ivan Shikhalev
Ivan Shikhalev wrote 9 lines
Hello! When I try to query the interface, which is implemented by the ancestor of the class of the current object, but not it immediate class, then the QueryInterface returns nil. But it is not right because this interface is implemented really. And as solving this problem, I am offering a small correction in the RTL-source file inc/objpas.inc. Diff file is attached.

Thank you. I applied the patch.

By the way, you should increase the fonts on your website, it's nearly unreadable in Konqueror, it is even less readable in Netscape :/

Michael.

Reply by email