warning C4717: 'TimeGravity::timeGetTime' : recursive on all control paths, function will cause runtime stack overflow
When I run the application, it crashes with error:
Unhandled exception at 0x00430339 in TimeGravity.exe: 0xC00000FD: Stack overflow.
DWORD TimeGravity::timeGetTime()
{
DWORD CurrentTime = timeGetTime();
double dTime = (CurrentTime - m_OldTime) / 1000.0f;
if (dTime > 0.5)
dTime = 0.02;
m_OldTime = CurrentTime;
m_BalPtr->Tick(dTime);
return m_OldTime;
}
No idea why it is giving me this warning or what might have gone wrong.
This post has been edited by skater_00: 02 June 2008 - 02:39 PM

New Topic/Question
Reply




MultiQuote






|