I am just crazy or ...

Topics: Developer Forum
Jan 22, 2007 at 4:15 AM
is the Dispose pattern useless with cmdlets? It doesn't appear that the powershell pipeline calls Dispose on cmdlets terminated with ctrlc ; ctrlc also doesn't appear to be trigger StopProcessing either. How am I meant to close any pending streams cleanly? This is driving me crazy.

Jan 22, 2007 at 4:16 AM
that should be CTRL + C
Jan 22, 2007 at 5:22 AM
Good question. I have that same issue with ConvertFrom-Base64. If StopProcessing doesn't get called then the filestream stays open. :-(