Zell
Intermediate OT User
- Joined
- Oct 23, 2010
- Messages
- 214
- Reaction score
- 117
Hi guys, I have a problem..
I have "the outputmessage.cpp error" (line 208)
I'm using avesta 7.6 (0.6.1):
assert(outputmessage->getState() == OutputMessage::STATE_FREE);
This is the error, can anyone help me?
I need the fix file for my avesta :/
Here is 168-215 lines.
Sry for my bad english.
THANKS.
I have "the outputmessage.cpp error" (line 208)
I'm using avesta 7.6 (0.6.1):
assert(outputmessage->getState() == OutputMessage::STATE_FREE);
This is the error, can anyone help me?
I need the fix file for my avesta :/
Code:
OutputMessage_ptr OutputMessagePool::getOutputMessage(Protocol* protocol, bool autosend /*= true*/)
{
#ifdef __DEBUG_NET_DETAIL__
std::cout << "request output message - auto = " << autosend << std::endl;
#endif
if(!m_isOpen){
return OutputMessage_ptr();
}
boost::recursive_mutex::scoped_lock lockClass(m_outputPoolLock);
if(protocol->getConnection() == NULL){
return OutputMessage_ptr();
}
OutputMessage_ptr outputmessage;
if(m_outputMessages.empty()) {
#ifdef __TRACK_NETWORK__
if(m_allOutputMessages.size() >= 5000){
std::cout << "High usage of outputmessages: " << std::endl;
m_allOutputMessages.back()->PrintTrace();
}
#endif
outputmessage.reset(new OutputMessage,
boost::bind(&OutputMessagePool::internalReleaseMessage, this, _1));
#ifdef __TRACK_NETWORK__
m_allOutputMessages.push_back(outputmessage..get());
#endif
} else {
outputmessage.reset(m_outputMessages.back(),
boost::bind(&OutputMessagePool::internalReleaseMessage, this, _1));
#ifdef __TRACK_NETWORK__
// Print message trace
if(outputmessage->getState() != OutputMessage::STATE_FREE) {
std::cout << "Using allocated message, message trace:" << std::endl;
outputmessage->PrintTrace();
}
#else
assert(outputmessage->getState() == OutputMessage::STATE_FREE);
#endif
m_outputMessages.pop_back();
}
configureOutputMessage(outputmessage, protocol, autosend);
return outputmessage;
}
Here is 168-215 lines.
Sry for my bad english.
THANKS.