lundi 2 mars 2015

Will SystemEvents.TimeChanged leak if a winforms application is closed without detaching its event handler?

On the one hand, the event's docs say



... you must detach your event handlers when your application is disposed, or memory leaks will result.



On the other hand, its class's docs say:



does not affect desktop applications



So is the event's documentation simply relying on the class's? Or will it leak from a Winforms application as well?


Aucun commentaire:

Enregistrer un commentaire