BUG: Incorrect Err.Number Returned by MTS Component (258574)
The information in this article applies to:
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 4.0
- Microsoft Transaction Server 2.0
This article was previously published under Q258574 SYMPTOMS
A Microsoft Transaction Server (MTS) component has a method, which uses a variant as an argument. If a client component calls the method, with a parameter that is not declared as a variant, when the MTS component returns an error hr value (or performs Err.Raise), the caller receives an E_INVALIDARG error message instead of the error hr value.
RESOLUTION
Here are three ways to work around this behavior: - Change the function signature to take the real argument type instead of a variant.
- Declare the variable as a Variant in the component that makes the call.
- Use late binding (declare the MTS object As Object).
NOTE: This problem does not occur with COM+.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | kbBug kberrmsg kbpending KB258574 |
---|
|