locked
How to release managed object immediately in shell namespace extension programming? RRS feed

  • Question

  • Hi,

    Is there a way to call the Dispose() method when the COM client release the CCW?

    • Moved by ThankfulHeart Monday, November 4, 2013 3:07 AM NET basic programming problem
    Saturday, November 2, 2013 12:45 PM

Answers

All replies

  • Hi Jason,

    Please check if this thread helps:

    How to dispose of a NET COM interop object on Release()


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 5, 2013 1:43 AM
  • CCW is your code, which is managed code. So, you can yourself implement IDisposable on your class.

    I hope this helps.


    Please mark this post as answer if it solved your problem. Happy Programming!

    Tuesday, November 5, 2013 5:14 AM
  • CCW won't call the Dispose() method.
    Sunday, November 10, 2013 3:36 AM
  • Hi Jason,

    Please check if this thread helps:

    How to dispose of a NET COM interop object on Release()


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    And, the final solutin in that artical is ??
    Sunday, November 10, 2013 4:13 AM
  • Hi Jason,

    Please refer to this below page to see how to do it. http://social.msdn.microsoft.com/forums/vstudio/en-US/7f43cb01-3296-4926-9973-4ec7de245ad0/disposing-com-objects

    Best Regards,


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Tuesday, November 12, 2013 5:17 AM