RE: Dispose surprise

2010-04-13 Thread David Kean
FxCop/Code Analysis will also tell you if you are using the Dispose pattern incorrectly. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, April 13, 2010 4:56 PM To: 'ozDotNet' Subject: RE: Dispose surprise If so, Dispos

RE: Dispose surprise

2010-04-13 Thread Greg Keogh
If so, Dispose() should be calling GC.SuppressFinalize(this) to prevent finalization. D'OH! I forgot. I've got disposable class all over the place, and for some stupid reason I forgot to SuppressFinalize in this class. The symptom is obvious now that I look at it again (I should have started so

RE: Dispose surprise

2010-04-13 Thread David Kean
010 4:30 PM To: ozDotNet Subject: RE: Dispose surprise Do you own these classes? If so, Dispose() should be calling GC.SuppressFinalize(this) to prevent finalization. There's no point finalizing, if you have been disposed. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotn

RE: Dispose surprise

2010-04-13 Thread David Kean
Do you own these classes? If so, Dispose() should be calling GC.SuppressFinalize(this) to prevent finalization. There's no point finalizing, if you have been disposed. From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Greg Keogh Sent: Tuesday, April 13, 201