Build broken on Win7 x86 with Oculus SDK 0.2.5

Issue #9 resolved
-- created an issue

Debug/Release is broken on Win7 x86 (based on
- d80a8c1f34e93839b51e41153cc4d57f2abc0819) - Oculus SDK v0.2.5c

Error: 0xC0000005 Access violation

Stacktrace:

>   Ibex.exe!OVR::CircularBuffer<OVR::Vector3<float> >::CircularBuffer<OVR::Vector3<float> >(int capacity) Zeile 55 C++
    Ibex.exe!OVR::SensorFilterBase<OVR::Vector3<float> >::SensorFilterBase<OVR::Vector3<float> >(int capacity) Zeile 103    C++
    Ibex.exe!OVR::SensorFilter::SensorFilter(int capacity) Zeile 202    C++
    Ibex.exe!OVR::SensorFusion::SensorFusion(OVR::SensorDevice * sensor) Zeile 49   C++
    Ibex.exe!`dynamic initializer for 'FusionResult''() Zeile 94    C++
    msvcr110d.dll!_initterm(void (void) * * pfbegin, void (void) * * pfend) Zeile 889   C
    Ibex.exe!__tmainCRTStartup() Zeile 460  C
    Ibex.exe!wWinMainCRTStartup() Zeile 377 C

Code:

    CircularBuffer(int capacity = DefaultFilterCapacity) 
        : LastIdx(-1), Capacity(capacity), Count(0)
    {
==>        Elements = (T*)OVR_ALLOC(capacity * sizeof(T));
        for (int i = 0; i < Capacity; i++)
            Elements[i] = T();
    }

Comments (6)

  1. -- reporter

    I just had the idea to try it with 0.2.4 and its working ! However 0.2.5 and 0.2.5c produce above error.

  2. Hesham Wahba repo owner

    Thanks for pointing this out. I actually haven't integrated the fix for 0.2.5 with Windows or Linux yet. I have the fix for this on the Mac and will get the Windows build fixed up very soon :) Thanks for pointing this out, it was annoying seeing this error on the Mac when I first encountered the issue!

  3. Log in to comment