المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : CPoint's x and y has large value



C++ Programming
04-02-2009, 10:41 AM
Hi

We have a MFC Application in which we decide to perform a task based on the mouse click position.
We have a formula that converts this x and y value info into a index number,which we use to retrieve info

Now our customer have given us a crash dump in which CPoint x and y value has 5882 and 1150 which are very huge. Due to which the index generated is very high and since this index does not exists we get a crash(segmentation fault)

In our test we never get such high x and y value.
Can anyone explain the reason for this high x and y values?
Does resolution impact the x and y values?

thanks in advance

from
nayeem khan