[ITK Community] itk::ObjectFactoryBase::UnRegisterAllFactories() problem

Luis Ibanez luis.ibanez at kitware.com
Sat Jan 18 15:34:52 EST 2014


Мар'ян,

A good deal of refactoring was done in the Factory registration
in the past two years (that's definitely after ITK 3.20).

It is worth giving it a try at ITK 4.5

It is quite likely that the problem you describe here is one that
was addressed with such refactoring.

  HTH

      Luis



On Fri, Jan 17, 2014 at 5:50 AM, Мар'ян Климов <nekto1989 at gmail.com> wrote:

> Hi.
> Currently using ITK 3.20. Everything is built in .lib, only ITKCommon is
> .dll. Program has plugins(dll). One of them uses ITKIO. During work it
> registers 15 factories in ITKCommon that has pointers to address space of
> this plugin. So calling itk::ObjectFactoryBase::UnRegisterAllFactories()
> after plugin is unloaded from memory causes crash because addresses to
> methods are not valid but they are still in list m_RegisteredFactories.
> Does ITK 4.5.0+ still has this problem or migrating will solve it?
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140118/faf9870b/attachment-0002.html>


More information about the Community mailing list