Results 1 to 4 of 4

Thread: Debugging COM+ dlls

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    112

    Debugging COM+ dlls

    Hi all,

    I got two dlls say dllA and dllB. They are set to run in com+. I debug those dlls with a client vb project(exe). First, i opened dllA's project and then opened dllB's project and finally the client vb project. Then i played the three projects. Client VB project calls a method in dllA and then dllA calls a method in dllB.

    At the point dllA calls a mehtod in dllB, an error occured:
    Automation error
    You made a method call on a COM+ component that has a transaction that has already aborted or in the process of aborting.


    If i directly run the client vb project with all the dlls run in com+, no error occurs.

    Can anyone help? Thanks!

  2. #2
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    You need to setup the dll's as compatible with the dll's installed in COM+.

    You should call your dllB from dllA with objCtx.CreateInstance, not with New nor CreateObject, you need to tell COM+ that you want to call your dll from the same object context as DllA.

    Transactions are simulated when you debug, so don't trust them.

    Andre

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    112
    Thanks Andr!


    The dlls are compatible with the dlls installed in COM+.

    In com+, i think it is ok to use create object or new to create instance of classes which located in different dlls.
    CreateInstance is only use in MTS, and its existence in COM+ is only for backward compatiability.

  4. #4
    Addicted Member
    Join Date
    Jun 1999
    Location
    Los Angeles
    Posts
    186
    Yeah you're right, but I always use it, I guess is habit.

    Cheers,

    Andre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width