2016-07-12 03:42:30 -0600 | commented question | Temp files are not deleted Thanks for your answer. Everytime i decode a tiff, a temp file is created. If i decode a jpg no temp file is created. |
2016-07-12 01:31:44 -0600 | asked a question | Temp files are not deleted I'm using the OpenCvSharp3 wrapper for the .NET framework. I wrote a unit test that calls the function Mat.FromImageData() 10000 times to decode a 4 MB picture. (i think internally it calls cv::imdecode). For each call a tempory file ocvWXYZ.tmp with 4 MB size is being created under C:\Users{Username}\AppData\Local\Temp. And then, after a few seconds, when there is no more space on the C drive, my application crashes. I can only find one link which is perhaps related to my problem: OpenCv issue #2403 Could be that my english is not good enough to understand what i should do now. Is it a bug and if yes in which version is it fixed? In general, who is responsibel to delete the temp files? Because i'm just a stupid caller of the wrapper function and i don't want to care about the lifecycle of the tempfile or the matrix etc. Furthermore, i don't know how to get the temp filename. Thanks! Edit: Sorry, I found another question related to my question. Unfortunately it is still unanswered imdecode-without-temporary-file |