Jump to content
  • Advertisement
Sign in to follow this  

DXUTSetTimer - crashes on delete!

This topic is 4561 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone had any success with the DXUTSetTimer in the DX framework? I've got it working nicely, it calls a CALLBACK routine every second, but when I call DXUTKillTimer at the end of the app, it says "invalid argument". heres how i'm using it: To create: DXUTSetTimer( OnTimerEvent, 1.0f, &g_timerId, NULL ); to destroy: if ( g_timerId ) DXUTKillTimer( g_timerId ); g_timerId = 0; g_timerId successfull stores a value of 1 when the timer is active, but apparently this id isn't valid during the kill call. Thanks Simon

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!