DemoLib2
DemoLib2 copied to clipboard
DemoLib2_Test - Exception Unhandled
Hello, Thank you for a great project! I was able to build the whole project properly, however, when I'm trying to parse my .dem file by attached demo software, I'm getting an error in BitIOReader:
Unhandled exception at 0x00007FF61AFD150D in DemoLib2_Test.exe: 0xC000001D: Illegal Instruction. occurred
Occured in line:
class BitIOCore
{
protected:
BitIOCore() = default;
static inline constexpr uint8_t ReadUInt8(const std::byte* buffer, uint_fast8_t bits = 8, uint_fast8_t readBitOffset = 0)
{
const auto bitRange = s_8BitRanges[bits];
switch ((readBitOffset + bits + 7) / 8)
{
case 1: return (InternalReadUInt8(buffer) >> readBitOffset) & bitRange; // < problematic line

Any help would be appreciated! :)
extremely late reply: sounds like you have an instruction set selected (or there is one set in the project settings) that your CPU does not support (AVX, etc). See https://docs.microsoft.com/en-us/cpp/build/reference/arch-x86?view=vs-2019. There is an option for this in the UI somewhere as well (can't check myself, currently). If you want to see what instruction sets your CPU supports, you can use a tool like https://www.cpuid.com/softwares/cpu-z.html.