Re: marshall interface needed?

Tech-Archive recommends: Speed Up your PC by fixing your registry



"George" <George@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5FAB3489-F8BB-48F8-8614-BB1D8BD11C99@xxxxxxxxxxxxx
You, as a client of A, don't have access to B pointer, and in fact
don't need to know nor care that A uses B at all. That is A's
implementation detail. The solution is not to break COM rules in the
first place, and properly marshal A's pointer.

Sorry, I do not express my solution clearly. I mean the solution is
like this, A holds proxy pointer to B, A is MTA and B is out-of-proc
server. My solution to let another STA to use B is, A marshall proxy
interface of B to STA

How would A know it's supposed to do that, and why should it?

A is registered as an MTA component, and expects to be called on an MTA
thread. Why should it go out of its way to help you misuse it?

If you, as a client, also want to use B, just create your own instance
and marshal it any way you see fit. Again, the B pointer A holds is an
internal implementation detail of A, of which you shouldn't know nor
care. As long as you use A correctly, everything just works.

Do you think this solution ok?

No, it makes no sense to me at all.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Conceptual, Logical, and Physical views of data
    ... As an aside, let me just relate that about 2 years ago, I had a lengthy discussion at work in which it was me vs. 2 guys with CS Ph.Ds, with them taking the position that there's no difference between a pointer and a foreign key. ... I don't care what some other developer's 'meaning' for it is as long as that meaning works in his application and doesn't screw up mine. ... I'm not interested in trying to prove it, but I suspect that if one took some of their pronouncements to heart, all logical database development would come to a permanent halt. ... However, if somebody else doesn't see it my way, good for them, and let them explain all the costs, short-term and long-term of their better approach (and better it may be in their particular case, especially if the boss and owners don't care about the long-term in which case I'd hope it was a commercial and not a government 'enterprise') to their boss or customer. ...
    (comp.databases.theory)
  • Re: Pointer equality and dereferencing
    ... the guarantee that I can use them interchangeably. ... the guarantee that I care about is that when I create an exact ... replica of a sequence of bytes that represents some known pointer, ... Such a smart compiler would have to ...
    (comp.std.c)
  • Re: pointer one past malloc.ed memory
    ... If you care to post some C code which exhibits the ... > For example pointer to a struct. ... No. Pointers are scalar but not integer types. ... is a signed integer type called ptrdiff_t, ...
    (comp.lang.c)
  • Re: GC performance - GC fragility
    ... A GC might make you think you don't have to care but you almost certainly DO. ... There's IMHO only one rational solution in native languages - reference counting. ... Store an object (pointer) in 10 different lists, so that each list holds the same pointer to the same object. ...
    (borland.public.delphi.non-technical)
  • Re: API design problem - buffer scatter I/O
    ... Pointer to a subtype is not necessarily a subtype of the ... That is not an implementation detail. ... constraints between related types, ...
    (comp.lang.ada)