Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- From: "h.wulff" <zuhause@xxxxxxx>
- Date: Mon, 31 Mar 2008 20:56:22 +0200
Doug Harrison [MVP] wrote:
I take it then that the thread has exited, and you join with it by using:
WaitForSingleObject(hThread, INFINITE);
You also need to close the handle, of course.
>
As long as you're statically linking to the CRT, and it sounds like you
are, you should be fine.
This is all fine in my shell extension as far as I see.
But do you have any clue why it crashes when _Orphan_ptr() gets called? Since it crashes only on erase(), clear() or remove() when the scan thread "touches" the std::list container there must be a problem with the second thread.
Thanks!
--
h.wulff
.
- References:
- Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- From: h.wulff
- Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- From: Doug Harrison [MVP]
- Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- From: h.wulff
- Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- From: Doug Harrison [MVP]
- Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- Prev by Date: Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- Next by Date: Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- Previous by thread: Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- Next by thread: Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()
- Index(es):
Relevant Pages
|