Giter VIP home page Giter VIP logo

Comments (2)

bezzad avatar bezzad commented on August 23, 2024

The downloader service has never taken the address of the package file that it is currently using. The downloader only needs the package object to continue downloading, which you serialized to binary or Json and deserialized from and this has nothing to do with my library because I only use the object from you. Check your application to make sure you have disposed of the stream reader and add FileShare.ReadWrite | FileShare.Delete to your FileStream when store the package serialized data on disk.

Note: in the C# just enough to add using keyword in the first of stream definition line to call Dispose() method and in the streams Dispose() method first call Close() and it calls Flush() methods.
For example:

using var serializedStream = 
         new FileStream(formattedPath, FileMode.OpenOrCreate, FileAccess.Write, FileShare.ReadWrite | FileShare.Delete);

Note2: If you use the FileInfo to create a file so you must be dispose of it after creating, like:

var fileInfo = new FileInfo(...);
if (fileInfo.Exists == false) {
    fileInfo.Create().Dispose();
}

from downloader.

Morasiu avatar Morasiu commented on August 23, 2024

Oh... My bad. Yeah I should Dispose fileInfo. Thanks!

from downloader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.