Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: "Privileged instruction" errors during unit tests


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0
Ville-Valtteri ...

Posts: 13
Registered: 6/18/15
"Privileged instruction" errors during unit tests  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Mar 19, 2018 5:01 AM
I have just installed C++ Builder 10.2.3. In my unit test project, many tests fail with either "privileged instruction" (EPrivilege) or access violation. Each test function that fails, fails the same way even if it is the only test in the project. The main project (that is using the functionality being tested) seems to work fine. So I think test code is responsible for this. Test framework is DUnitX.

Screenshot: https://imgur.com/a/NV3NG

How can I fix these errors?
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02