EDIT: So I decided to use the SFML DLLs instead of statically and I no longer get that error. Could anyone explain to me why that is and how I would correct it if I went back to static?
Hello,
After I close my application I get this error. I'm not sure how to track how I would fix this. I would appreciate some help. It bothers me that it appears every time I close the program, the program itself runs fine.
Unhandled exception at 0x00BFABC4 in DungeonGame.exe: 0xC0000005:
Access violation reading location 0x00000000.
(Brings me to GlContext.cpp)
void GlContext::acquireTransientContext()
{
// Protect from concurrent access
Lock lock(mutex);
// If this is the first TransientContextLock on this thread
// construct the state object
if (!transientContext)
transientContext = new TransientContext;
// Increase the reference count
transientContext->referenceCount++; <----------( X ) 'error here'
}