checking loaded handlers
Vadim Zeitlin
vadim at wxwidgets.org
Wed Oct 24 06:32:28 PDT 2007
On Wed, 24 Oct 2007 09:45:40 -0300 personaje <personaje at gmail.com> wrote:
p> On 10/24/07, Vadim Zeitlin <vadim at wxwidgets.org> wrote:
p> > On Wed, 24 Oct 2007 01:23:29 -0300 personaje <personaje at gmail.com> wrote:
p> >
p> > p> Is there a way to check that wxInitAllImageHandlers() has been run?
p> >
p> > You can try checking the size of wxImage::GetHandlers() or use
p> > FindHandler() for one of the handlers added by it. But if you really need
p> > to know if wxInitAllImageHandlers() has been called (why?) you should just
p> > record this in a variable in your own code -- as only it can call it, wx
p> > never does it itself.
p>
p> I was getting a debug message stating: "Adding duplicate image handler
p> for XXX", and thought that I was messing things up.
Oops, yes, sorry, I didn't read the code carefully enough. You do need to
check that you don't call it twice as the code considers this to be an
error.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
More information about the wx-users
mailing list