crash at start in _unlock, any ideas?
I've been working on porting some Oculus project from Linux to Windows (32-bit). It includes a connection with a pthread library and some other code.
I used Visual Studio 2012 and a mixture of C and C++. I also recompiled the LibOVR with this compiler (under Debug).
The problem is that my application crashes before it enters the first main, in the following function :
The code where it gets an exception is:
Any magicians on Windows coding with an idea what's wrong? The original codes works under linux...
I used Visual Studio 2012 and a mixture of C and C++. I also recompiled the LibOVR with this compiler (under Debug).
The problem is that my application crashes before it enters the first main, in the following function :
MyApp.exe!OVR::AtomicOpsRaw_4ByteImpl::CompareAndSet_NoSync(volatile long * p, long c, long val) Line 153 C++
The code where it gets an exception is:
void __cdecl _unlock (
int locknum
)
{
/*
* leave the critical section.
*/
LeaveCriticalSection( _locktable[locknum].lock );
}
Any magicians on Windows coding with an idea what's wrong? The original codes works under linux...
