I have puzzled by seeing the error message - "An unsupported operation was attempted", when I clicked on one of the MFC button control at run time.
After searching about this error in internet, I came to know that if one would have missed to remove the control variables and its dependent event handlers when he/she removed the control from the MFC dialog then he/she may experience this error message.
I feel, it is possible to detect this bug and throw appropriate (not the displayed one which I feel is misleading) warning/error message at build time itself, instead of throwing this error message at run time. If not at least the error message should be more appropriate. I don't know why this is not taken care by Microsoft, resource compiler (VC++ team)?
No comments:
Post a Comment