Public feed #727444

Stuff

public text v1 · immutable
Raw Edit
·published 2007-10-06 00:42 UTC
rendered paste body
	ascent.exe!Database::GetFreeConnection()  Line 161	C++
 	ascent.exe!AsyncQuery::Perform()  Line 459 + 0xb	C++
 	ascent.exe!Player::LoadFromDBBlocking(unsigned int guid=217296)  Line 2336	C++
 	ascent.exe!WorldSession::HandleCharDeleteOpcode(WorldPacket & recv_data={...})  Line 423	C++
 	ascent.exe!WorldSession::Update(unsigned int InstanceID=0)  Line 157	C++
 	ascent.exe!World::UpdateSessions(unsigned int diff=63)  Line 2163 + 0xa	C++
 	ascent.exe!WorldRunnable::run()  Line 79	C++
 	ascent.exe!thread_proc(void * param=0x003de178)  Line 247	C++
 	kernel32.dll!77e64829() 	


-	this	0x00439ebf {ThreadRunning=true qqueries_queue={size=1300826184 first=0xd4558bf4 {value=??? pNext=??? } last=0x89f4458b {value=??? pNext=??? } ...} queries_queue={size=2346995081 first=0x458be455 {value=??? pNext=??? } last=0x8b0289e8 {value=??? pNext=??? } ...} ...}	Database * const
-	CThread	{ThreadState=-1957623669 ThreadType=1793643597 start_time=-1962933786 ...}	CThread
+	ThreadBase	{delete_after_use=true THREAD_HANDLE=0xfc458b52 }	ThreadBase
	ThreadState	-1957623669	CThreadState
	ThreadType	1793643597	CThreadType
	start_time	-1962933786	long
	ThreadId	42596437	int
	ThreadRunning	true	bool
-	qqueries_queue	{size=1300826184 first=0xd4558bf4 {value=??? pNext=??? } last=0x89f4458b {value=??? pNext=??? } ...}	FQueue<AsyncQuery *>
	size	1300826184	volatile unsigned int
+	first	0xd4558bf4 {value=??? pNext=??? }	FQueue<AsyncQuery *>::h *
+	last	0x89f4458b {value=??? pNext=??? }	FQueue<AsyncQuery *>::h *
+	lock	{cs={DebugInfo=0x4d8b0842 {Type=??? CreatorBackTraceIndex=??? CriticalSection=??? ...} LockCount=72453076 RecursionCount=-1996176765 ...} }	Mutex
+	cond	{m_deqWaitSet={size=42724437} m_critsecWaitSetProtection={DebugInfo=0x8be84589 {Type=??? CreatorBackTraceIndex=??? CriticalSection=??? ...} LockCount=294381645 RecursionCount=356695567 ...} m_externalMutex=0x458be9eb {cs={DebugInfo=??? LockCount=??? RecursionCount=??? ...} } ...}	Condition
+	queries_queue	{size=2346995081 first=0x458be455 {value=??? pNext=??? } last=0x8b0289e8 {value=??? pNext=??? } ...}	FQueue<char *>
+	lock	{cs={DebugInfo=0x458b1089 {Type=??? CreatorBackTraceIndex=??? CriticalSection=??? ...} LockCount=71863252 RecursionCount=-1949018741 ...} }	Mutex
+	Connections	0xcccccccc {con=??? busy=??? }	MysqlCon *
	_counter	3435973836	unsigned int
	mConnectionCount	-326412852	int
+	mHostname	{???}	std::basic_string<char,std::char_traits<char>,std::allocator<char> >
+	mUsername	{???}	std::basic_string<char,std::char_traits<char>,std::allocator<char> >
+	mPassword	{???}	std::basic_string<char,std::char_traits<char>,std::allocator<char> >
+	mDatabaseName	{???}	std::basic_string<char,std::char_traits<char>,std::allocator<char> >
	mPort	2303519875	unsigned int
+	qt	0x458bb44d {db=??? }	QueryThread *


MysqlCon * Database::GetFreeConnection()
{
	lock.Acquire();
	while(true) << this is where it says it crashes!!!!
	{
		MysqlCon *con=&Connections[(++_counter)%mConnectionCount];
		if(!con->busy)
		{
			con->busy=true;
			lock.Release();
			return con;
		}
	}	
}