mhammond / pywin32

Python for Windows (pywin32) Extensions
5.09k stars 803 forks source link

makepy crashes with no diagnostics #1359

Open mcow opened 5 years ago

mcow commented 5 years ago

Trying to register a new application's library. Running makepy presents the library-selector dialog and the new app is there. When I select it, I get the Generating To... and Building definitions... messages, then (at command line) returns to prompt, or (in PythonWin) PythonWin suddenly closes. The catalog file is present but empty (0 bytes). If I delete the empty catalog and attempt to access the library in my script, the zero-byte catalog is again created, and the script simply exits prematurely. In no case do I get diagnostic information.

mcow commented 5 years ago

Here is a simple script that loads the evented COM object and does nothing but PumpWaitingMessages() until the OnShutdown() event is triggered by closing the application. MM5_idlehandler.zip

The equivalent script works as expected with version 4 of MediaMonkey, when loading the version-specific CLSID. makepy on that version's library also works fine. Note that the script is intended to debug an issue with MediaMonkey's handling of the event object; there is a problem in version 4 and I wanted to determine if the problem persists in version 5.