Re: Re: embedding phoenix in C++

Chris Barker <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <CALGmxE+M+SJzpucO_PSXRyDwsbw5vEJdgM4TwD5-=WMBo2X-tw@mail.gmail.com>
On Mon, May 23, 2016 at 2:55 AM, <[email protected]> wrote:

> Hello, according to your description, you succeed to embed wxPython in
> C++. But I fail to complete it. In my program, when *wxPyMake_wxObjec() *function
> is called, an exception occur, the related message is: Unhandled exception
> in 0x00ea7a35 in TestWxWidget2.exe: 0xC0000005: Access violation reading
> location 0x00000000.
>     I do not know why. My tools are Visual Studio 2010, Python2.7 and
> wxPython2.8.11. I hope you can help me to solve the problem.
>

I don't know if it has anything to do with your problem (but it might) --
Unless you are re-compiling Python, then you want to use VisualStudio 2008
, or, even better the "MS compiler for Python2.7 -- which is a slightly
differently packaged VS 2008):

https://www.microsoft.com/en-us/download/details.aspx?id=44266

Also -- if you possible can, I would recommend calling C++ from Python,
rather than Python from C++ -- it's pretty similar really, but if your
"host" application is Python, you don't have to make sure you've
initialized python correctly.

-CHB





> My email is [email protected]. I hope you can help me by mail.
> Thank you very much!!!
>
> --
> You received this message because you are subscribed to the Google Groups
> "wxPython-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[email protected]

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.