in the game

when EStdKeyApplicationF event happen
I catch it and set My object
CPeriodic::Cancel() and CDirectScreenAccess::Cancel() stop

otherwise will cause "system error XXX try again"

but when I run my game again . game cannot run with CPeriodic callback event .

how can I deal with EStdKeyApplicationF event and without cause
"system error XXX try again ERROR" and continue my game
if I run it again.