none
DataView object and disposing. RRS feed

  • Question

  •  

    I have DataSet object as a singleton for my application.

    I have created some DataView object.

    I want ask do I have to call Dispose method for this object? (when I don`t need more this object)

    Do GC delete this object from memory if I don`t call Dispose method?

     

    Regards.

    Monday, January 12, 2009 3:04 PM

Answers

  • Do you have to - no.

    Should you - yes.
    The DataSet will continue to maintain that DataView until it actually has been garbage collected.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    • Marked as answer by kicaj Tuesday, January 13, 2009 12:57 PM
    Monday, January 12, 2009 4:37 PM
    Moderator