find a bug when call D3Ddemo10 on exit crash
this code can repeat the crashdump on dinput exit