WorkItem State in RTW Release

Topics: CAB & Smart Client Software Factory
Nov 16, 2005 at 11:42 PM
originally posted by: jburkholder

At what point during the workitem life does state get cleaned up? I am hooking an event handler for the StateChanged event in the Run method and would like to remove the Handler in the Disposed event but at that point it looks like State has already been set to Null.
Nov 17, 2005 at 7:43 AM
originally posted by: BradWilsonMSFT

State gets cleaned up when the WorkItem is disposed (which it is when it's terminated).