[python-win32] Problem with "stacksize" for Python Com servers

bjorn.x.hellstrom at se.abb.com bjorn.x.hellstrom at se.abb.com
Mon Feb 2 13:40:23 EST 2004


Hello,
I have used Python now for a couple of month with greate success for 
"Python(command line)" and for Pythonwin.
My application (my.dll) needs more than 1 MB in stacksize, so I had to 
recompile and reload pythoncore(python23.dll), python(python.exe) and 
pythonw(pythonw.exe).
I have set "Stack Reserve Size" equal to 100 MB, same for "Stack Commit 
Size". 

I'm using Python version 2.3.2, win32all-163, Microsoft .NET, Excel 2002 
on a PC with Windows XP servicepack 1.

When using Python COM servers, I can run my application in Excel, but only 
for "small" problems (stacksize < 1MB)
When I have my normal application, Excel crash, as python and pythonwin 
did before I increased the stacksize.

How to increase stacksize for COM applications?

My example is similar to Example 15-14 in the book "Programming Python, 
2nd Edition, O´Reilly", except that I import my application before 
defining "class MyServer:".

Mbr / Björn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20040202/c6839c9e/attachment.html


More information about the Python-win32 mailing list