« Return to Thread: [bug #13443] static FileStream not written to disk on exit without Close()

[bug #13443] static FileStream not written to disk on exit without Close()

by anonymous-27 :: Rate this Message:

Reply to Author | View in Thread


Update of bug #13443 (project dotgnu-pnet):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

In the test case, the user declares the class member 's' as static.  When
compiled, the runtime doesn't appear to ever call the finalizer nor the
Dispose(bool) method of the System.IO.FileStream class, even on application
exit.

Declaring the variable local within the Main() method works as expected as
noted in the original comments.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=13443>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/

_______________________________________________
Pnet-developers mailing list
Pnet-developers@...
http://dotgnu.org/mailman/listinfo/pnet-developers

 « Return to Thread: [bug #13443] static FileStream not written to disk on exit without Close()