[PyQt] Fwd: Re: c++ app integrate PyQt
Mathias.Born at gmx.de
Mathias.Born at gmx.de
Tue Oct 1 23:36:39 BST 2013
Hi,
In case you are on M$-WIndows, I'd like to mention a nasty bug in Visual C++ 2012
that took me days to dig out of google:
http://bugs.python.org/issue17797
In short: when you embedd the python interpreter into an application compiled
as "WINDOWS" (not as "CONSOLE"), the operating system doesn't create stdin,
stdout and stderr. They just don't exist, which is perfectly normal for a Windows
GUI app. This is checked by Python. Older
versions of the MS runtime lib correctly reported these streams missing.
However, the runtime lib of VS2012 reports they exist even though they don't,
which finally raises an exception and prevents Python from initializing.
Microsoft knows:
http://connect.microsoft.com/VisualStudio/feedback/details/785119/
It might be possible that mingw users also run into this issue because it
relies on the MS runtime lib, too.
Best Regards,
Mathias
On 02.10.2013, 03:11:39 John Fabiani wrote:
> -------- Original Message --------
> Subject:
> Re: [PyQt] c++ app integrate PyQt
> Date:
> Mon, 30 Sep 2013 17:51:28 -0700
> From:
> John Fabiani <johnf at jfcomputer.com>
> To:
> Matt Newell <newellm at blur.com>
> On 09/30/2013 05:24 PM, Matt Newell wrote:
>> On Monday, September 30, 2013 04:51:24 PM John Fabiani wrote:
>>> Hi,
> ...
> someone have an example or a link explaining the details.
> Johnf
More information about the PyQt
mailing list