Hi.

I'm having lots of troubles disposing my components with Fortress.  Basically,
I've got some disposable components with a FactoryComponentHandler.  However,
when I use the ServiceManager to release them, nothing happens.

The problem comes from this line in the FortressServiceManager.release() method
(line 165):

final ComponentHandler handler = (ComponentHandler)m_used.remove( component);

It always returns a null.  Always.

I added a line before to check if m_used contained the component key, and that
always returned false.  However, after running it through a debugger I can see
that  the component _is_ in there.  I tried a number of fixes, but the one that
worked was using component.toString() as the m_used key instead of the
component itself.  This caused my components to be properly be disposed.  I'm
including a patch file that shows my changes.

So, is this a bug in fortress or in my own code?  Why would
m_used.containsKey(component) return false when it's really in there?

Would the change to component.toString() for the key cause any problems I'm not
aware of?

Thanks,
jaaron

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to