[pywin32-bugs] [ pywin32-Bugs-2146476 ] Program runs in idle, crashes pythonwin
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-10-06 23:47:29
|
Bugs item #2146476, was opened at 2008-10-04 09:34 Message generated for change (Comment added) made by rupole You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2146476&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: pythonwin Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: paul hide (paulhide) >Assigned to: Roger Upole (rupole) Summary: Program runs in idle, crashes pythonwin Initial Comment: I'm not sure whether this is the sort of thing that is of interest or not, but in case it is. The following code and events cause pythonwin to crash, but in Idle it runs as expected. Win xp python 2.5.2 import Console #downloaded from effbot.org cons = Console.getconsole() #dos box pops up, close it using X, pythonwin crashes #in Idle it runs ok Paul Hide ---------------------------------------------------------------------- >Comment By: Roger Upole (rupole) Date: 2008-10-06 18:46 Message: You can also get the same effect using win32console.AllocConsole() from Pythonwin. I think MFC is not playing nice with the console Api's. At one time, I tried using a console control handler (win32api.SetConsoleCtrlHandler). This stops pythonwin from crashing, but you get the 'Windows cannot end this program' dialog when you try to close the console. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2146476&group_id=78018 |