Re: Sharing a RO std::list between 2 threads & Crash in _Orphan_ptr()



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
.



Relevant Pages

  • Re: Im having trouble with Vista
    ... seems way slower than XP and it crashes a lot for no apparent reason. ... Downloading music via P2P is a surefire way to pick up crap that will slow ... I was told that I would get help and accurate answers from a MVP. ...
    (microsoft.public.windows.vista.general)
  • Re: Im having trouble with Vista
    ... seems way slower than XP and it crashes a lot for no apparent reason. ... Downloading music via P2P is a surefire way to pick up crap that will slow ... I was told that I would get help and accurate answers from a MVP. ...
    (microsoft.public.windows.vista.general)
  • Re: Im having trouble with Vista
    ... seems way slower than XP and it crashes a lot for no apparent reason. ... I was told that I would get help and accurate answers from a MVP. ... Well the crap I used was Urge which is a click away on the IE7 ...
    (microsoft.public.windows.vista.general)
  • Re: theApp.ExitInstance(); returns 20 - what does this mean?
    ... "Surviving the Release Version" on my MVP Tips site. ... How can I understand the Microsoft Error report? ... If the debug version crashes, then when it crashes (when the Report This ...
    (microsoft.public.vc.mfc)
  • Re: recover in word 2000
    ... At the MVP Summit, we had a discussion with the Word tech team about ... I remove all formatting (Ctrl+A, Ctrl+Q, Ctrl+Spacebar, then apply Body Text ... > || I hope you are sending a report to MS every time you crash. ... > || that might be causing your crashes. ...
    (microsoft.public.word.docmanagement)