LoginSignup
3
4

More than 3 years have passed since last update.

#OpenCV Sharpでメモリリークが起きる

Posted at

本内容を利用した場合の一切の責任を私は負いません。

Matをusingしてるのに起きた。
(下記の公式サンプルでusingしてるためアンマネージ。
https://github.com/shimat/opencvsharp_samples/
)
検索したら下記が見つかって、自分はMat取得ではなくBitmap取得(Mat.ToBitmapメソッド)だから該当しないと思ったけど、Disposeしたら防止できた。
https://blog.mohyo.net/2015/03/1313/
てことで、Matから取得したアンマネージは全てDisposeした方がよさそう。

3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4