fivunlm fivunlm - 11 months ago 59
C++ Question

VS2013 Unit testing c++ dll with CppUnitTestFramework crashes

I have some Unit tests on a C++ dll written using

. When I run the test It crashes and on the Test Explorer I see the following info

Result Message: Exception Code: C00000FD
Result StackTrace:
at _chkstk() in f:\dd\vctools\crt\crtw32\startup\i386\chkstk.asm:line 99
at SSFFCAddInMultipleAuth::SSFMultipleAuthLimitManagerTests::TestCantApplyLimitToInactiveAccount() in ....cpp:line 88

The code works fine when I run and use the tested code in debug or release.

According to this link it could be the stack space beeing different when I run the code using the Test Explorer

One possible solution mentioned there is to change an Registry key to increase the stack space but I can't find it on Win10/VS2013

Any ideas?

Answer Source

It was actually related to the creation of some objects used inside of target method.