checking loaded handlers

personaje personaje at gmail.com
Wed Oct 24 05:45:40 PDT 2007


On 10/24/07, Vadim Zeitlin <vadim at wxwidgets.org> wrote:
> On Wed, 24 Oct 2007 01:23:29 -0300 personaje <personaje at gmail.com> wrote:
>
> p> Is there a way to check that wxInitAllImageHandlers() has been run?
>
>  You can try checking the size of wxImage::GetHandlers() or use
> FindHandler() for one of the handlers added by it. But if you really need
> to know if wxInitAllImageHandlers() has been called (why?) you should just
> record this in a variable in your own code -- as only it can call it, wx
> never does it itself.

I was getting a debug message stating: "Adding duplicate image handler
for XXX", and thought that I was messing things up.

> It can also be helpful to know that it's safe to call
> it twice, it won't do anything the second time as adding an already
> registered handler is a NOP.

Ok, so, nothing to worry about! I assume the messages will disapear on release.

Regards.




More information about the wx-users mailing list