MTS Component

Results 1 to 2 of 2

Thread: MTS Component

  1. #1
    Mohammed Akram Guest

    Default MTS Component

    I would like to introduce myself as Mohammed Akram, Software Engineer, Bangalore. I have the following clarification in MTS<BR><BR>I have created an MTS component, registered in my m/c (I&#039m using VB6 PWS - win98). the functionality is simple. To insert records in 2 tables. It&#039s written in VB (both the standard exe with 4 ctrls and dll are in the same project). When I execute the exe, the insertion is happening fine, but when it executes SetComplete or SetAbort or any of the methods of GetObjectContext object, it&#039s giving an error "OBJECT VARIABLE OR WITH BLOCK VARIABLE NOT SET".<BR><BR>I tried to use the DEBUG MODE (BY CREATING A KEY FOR TRANSACTIONS IN REGEDIT WITH RUNWITHOUTCONTEXT PROPERTY AS SUGGESTED BY MICROSOFT). The MTS transaction properties are not enabled as such. <BR> <BR>I&#039m not able to proceed with the developing MTS Components. Pls clarify<BR> <BR>Thanks in advance and Regardz<BR> <BR>Akram<BR><BR> <BR>

  2. #2
    Jairo Guest

    Default RE: MTS Component

    Akram,<BR>Are you RUNNING MTS? I understand you&#039re running Win98 and PWS - which I don&#039t even know if MTS is supported on those platforms. If that&#039s the case, then your best bet is to comment out the GetObjectContext, SetComplete, and SetAbort. In that way, you can test the component out, and when you&#039re ready, uncomment the MTS specific stuff and register the component in MTS.<BR><BR>HTH,<BR>Jairo<BR>

Posting Permissions

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