Article View: borland.public.delphi.language.objectpascal
Article #118Re: Interfaces inheritance and remoting problem in D8 !?
From: Ritchie
Date: Mon, 26 Jan 2004 22:13
Date: Mon, 26 Jan 2004 22:13
40 lines
2035 bytes
2035 bytes
In article <4015289c$1@newsgroups.borland.com>, luba@totalsoft.ro says... > type > TDatamoduleA = class( TDatamodule, IMyInterface ) > end; > > TDatamoduleB = class(TDatamoduleA) > end; > when i connect to TDatamoduleB through remoting and try to get an > IMyInterface , i will get an error! What kind of remoting, may I ask? MIDAS? COM? RemObjects? Something else? > if I declare: > > TDatamoduleB = class(TDatamoduleA, IMyInterface) > IT WORKS!!! > Shouldn't TDatamoduleB implement IMyInterface by default, because it > inherits from an object that implements it? Yes, it should - I use that fact all the time, and it always works locally. I would suspect that whatever remoting layer there is might be mis- handling the RTTI (in .NET, for example, if you specify BindingFlags.DeclaredOnly, you have to make sure to walk up the .ClassParent in some cases to get all the declarations you need). > Regards Regards :) -- Ritchie Annand Senior Software Architect http://www.malibugroup.com http://nimble.nimblebrain.net http://wiki.nimblebrain.net
Technical Details
Message-ID:
<MPG.1a7f3f0d7595d65b98969e@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4015289c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109d30,2232219cadd406c8 X-Google-Attributes: gid109d30,public X-Google-ArrivalTime: 2004-01-26 14:40:05 PST From: Ritchie <ritchieabatbat@spamcop.netbatbat> Newsgroups: borland.public.delphi.language.objectpascal Subject: Re: Interfaces inheritance and remoting problem in D8 !? Date: Mon, 26 Jan 2004 15:13:57 -0700 Message-ID: <MPG.1a7f3f0d7595d65b98969e@forums.borland.com> References: <4015289c$1@newsgroups.borland.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.60.2057 NNTP-Posting-Host: 142.179.150.64 X-Trace: newsgroups.borland.com 1075155236 142.179.150.64 (26 Jan 2004 14:13:56 -0700) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!news.belwue.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail