[pywin32-bugs] [ pywin32-Bugs-1286755 ] freeze NT service module
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2005-09-11 08:57:25
|
Bugs item #1286755, was opened at 2005-09-11 07:54 Message generated for change (Comment added) made by mhammond You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1286755&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: win32 Group: None >Status: Closed >Resolution: Wont Fix Priority: 5 Submitted By: Grzegorz Makarewicz (makaron) Assigned to: Nobody/Anonymous (nobody) Summary: freeze NT service module Initial Comment: All freeze requirements are broken when using pythonservice.exe Py_FrozenFlag is not set, python is initialized twice (from PythonService.cpp and servicemanager.pyd), this code is totally vorgot: #ifdef BUILD_FREEZE int n = PyImport_ImportFrozenModule("__main__"); if( n == 0 ){ // __main__ not frozen ReportPythonError(E_PYS_NO_MODULE); return 2; } if( n < 0 ){ // exception in __main__ ReportPythonError(E_PYS_NO_MODULE); return 2; } #endif ---------------------------------------------------------------------- >Comment By: Mark Hammond (mhammond) Date: 2005-09-11 18:57 Message: Logged In: YES user_id=14198 The freeze support is effectively dead. Other freeze-like technologies, like py2exe, support services but do not require a special build to make it happen. I'd be happy to submit patches, but otherwise I will end up removing code inside BUILD_FREEZE blocks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=1286755&group_id=78018 |