Invalid Timer Handle crash
This crash's 100% of the time, and I'm not entirely sure why. I believe I've included all the related code below. All I'm attempting to do is kill the timer which would call the Humans win callback, but if all humans die prior to the time expiring then the timer needs to be killed.
PHP Code:
Edit - Shouldn't need to add this here, but the game only crash's on RoundEnd when KillTimer is called. Otherwise no issues (that I've noticed). |
Re: Invalid Timer Handle crash
Quote:
- This stop timer when map change. - This not clear Handle were you created timer. - Remove flag or clear Handle at OnMapStart() |
Re: Invalid Timer Handle crash
@Bacardi is OnMapEnd() guaranteed to fire every time and safe to CloseHandle() there or should i just do it on OnMapStart()?
|
Re: Invalid Timer Handle crash
Quote:
Code:
public void OnMapEnd() { Code:
public void OnMapEnd() { |
Re: Invalid Timer Handle crash
Quote:
PHP Code:
|
Re: Invalid Timer Handle crash
Thanks Bacardi, and Mag. No more crash's :)
|
Re: Invalid Timer Handle crash
Here are most cases about the freeing timer's handle covered with explanations.
|
All times are GMT -4. The time now is 10:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.