[omniORB] memory leak in omni_thread
Bruce Visscher
visschb@rjrt.com
Wed, 19 May 1999 13:15:30 -0400
David Riddoch wrote:
> Hi,
>
> Looking again, I think it is because you are creating undetached threads.
> This means that when they complete they wait around for you to 'join'
> them.
>
> Try this:
>
> void thread_adapter (void* param) {
> }
>
> Otherwise the same ...
>
> This will create undetached threads that should clean up properly when
> they complete.
>
> David
Works for me.
I should have spotted this, although, I have to say I think this is pretty
sublte:-).
Thanks.