I am just crazy or ...

Topics: Developer Forum
Developer
Jan 22, 2007 at 3: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.

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