Skip to content
This repository has been archived by the owner on Jul 19, 2024. It is now read-only.

Tests SEH Exception

Max Kostin edited this page Jun 3, 2015 · 2 revisions
  1. Clone https://github.com/MSOpenTech/opencv
  2. Checkout test-contrib branch
  3. Apply this patch to remove current WINRT-specific code
  4. cd platforms\winrt
  5. Run setup_winrt.bat WS 8.1 x64
  6. Open solution from bin\WS\8.1\x64 set "Release" and build it (or opencv_test_photo project only)
  7. 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.

Clone this wiki locally