SegFault on wxImage.ConvertToBitmap()

# - begin sample code

from wxPython.wx import *

add these lines here:

app = wxPySimpleApp()
wxInitAllImageHandlers()

png = wxImage('bitmaps/image.png', wxBITMAP_TYPE_PNG)

-Mark

···

On Wed, 2003-11-19 at 13:16, Paul McNett wrote:

Roach, Mark R. writes:

add these lines here:
app = wxPySimpleApp()
wxInitAllImageHandlers()

Thanks Mark. I realized after I sent the message that I reduced
the test down too far (no app instantiation), but I didn't know
about wxInitAllImageHandlers().

By the way, it appears that instantiating wxPySimpleApp does
init the image handlers, but that wxApp does not.

···

--
Paul