Article ID: 102571
Article Last Modified on 11/21/2006
If a server calls DdePostAdvise() with a topic/item/format name set that includes the set currently being handled in an XTYP_ADVREQ callback, a stack overflow may result.
case WM_PAINT:
InvalidateRect (hWnd, NULL, TRUE); UpdateWindow (hWnd);
// in DdeCallback:
case XTYP_ADVREQ:
if ((!DdeCmpStringHandles (hsz1, ghszTopic)) &&
(!DdeCmpStringHandles (hsz2, ghszItem)) &&
(fmt == CF_SOMEFORMAT))
{
HDDEDATA hData;
hData = DdeCreateDataHandle ();
PostMessage (hWnd, WM_DATACHANGED,hData,);
return (hData);
}
break;
// in MainWndProc():
case WM_DATACHANGED:
DdePostAdvise (idInst, ghszTopic, ghszItem);
:
DDEML and CBR_BLOCK
Additional query words: 3.10 3.50 4.00
Keywords: kbinfo KB102571