RTD IRTDUpdateEvent::UpdateNotify() never returns

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I observed a strange behaviour of the UpdateNotify method:

When closing excel, excel calls DisconnectData for all cells refering to my
rtd server.
During this DisconnectData calls, IRTDUpdateEvent::UpdateNotify() is called
(for updates of cells which have not been disconnected yet.

In this case, it happens sometimes, that the IRTDUpdateEvent::UpdateNotify()
NEVER returns and blocks the whole thread in which it was called (a seperate
thread, only for UpdateNotify() calls, similar to
http://support.microsoft.com/default.aspx/kb/327215)

The UpdateNotify() method is called before ServerTerminate,
IRTDUpdateEvent::Disconnect() and IRTDUpdateEvent::Release() has been called.

Are UpdateNotify() calls forbidden after a certian point (before
ServerTerminate was called)?

Any idea?

Cheers,
Harry
 
Just encountered the same problem. In my case UpdaetNotify is called from another thread. I had a deadlock during shutdown because of this.

Knowing UpdateNotify() may not return, I get rid of the deadlock and the shutdown is fine now. So my guess is that the UpdateNotify() returns after the RTD server is released. The trick for me is to avoid deadlock during the process.

I also tried calling updateNotify from the main thread and never encountered the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top