[python-win32] win32console attach problems

Tim Roberts timr at probo.com
Fri Oct 3 22:49:53 CEST 2008


Stian wrote:
> > What error do you get?  MSDN describes several different error returns.
> Actually I was wrong. The first error is "Handle is invalid". Then all
> following errors are "Access is denied.", which seems to be the same
> error I get when a console is already attached. But if this was the
> case - shouldn't it be fixed with the win32console.FreeConsole I
> always call before attaching?

Well, let me ask a silly question.  Are you running this from a "pyw"
app, using Pythonw.exe, so you don't have a console of your own?

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list