I use the function:

pdc->LPtoHIMETRIC(&size);

where pdc is a CDC object : pdc = pView->GetDC()

During a long time this function returns the correct values, but now when my routines call that function the pdc fails.
I can´t understand why it fails. Can anyone help me , please.