FIX: Large Number of Methods in an OLE Interface Causes Failure
Article ID: 170989
Article Last Modified on 7/11/2005
APPLIES TO
- Microsoft OLE 4.0, when used with:
- Microsoft Platform Software Development Kit-January 2000 Edition
This article was previously published under Q170989
SYMPTOMS
Under Windows NT 4.0, no more than 110 methods can be present in an OLE
automation dual interface that is remoted via type library marshalling.
Some applications, such as Microsoft Word, have automation interfaces
containing more than 110 methods. This can cause crashes and other
unexpected behavior when a controller invokes an automation method in such
a server.
The limit under Windows 95 is 512 methods per dual interface.
CAUSE
This problem is caused by a marshalling bug in the RPC runtime libraries.
RESOLUTION
The limit on the number of methods in an interface has been increased in
the later releases of the RPC libraries.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. The limit on the number of interface
methods has been increased in Windows NT 4.0 Service Pack 2 (see the MORE
INFORMATION section of this article).
Keywords: kbbug kbfix kboswinnt400sp2fix kbautomation KB170989