Closed mblasee closed 10 years ago
Does the leak still occur if you call System.gc()
after each iteration?
No, it seems the leak has gone. Thank's for your help.
Good! It just looks like the VM is postponing garbage collection. Ideally, we should make its life as easy as possible by creating the least amount of objects required for our application.
Hi, Im trying to implement a simple application to show my webcamera, wich works good, until i try to flip the output stream. After i'm flippin the stream the program starts to leak. The strange its only leak when i flip the stream and i have no idea why, since i try to release everything. When i dont flip, the leak is gone, so i can only thing is leaking somewhere in cvFlip.( Its still leaks when i comment out all the release lines) Im getting my image source from GrabCamera through these methods:
In my main i pass the image to my Gui class like these:
And i show my image in the gui class: