Monitoring Your Components as They Transact

Along with all the other features that MTS gives you, you can also observe what the installed components are doing in MTS. There are two different views that will tell you whether they are running in MTS and what transactions are going on.

Tip

If you have your components in a Visual Basic group along with your testing harness, you might have trouble testing the components with MTS when you start up your test harness. The problem is that when debugging components in Visual Basic, MTS is not aware of the components and therefore GetObjectContext doesn't return a reference. Then when you go to call a method on the Context object, an error occurs. If you receive the error, "Object variable or with block ...

Get Sams Teach Yourself Microsoft® Windows® DNA Programming in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.