OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Rahul Singh01 (rahul_singh01INFY.COM)
Date: Thu Apr 04 2002 - 03:05:47 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi

    We have three layers of calls for a component.

    We have one poolable component(say B) which is neutral threaded and is marked for pooling in COM+. The ObjectControl_Activate of this poolable component instantiates a third party apartment threaded dll(say C) and keeps the instance alive as one of its member variables till the application that contains the poolable component in COM+ is shut down. This third party dll basically connects through TCP/IP calls using Winsock to the third party site to download information (this is not a dll to wrap around a web-service, it uses Winsock). You can say that this poolable component mimics a connection pool. The third party dll, C, is not placed in COM+.
    This poolable component is called by other apartment threaded components which utilize connections from the connection pool.

    I would like to know whether there are any gotchas involved in having this kind of setup.
    As in, are there any issues in instantiating an apartment threaded object from a neutral threaded component which is pooled in COM ?
    Are there any problems in accessing this apartment threaded object whose instance is kept alive in the neutral threaded component from another apartment threaded application ?
    Should i use a critical section in the ObjectControl_Activate part of the neutral threaded component B, when I instantiate the third party dll ?
    Should I use a critical section when I use the third party dll from any method in the neutral threaded component ?

    I'm not sure about the threading models in COM and was hoping someone could help me out.

    I'm not sure if this question can be posted in this mailing list. If it cannot then i'd be grateful if someone could re-direct me to the appropriate separate mailing list.

    Can anyone please help me out.

    Thanks in advance
    Rahul

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM