wxListCtrl virtual style Topic is solved

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
sedin
In need of some credit
In need of some credit
Posts: 5
Joined: Sun May 03, 2020 3:24 pm

wxListCtrl virtual style

Post by sedin »

Hi
In wxListCtrl virtual style,
I uses wxLogError in OnGetItemText.
and the application is crashed.
Could you explain why this happens?
And If I want to use wxLogXXX, How can I modify it?

Thanks.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4204
Joined: Sun Jan 03, 2010 5:45 pm

Re: wxListCtrl virtual style

Post by PB »

sedin wrote: Wed May 13, 2020 4:09 am Hi
In wxListCtrl virtual style,
I uses wxLogError in OnGetItemText.
and the application is crashed.
Could you explain why this happens?
You must be doing something wrong. Hard to say what as you did not post any code.

It may be possible that the logging system gets overloaded if one calls wxLogError() on each OnGetItemText() call, but why would someone do that? That would be as bad as doing the same e.g. in the paint event handler, i.e., triggering an endless loop of error messages.
Post Reply