In my lib have a method of a class as follows:
bool SDX_Model::Load(const std::string& pFile)
When I run my test project (for testing lib) in Debug mode in VS2010 him of this error:
Unhandled exception at 0x770615de in teste_dx.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0034efc4..[/quote]
headers in my file:#include <iostream>
#include <iostream>
#include <fstream>
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post processing flags
#include "../../include/SDX_Model.h"
#pragma comment (lib, "assimp.lib")
with the file (mlock.c) open and the piece of code in focus:/***
* _unlock - Release multi-thread lock
*
*Purpose:
* Note that it is legal for a thread to aquire _EXIT_LOCK1
* multiple times.
*
*Entry:
* locknum = number of the lock to release
*
*Exit:
*
*Exceptions:
*
*******************************************************************************/
void __cdecl _unlock (
int locknum
)
{
/*
* leave the critical section.
*/
LeaveCriticalSection( _locktable[locknum].lock );
}
The strange thing is that when road in Release mode, everything works OK