GithubHelp home page GithubHelp logo

Comments (3)

dajuric avatar dajuric commented on June 10, 2024

Thank you for the comment and for pointing out an possible issue.
Looking at your code, the possible reason (I can think of) why the memory is not freed up because the memory from the generic Image is coped to Bitmap which needs to be disposed.

You mentioned multiple seek operations....
I would be grateful if you could clarify the seek operation usage like:
Did you use the seek operation in a loop ?
Do you show frames randomly (converting them to System.Drawing.Bitmap) ?

(because the seek operation is used in the "ImageExtractionDemo" sample, and I did not find leak there).
So I want to check what operations did you use.....

Thank you again.

Sincerely,
Darko

from accord-net-extensions.

sdw1256 avatar sdw1256 commented on June 10, 2024

Hi Darco,

I did some chages:

image.Dispose();

reader.Close();

reader.Dispose();

GC.Collect();

GC.WaitForPendingFinalizers();

and now can not see any memory leaks. :)

Thank you !
Best Regards,
Sergei

On Thu, Jan 15, 2015 at 5:59 PM, Darko JuriΔ‡ [email protected]
wrote:

Thank you for the comment and for pointing out an possible issue.
Looking at your code, the possible reason (I can think of) why the memory
is not freed up because the memory from the generic Image is coped to
Bitmap which needs to be disposed.

You mentioned multiple seek operations....
I would be grateful if you could clarify the seek operation usage like:
Did you use the seek operation in a loop ?
Do you show frames randomly (converting them to System.Drawing.Bitmap) ?

(because the seek operation is used in the "ImageExtractionDemo" sample,
and I did not find leak there).
So I want to check what operations did you use.....

Thank you again.

Sincerely,
Darko

β€”
Reply to this email directly or view it on GitHub
#3 (comment)
.

from accord-net-extensions.

dajuric avatar dajuric commented on June 10, 2024

You are welcome.

Btw:
you only need to call: reader.Close() and image.Dispose() if the image is System.Drawing.Bitmap

from accord-net-extensions.

Related Issues (19)

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.