wxdc::SelectObject + assertion

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
bianchi
Knows some wx things
Knows some wx things
Posts: 37
Joined: Wed Jan 04, 2006 4:31 pm

wxdc::SelectObject + assertion

Post by bianchi » Wed May 24, 2006 8:21 am

buon giorno

I use wxdc::SelectObject ( *wxbitmapobj)
and I get a printed assertion 'color != NULL' failed.

everything is working correctly( bitmap is shown )
but there is this print on the console
How can I fix it ( or make it un-display messages like this )



grazie infinite

Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor » Wed May 24, 2006 10:14 am

Is it really wxDC::SelectObject or wxMemoryDC::SelectObject ?
Please dump the code of your function.
And if it is not shown in your code, precise the color mode of your bitmap.
What is little and green, witch go up and down ??
Yoda playing with the force.

bianchi
Knows some wx things
Knows some wx things
Posts: 37
Joined: Wed Jan 04, 2006 4:31 pm

wxMemoryDc::SelectObject

Post by bianchi » Wed May 24, 2006 10:39 am

its wxMemoryDc::SelectObject
and the depth is 24 bits.

Cursor
Earned some good credits
Earned some good credits
Posts: 120
Joined: Sun Aug 29, 2004 3:09 pm
Location: Grenoble, France
Contact:

Post by Cursor » Wed May 24, 2006 11:31 am

What is your plateform and wx version ?

Please dump the code of the function where you use SelectObject call.
What is little and green, witch go up and down ??
Yoda playing with the force.

Post Reply