Comments (3)
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.
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.
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)
- could it target .NET 4.0? HOT 7
- how to convert Bgra<byte> into Bgr<byte> HOT 3
- plan for supporting Kinect ? HOT 3
- resize extension exception on Bilinear/Bicubic mode HOT 1
- Can't create pyramid from specific image
- Kalman2DTrackingDemo code problem HOT 2
- How t orecognize camera images with existing image on my database
- Missing OpenCV DLL HOT 3
- Video Capture AggregateException was unhandle error HOT 1
- Update Accord.NET libraries to version 3.3.0
- An issue with particle filter HOT 3
- Demo templates not matching my hand... HOT 2
- Upgrade to Windows 10 SDK from Windows 8.1 SDK
- SIMD Array Instructions is undefined HOT 2
- How do i set this up ? HOT 4
- Using the wrong ImageCodecInfo method? HOT 5
- License? HOT 1
- Wrong stride when writing to video HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accord-net-extensions.