DennisLiu1993 / Fastest_Image_Pattern_Matching

C++ implementation of a ScienceDirect paper "An accelerating cpu-based correlation-based image alignment for real-time automatic optical inspection"
BSD 2-Clause "Simplified" License
842 stars 205 forks source link

拖入一张图片后触发了异常 #23

Open pejoypan opened 2 years ago

pejoypan commented 2 years ago

我的环境是 vs2019 opencv3.4.1 windows11 拖入一张图片后,触发了异常 具体位置是 MatchToolDlg.cpp Line 314

CDC* dc = pWnd->GetDC ();

求解答,谢谢!

DennisLiu1993 commented 2 years ago

哪一行的GetDC呢 如果是在MouseCall內,直接註解掉2118~2115就好了

pejoypan commented 2 years ago

314行

DennisLiu1993 commented 2 years ago

註解

313  CWnd* pWnd = CWnd::FromHandle (hWnd);
314 CDC* dc = pWnd->GetDC ();

390  pWnd->ReleaseDC (dc);