Hello,
I have a problem that my app with the CEditView sometimes crashes on an users PC. Just when he types in some text or using other editing functions (like copy/paste).
Is there a bug?
thx.
Ralf
Printable View
Hello,
I have a problem that my app with the CEditView sometimes crashes on an users PC. Just when he types in some text or using other editing functions (like copy/paste).
Is there a bug?
thx.
Ralf
Yes, but the bug is in your application. Don't you think bugs in Window controls that have been used million of times so far would have been noticed?
IMO, you've got some solid clues as to where the problem with your app lies. It crashes sometimes when the user inputs text, but never any other times? Look closely at the code which handles that text.
Irregular crashes are pretty often memory related. Look for things like freeing up memory which you then try to use, and buffer overflows. Step through and watch any pointers you have, and make sure they're not being reset for some reason. Sometimes functions don't do exactly what you think they do.
I recently had a pointer problem where I had decided I wanted a pointer to something to be global, because I used it all over the place. But when I declared it, I declared it static, which doesn't mean what I had thought it meant. So when I used it outside of the file it was declared in it would evaluate to null. It's pretty easy to make mistakes like that.