|
-
September 20th, 2010, 03:47 AM
#1
Bug in CEditView (VC6) ?
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
-
September 20th, 2010, 04:19 AM
#2
Re: Bug in CEditView (VC6) ?
 Originally Posted by Ralf Schneider
Is there a bug?
Sure.
Most possible in your app code.
-
September 21st, 2010, 02:14 AM
#3
Re: Bug in CEditView (VC6) ?
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?
-
September 21st, 2010, 02:55 PM
#4
Re: Bug in CEditView (VC6) ?
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|