Home > Net >  The console is closed to release unmanaged resources?
The console is closed to release unmanaged resources?

Time:04-21

If using c # to create a console application, and apply the SerialPort resources, launch a terminal program if manually close the console or abnormal exits, the console SerialPort resource will automatically be released? If will not automatically release, in whether the console will produce some kind of EVENT, let me to handle not release unmanaged resources?

CodePudding user response:

Process closed, a serial port automatically release

Of course if you want to own control, baidu "capture c # console close events"
  •  Tags:  
  • C#
  • Related