This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
forked from opencv/opencv
-
Notifications
You must be signed in to change notification settings - Fork 92
Tests SEH Exception
Max Kostin edited this page Jun 3, 2015
·
2 revisions
- Clone https://github.com/MSOpenTech/opencv
- Checkout test-contrib branch
- Apply this patch to remove current WINRT-specific code
- cd platforms\winrt
- Run setup_winrt.bat WS 8.1 x64
- Open solution from bin\WS\8.1\x64 set "Release" and build it (or opencv_test_photo project only)
- Run opencv_test_photo.exe
Result: unknown file: error: SEH exception with code 0xc0000005 thrown in the test body
is shown for the following tests in console:
Photo_MergeMertens.regression
Photo_MergeDebevec.regression
Photo_MergeRobertson.regression
Photo_CalibrateDebevec.regression
Photo_CalibrateRobertson.regressionother
All other tests pass.
```ts.cpp``` contains the following code (and debugging shows that it is executed):
#if defined WIN32 || defined _WIN32 #ifdef _MSC_VER _set_se_translator( SEHTranslator ); #endif
However commenting of the _set_se_translator
line doesn't change behavior of the test.
0xc0000005
is EXCEPTION_ACCESS_VIOLATION
so it may be caused by any memory that was allocated or freed incorrectly before. Replacing of fstreams with fopen resolves the issue.