Microsoft KB Archive/61080

“Session Too Complex. Please Close a Window” with DDE Channels

PSS ID Number: Q61080 Article last modified on 03- 9-1993

1.00 1.10 1.10a 2.00 2.00a WINDOWS

Summary: If Microsoft Word for Windows cannot open any more DDE channels, the following message will be displayed: Session too complex. Please close a window. This message is displayed because Word cannot wait for activation while it is in a SendMessage mode. (Initiate messages are received through SendMessage.) While Word is processing the initiate message, the error is detected and the message is immediately displayed. To work around this problem and open another DDE channel, a previous DDE channel must be closed.

More Information: To reproduce this error message, open Word for Windows and Microsoft Excel, and run the following macro from Excel: =FOR(“counter”,1,40) =INITIATE(“winword”,“document1”) =EXECUTE(A2,“[’bogus command]”) =NEXT =RETURN

Additional reference words: w4wmacro 1.00 1.10 1.10a 2.00 2.00a 1.0 2.0 1.1 1.1a 2.0a