RTD Server does not send update notifications to multiple Excel instances (284883)
The information in this article applies to:
- Microsoft Office Excel 2003
- Microsoft Excel 2002
- Microsoft Visual Basic Professional Edition for Windows 6.0
This article was previously published under Q284883 SYMPTOMS When you use multiple instances of Excel with your
RealTimeData (RTD) server, you may receive the following message:
The real-time data server 'servername.classname' is not
responding. Would you like Microsoft Excel to attempt to restart the server?
Consequently, your RTD server is unable to send update notifications
to multiple instances of Excel. CAUSE You may receive this message if your RTD server is an
ActiveX EXE that is built for MultiUse instancing, which is a default setting
for ActiveX EXE projects in Visual Basic. An ActiveX EXE that is MultiUse can
be shared among clients. Separate Excel instances cannot share RTD servers;
when Excel starts an RTD Server, it calls the RTD Server's ServerStart method and passes it a reference to the CallBack object for that instance of Excel. Therefore, if two instances of
Excel attempt to share the same RTD server, the second instance replaces the CallBack object for the first instance, thereby invalidating the CallBack object for the first instance. RESOLUTION Use SingleUse instancing for ActiveX EXE components that
will act as RTD servers for Excel. When you build ActiveX EXE components as
SingleUse, each instance of Excel has its own instance of the RTD
server.
Another solution is to use an ActiveX dynamic-link library
(DLL) for your RTD server rather than an ActiveX EXE. ActiveX DLLs load in the
same process space as their clients, and each instance of Excel always has its
own instance of the RTD server. REFERENCES
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
285339
How to create a RealTimeData Server for Excel 2002
Modification Type: | Minor | Last Reviewed: | 4/1/2005 |
---|
Keywords: | kberrmsg kbpending kbprb KB284883 kbAudDeveloper |
---|
|