Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does Excel crash with the DDServer test program?

crash ddserver Excel program Test
0
Posted

Why does Excel crash with the DDServer test program?

0

When you put a DDE formula in a cell, Excel asks the server for a number of data formats, starting with XLTable. Excel crashes if the server does not respond in a timely manner. The DDServer test program does not have the format XLTable available, so if you use the formula “=MyService|Test!Count” it puts up a message box asking if this format is to be provided. The delay in answering “No” causes Excel to crash. The solution is to modify the test application so that it automatically rejects any data format that is not built in. You can either remove the event procedures for DDENewDataRequested and DDENewAdviseRequested or make them return without doing anything. This causes DDServer to reject the requests for unavailable data formats immediately. Excel does eventually ask for CF_TEXT which the test program can provide. With this modification, Excel receives data and updates without problems, including a runaway count. Excel sets up a hot link (advise loop) with the DDE server. It uses t

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123