<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1498" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=856051623-26052005><FONT face=Arial color=#0000ff size=2>I can
see no obvious leaks in the dde code. It is possible the problem is at the
"other end" of the conversation? If it possible to create a repro case
using Python code at both ends?</FONT></SPAN></DIV>
<DIV><SPAN class=856051623-26052005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=856051623-26052005><FONT face=Arial color=#0000ff
size=2>Mark</FONT></SPAN></DIV>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
python-win32-bounces@python.org [mailto:python-win32-bounces@python.org]<B>On
Behalf Of </B>Ray Schumacher<BR><B>Sent:</B> Friday, 27 May 2005 3:51
AM<BR><B>To:</B> python-win32@python.org<BR><B>Subject:</B> [python-win32]
dde.pyd always dies after exactly 16378 Requests<BR><BR></FONT></DIV>In the
attached .py test, I start an external program that provides data access via
DDE.<BR>create a server<BR>do a number of CreateConversation-s, one for each
channel<BR>make connections<BR>do lots of .Request on the connections<BR><BR>I
tried just one channel, one connection, still 16378, so it seems to be the
total number of requests, irrespective of connections/Conversations.<BR><BR>Do
I need to periodically clean up resources somehow? <BR><BR>The docs at
Activestate are a bit sparse, and I could not find the answer from
MSDN.com:<BR><TT>"<FONT face=VERDANA size=2>The maximum number of DDE
conversations that can be open simultaneously is determined by Microsoft
Windows and your computer's memory and resources. If the conversation can't be
initiated because application isn't running or doesn't recognize topic, or if
the maximum number of conversations has already been reached, the DDE function
returns a Null.</FONT> "<BR></TT>But, conversations is not the
issue.<BR><BR>Am I doing DDE in a fundamentally inefficient manner?<BR>Would
using 'CreateServerSystemTopic', 'CreateStringItem', 'CreateTopic' help at
all?<BR><BR>When I run this script (or similar, counting requests), it always
ends up like this:<BR>C:\python ddeclient_tst.py<BR><BR>...<BR>16362
same<BR>16363<BR>16364<BR>16365<BR>16366<BR>16367<BR>16368<BR>16369<BR>16370<BR>16371
same<BR>16372<BR>16373<BR>16374<BR>16375<BR>16376<BR>16377<BR>16378
<---- dies here with Windows error<BR>>> C:\<BR><BR>I could shut down
the server and reconnect it all, but that takes significant
time.<BR><BR>Thanks,<BR>Ray </BLOCKQUOTE></BODY></HTML>