Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

Tips for debugging MTS components in the VB IDE

Total Hit ( 1606)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


It was and it is still easy to debug MTS components written on Visual C++ version 5 and higher. Debugging components written on Visual Basic 5 is possible under VC IDE. Starting with version 6, Visual Basic allows to debug under its own IDE. Here are the things you should keep in mind while preparing to debug session:

1) Set appropriate timeouts. If you're going to drill your code down thoroughly it is almost obvious that you'll need longer timeouts on connection pooling and package idle time.

2) Package of the component must be shut down before debug session, i.e. before pressing F5 button don't forget to do "Shut Down" action on the package from "Transaction Server Explorer."

3) Debugging VB5 components in VC IDE sometimes is almost worthless because of bad variables visibility.

4) Debugging VB6 components is possible only with WinNT4 Service Pack 4 installed and is not possible on Windows 9x platform. The proper settings for the software and other issues are well described in VB6 Readme file (READMEVB.HTM).

5) It's better to debug VB6 components having them removed from MTS environment, otherwise you'll need to reinstall the components in MTS (when debugging, VB6 replaces registration information of the component and, for example, instead of "C:\MyComponents\MyModule.dll" you'll see "C:\Program Files\Microsoft Visual Studio\VB98\VB6DEBUG.DLL" registered under MTS).

6) "Stateless component remains activated after a call" issue. When debugging MTS components under VB IDE an MTS component might be shown as "activated" in MTS Explorer even if you're sure that this component is stateless (i.e. you call SetComplete or SetAbort during each method call). It is neither an MTS glitch nor a developer's mistake. This happens because of VB IDE. During debugging (especially in step by step mode) VB calls some interfaces of the component. Also, if by any reason you decided to put the component in the watch window, don't be surprised as well.


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.