step-up-labs / firebase-storage-dotnet

C# library for Firebase Storage
MIT License
140 stars 35 forks source link

An unhandled exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll #1

Closed suemareverton closed 7 years ago

suemareverton commented 7 years ago

Hello!

Firstly, thank you for your library.

When I run the sample code putting a Console.ReadKey() on last line of the Main method (just after Run().Wait(); call) I get a exception:

An unhandled exception of type 'System.ObjectDisposedException' occurred in mscorlib.dll System.ObjectDisposedException Additional information: cannot access closed file

When the exception is thrown the file already was upload correctly.

Same problem occurs when I try to run the code on a Winforms application.

Could you help me figure out why this happens?

Thank you.

bezysoftware commented 7 years ago

Should be fixed now, thanks!