Stian wrote:
> > I've seen this myself, but couldn't reliably reproduce it.
> > If I recall, allocating a new console, and then immediately
> > freeing it seemed to clear the 'in-between' state.
>  
> Man, that did the trick! Thanks! I added a win32console.AllocConsole()
> before the FreeConsole() in the first try-except-clause, and this
> fixes my problem. However, I do think this look like a hack due to
> issues in the win32console module, but as long as it works I'm happy.

The win32console module is a very, very thin layer over the API.  It
doesn't keep any state.  My uneducated guess is that you are seeing an
issue with the underlying Win32 APIs, not in the win32console module itself.

-- 
Tim Roberts, [EMAIL PROTECTED]
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to