Maniac
Apolyton Sage
But they don't crash if I use a normal DLL instead. Any idea what could cause this?
I get the following error message. Ignore doesn't work - I get the same message again an infinite number of times. Retry crashes the game.
The error refers to this code:
***
I also always get an error message when starting the game. On that message I can simply click Ignore though. And the game then runs without any problem.
That's for Planetfall's debug DLLs. I have compiled a debug DLL for vanilla BtS before, and then I didn't get this message. No clue what could cause this though. The makefiles for the Planetfall and vanilla debug DLL are identical, except for adding two new cpp/h files to the Planetfall makefile.
I get the following error message. Ignore doesn't work - I get the same message again an infinite number of times. Retry crashes the game.
The error refers to this code:
Code:
template <class T>
void FFreeListTrashArray<T>::load(T* pData)
{
int iIndex;
assert(pData != NULL);
assert((pData->getID() & FLTA_ID_MASK) < m_iCurrentID);
assert(m_pArray != NULL);
iIndex = (pData->getID() & FLTA_INDEX_MASK);
assert(iIndex < FLTA_MAX_BUCKETS);
assert(iIndex <= m_iLastIndex);
assert(m_pArray[iIndex].pData == NULL);
assert(m_pArray[iIndex].iNextFreeIndex == FFreeList::INVALID_INDEX);
m_pArray[iIndex].pData = pData;
}
***
I also always get an error message when starting the game. On that message I can simply click Ignore though. And the game then runs without any problem.
That's for Planetfall's debug DLLs. I have compiled a debug DLL for vanilla BtS before, and then I didn't get this message. No clue what could cause this though. The makefiles for the Planetfall and vanilla debug DLL are identical, except for adding two new cpp/h files to the Planetfall makefile.
Code:
//---------------------------------------------------------------------------------------
// inline bool FVariableSystem::GetValue( const char * szVariable, int & iValue ) const
//---------------------------------------------------------------------------------------
//! \brief Gets the value of the given variable
//! \param szVariable The name of the variable containing the value to query
//! \param iValue Contains the value of the variable if the function succeeds
//! \retval true if the variable value was retrieved, false otherwise (value will be unchanged from input).
//---------------------------------------------------------------------------------------
inline bool FVariableSystem::GetValue( const char * szVariable, int & iValue ) const
{
FVariable * pkVariable;
VSIteratorC iIterator;
iIterator = m_mapVariableMap.find ( szVariable );
if ( iIterator == m_mapVariableMap.end())
{
return false;
}
pkVariable = iIterator->second;
assert( pkVariable->m_eType == FVARTYPE_INT );
iValue = pkVariable->m_iValue;
return true;
}