i have used VS2005 to do programing ,but i find a problem while i'was looking into a variable(named hr ) with debugging.
such as the codes:
Code:
HRESULT DXUTChangeDevice( DXUTDeviceSettings* pNewDeviceSettings, IDirect3DDevice9* pd3dDeviceFromApp, bool bForceRecreate )
{
HRESULT hr;//problem,can't watch variable
DXUTDeviceSettings* pOldDeviceSettings = GetDXUTStat().GetCurrentDeviceSettings();
.
.
.
.
.
.
.
.
.
.
my question is why can't vs 2005 debuger watch the variable "hr" ,seem to me that think any complile optimization