Re: [python-win32] 1MB Thread Stack Size

2005-06-01 Thread Andrew MacIntyre
> I have a program that needs to create a great deal of > threads. Unfortunately, I cannot seem to find a way to lower > the 1MB default stack size per thread. The threading module > does not seem to support setting the stack size explicitly. > I have 1GB of memory on my system so I can only

Re: [python-win32] 1MB Thread Stack Size

2005-06-01 Thread Mark Hammond
win32process.beginthreadex allows you to specify the size. However there is almost certainly a better way of doing what you want than creating that many threads, generally using non-blocking operations and an IO Completion Port - what exactly are you doing? I believe the "stackless" prject is al

[python-win32] 1MB Thread Stack Size

2005-06-01 Thread Hughes, Chad O
Title: 1MB Thread Stack Size I have a program that needs to create a great deal of threads.  Unfortunately, I cannot seem to find a way to lower the 1MB default stack size per thread.  The threading module does not seem to support setting the stack size explicitly.  I have 1GB of memory on my

Re: [python-win32] Ref-count bug in win32file.GetQueuedCompletionStatus

2005-06-01 Thread Mark Hammond
> Hi, > I think I've found a ref-count bug in win32file.GetQueuedCompletionStatus You have indeed! GetQueuedCompletionStatus used to assume that the OVERLAPPED object was previously added to the IOCP via PortQueuedCompletionStatus. I've now fixed that bug and checked the changes into CVS. T

[python-win32] Ref-count bug in win32file.GetQueuedCompletionStatus

2005-06-01 Thread Fred Gansevles
Hi, I think I've found a ref-count bug in win32file.GetQueuedCompletionStatus running "svcbug.py s" starts a correct server and "svcbug.py s b" starts a buggy server. running "svcbug.py c" starts a client

Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Jürgen Kareta
Hello, I've solved my problem. After adding CDO to my Outlook installation it works now: from win32com.client.dynamic import Dispatch s=Dispatch("Mapi.session") s.Logon('Microsoft Outlook') entries=s.AddressLists('Globales Adressbuch').AddressEntries for entr in entries: print entr.Name,ent

Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Mark Hammond
> results in > File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line > 79, in _GetGoodDispatch > IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, > pythoncom.IID_IDispatch) > com_error: (-2147221005, 'Ung\xfcltige Klassenzeichenfolge', > None, None) > > So it seem

Re: [python-win32] getting email adresses from outlook

2005-06-01 Thread Jürgen Kareta
Hi Simon, thanks for the useful link. I think that should help me out, specialy as I found a mapi viewer on the net wich shows the nessesary ids. I need the CDO com object. But I get errors, when I trie to open the com object. from win32com.client.dynamic import Dispatch s=Dispatch("Mapi.sessio

[python-win32] Ref-count bug in win32file.GetQueuedCompletionStatus

2005-06-01 Thread Fred Gansevles
Hi, I think I've found a ref-count bug in win32file.GetQueuedCompletionStatus running "svcbug.py s" starts a correct server and "svcbug.py s b" starts a buggy server. running "svcbug.py c" starts a client