Sign in to follow this  
sipickles

DXUTSetTimer - crashes on delete!

Recommended Posts

sipickles    240
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this