[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2012-05-21 Thread Shy
Shy added the comment: For some reason this patch is disabled with #ifdefs when Py_ENABLE_SHARED is not defined. I'm compiling python as a static lib and have unresolved externals for both these functions: _Py_ActivateActCtx, _Py_DeactivateActCtx -- nosy: +shooshx __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2011-02-16 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-05-17 Thread chrisyco
chrisyco added the comment: After some Googling, I found a possible solution: http://lists.wxwidgets.org/pipermail/wxpython-users/2008-November/081981.html -- nosy: +chrisyco ___ Python tracker ___

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: Checked in to the trunk as as r69038 and svnmerge'd: * release26-maint as 69040 * py3k as 69041 * release30-maint as 69043 -- resolution: accepted -> fixed status: open -> closed ___ Python tracker

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Mark Hammond added the comment: ack - I mis-clicked and accidentally removed message78811 and can't see how to reinstate it. The message isn't critical, but I'm sorry about that! ___ Python tracker

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-27 Thread Mark Hammond
Changes by Mark Hammond : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-b

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-24 Thread Martin v. Löwis
Martin v. Löwis added the comment: Mark, the patch is fine, please apply. Great work! -- assignee: -> mhammond resolution: -> accepted ___ Python tracker ___ __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-18 Thread Sandy Barbour
Sandy Barbour added the comment: Over 3 years ago I wrote a plugin for the Xplane Flight Simulator. This uses a SDK that Ben Supnik and myself created 6 years ago. Our plugins are DLL's that our plugin manager DLL loads at run time. The plugin embeds python and allows python scripts to be run f

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Is the problem related to this issue or should I create new issue about that. You should assume that it is not related. > I can also provide simple project that could be used to test this out. That would be necessary.

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-09 Thread Juha Rantanen
Juha Rantanen added the comment: We encountered a problem that Windows installer created with 2.5.2 could not be installed with 2.6.1 as executing the post-installer script fails. More details about the reason can be found from http://code.google.com/p/robotframework/issues/detail?id=196. Is the

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: Uploading a corrected patch; some old docs I saw said DWORD, and I obviously neglected to fix every spot I used that, and I've changed 'Vista' to 'XP' in the patch comments. Added file: http://bugs.python.org/file12549/bug4566.patch _

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Changes by Mark Hammond : Removed file: http://bugs.python.org/file12537/bug4566.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Here's an option, though unfortunately not a trivial one: use a private > build of the C runtime. I'm not sure whether the license allows us to do so. ___ Python tracker __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Craig Holmquist
Craig Holmquist added the comment: The patch works fine on my system (32-bit XP). Also I verified in Process Explorer that there's only one instance of msvcr90.dll loaded. ___ Python tracker ___

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Craig Holmquist
Craig Holmquist added the comment: I haven't been able to try this patch myself yet, but I see a potential problem: the "cookie" variable is declared as a DWORD, while ActivateActCtx expects a ULONG_PTR. DWORD and ULONG_PTR are only the same thing in 32-bit Windows. Also, where are you seeing

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: Attaching a new patch with some typos in the comments corrected. While I'm here, I also meant to mention (again!): * No need to remove the the assembly from the sxs cache - the test "fails correctly" with VS2009 installed. FWIW, I compiled test.c from the comma

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Changes by Mark Hammond : Removed file: http://bugs.python.org/file12536/bug4566.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: Attaching a patch which works for me against python 2.6. Only ever tested on Vista (ie, where the function pointers etc all load) -- keywords: +needs review, patch Added file: http://bugs.python.org/file12536/bug4566.patch __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-02 Thread Mark Hammond
Mark Hammond added the comment: I've hacked together something that fixes the problem. I'm working on making it a real patch, but the basis is: * In DllMain (dl_nt.c), we call: case DLL_PROCESS_ATTACH: GetCurrentActCtx(&PyWin_DLLhActivationContext); AddRefActCtx(PyWin_DLLhActivationC

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Craig Holmquist
Craig Holmquist added the comment: I took a look at this with the debugger, as Mark recommended. The CRT's DLLMain is called _CRTDLL_INIT, that in turn calls __CRTDLL_INIT. __CRTDLL_INIT calls another function, _check_manifest. _check_manifest calls an SxS function called FindActCtxSectionStr

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Christian Heimes
Christian Heimes added the comment: > Mark Hammond added the comment: > > I've no time to dig deeper now as I suspect testing will require removal > of the vc9 assembly from the GAC and testing with a local one, but some > comments: Isn't the GAC just for .NET assemblies while the SxS cache i

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Craig Holmquist
Craig Holmquist added the comment: > test.c's error is "can't find the DLL" - this will be as we attempt to > load Python's DLL - but this isn't the same as the original error, which > is "DLL init routine failed". To repro the initial error, I suspect you > will want to put the full assembly n

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Mark Hammond
Mark Hammond added the comment: I meant to mention: FWIW, *some* py2exe apps work fine with the old scheme - specifically, IIUC, any app will work fine so long as the .pyd files were next to the executable, which is next to the assembly. I understand this is a significant restriction, but its w

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Mark Hammond
Mark Hammond added the comment: I've no time to dig deeper now as I suspect testing will require removal of the vc9 assembly from the GAC and testing with a local one, but some comments: test.c's error is "can't find the DLL" - this will be as we attempt to load Python's DLL - but this isn't th

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-01 Thread Craig Holmquist
Craig Holmquist added the comment: Here's an option, though unfortunately not a trivial one: use a private build of the C runtime. The Windows version of Firefox does this (mozcrt19.dll). The private CRT build doesn't use SxS in any way, so it gets around this issue, as well as other issues l

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-15 Thread John Shue
Changes by John Shue : -- nosy: +johnshue ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-09 Thread Gabriel Genellina
Changes by Gabriel Genellina <[EMAIL PROTECTED]>: -- nosy: +gagenellina ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-07 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: > I don't quite understand this issue yet. python26.dll is linked with > a manifest. Isn't that good enough? Apparently not, at least in my testing. It seems that if a DLL is loaded, Windows will try to resolve its dependencies by looking a

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-07 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > I understand the rationale behind #4120, but it seems like it only helps > a narrow set of applications, namely "applications that link dynamically > with the same version of MSVCR90 as Python and that bundle the MSVCR90 > DLL and that can'

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I understand the rationale behind #4120, but it seems like it only helps a narrow set of applications, namely "applications that link dynamically with the same version of MSVCR90 as Python and that bundle the MSVCR90 DLL and that can't instal

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Christian Heimes
Christian Heimes <[EMAIL PROTECTED]> added the comment: A mess it is :/ -- nosy: +christian.heimes ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I would claim that this is not a bug. There is simpler no other way to deal with this entire SxS mess. -- nosy: +loewis ___ Python tracker <[EMAIL PROTECTED]> __

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I've attached a manifest file that references the C runtime; adding this file to the Apache bin folder seems to workaround this issue. Added file: http://bugs.python.org/file12250/httpd.exe.manifest ___ P

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Craig Holmquist <[EMAIL PROTECTED]> added the comment: I've attached the test program I was using. The commands I used to compile it are: cl /MT /c /IC:\Python26\include testpy.c link /LIBPATH:C:\Python26\libs testpy.obj ___ Python tracker <[EMAIL PROTECTED]

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
Changes by Craig Holmquist <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file12249/testpy.c ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2008-12-06 Thread Craig Holmquist
New submission from Craig Holmquist <[EMAIL PROTECTED]>: Applications on Windows that don't link to the MSVCR90.DLL via a manifest are broken with Python 2.6.1. This includes apps that link with the C library statically and apps that link with other versions of it. These applications worked fin