Hello,
I just had this:
self.sortctrl0.SetBitmap(images.updown.GetBitmap())
fail with
File "wx\_controls.pyc", line 73, in SetBitmap
PyAssertionError: C++ assertion "image.IsOk()" failed at ..\..\src\msw\bitmap.cpp(820) in wxBitmap::CreateFromImage(): invalid image
after displaying this bitmap in several controls thousands of times.
Following in my logfile I have about 100 pages of asserts:
What could possibly have gone wrong?
Michael
Sounds like the image file somehow got corrupted, but I have no idea why.
Werner
···
On 3/31/2015 16:32, Michael Ross wrote:
Hello,
I just had this:
self.sortctrl0.SetBitmap(images.updown.GetBitmap())
fail with
File "wx\_controls.pyc", line 73, in SetBitmap
PyAssertionError: C++ assertion "image.IsOk()" failed at ..\..\src\msw\bitmap.cpp(820) in wxBitmap::CreateFromImage(): invalid image
after displaying this bitmap in several controls thousands of times.
Following in my logfile I have about 100 pages of asserts:
What could possibly have gone wrong?