The information in this article applies to:
SUMMARYWhen developing Visual Basic components to run under control of Microsoft Transaction Server (MTS), if your object uses ObjectContext, you may encounter the following error when trying to debug them within the Visual Basic environment: This article describes how to configure Visual Basic to allow you to debug these components using the special debug version of GetObjectContext. There are two ways to avoid this error when writing Visual Basic components. The first is to configure Visual Basic to use a special version of the object context. The second way is to use the Microsoft Developer Studio environment. MORE INFORMATIONTo facilitate application debugging using Visual Basic, you can debug a component that uses ObjectContext by enabling a special version of the object context. This debug-only version is enabled by creating the following registry key:
Steps to Create the Registry Key
NOTE: When running in debug mode, none of the functionality of MTS is enabled. GetObjectContext returns the debug ObjectContext rather than returning Nothing. When running in this debug mode, the ObjectContext operates as follows:
REFERENCESFor more information on debugging compiled Visual Basic components using the Microsoft Developer Studio environment, please see the following article in the Microsoft Knowledge Base: Q166275 HOWTO: Debug a Native Code Visual Basic Component in VC++Microsoft Transaction Server 2.0 Help; search on: "Debugging Visual Basic MTS Components" Additional query words: kbdse kbMTS100 kbMTS200 kbVBp500 kbVBp600 kbRegistry
Keywords : kbMTS kbVBp500 kbVBp600 kbGrpCom kbDSupport |
Last Reviewed: October 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |