Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / March 2005

Tip: Looking for answers? Try searching our database.

Why do cross process QI calls fail

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Rust - 23 Mar 2005 19:53 GMT
I'm creating an VB.NET class the implements 2 COM interfaces, call them IFoo
and IBar.  If I create an object in my local process, I can call IFoo->QI and
get back the IBar interface, but if the object is hosted in a different
process, the QI fails.  Any ideas how I can get this working?
Bill Rust - 24 Mar 2005 00:23 GMT
I just modified my code so that it inherits from System.MarshalByRefObject
and now it is working.

> I'm creating an VB.NET class the implements 2 COM interfaces, call them IFoo
> and IBar.  If I create an object in my local process, I can call IFoo->QI and
> get back the IBar interface, but if the object is hosted in a different
> process, the QI fails.  Any ideas how I can get this working?
Bill Rust - 24 Mar 2005 17:51 GMT
Looks like I spoke to soon.  I'm still having problems QI'ing for a different
interface on my .NET object when it is in a different process.  Thanks in
advance for any suggestions.

> I just modified my code so that it inherits from System.MarshalByRefObject
> and now it is working.
[quoted text clipped - 3 lines]
> > get back the IBar interface, but if the object is hosted in a different
> > process, the QI fails.  Any ideas how I can get this working?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.