CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2001
    Posts
    306

    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

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Bug in CEditView (VC6) ?

    Quote Originally Posted by Ralf Schneider View Post
    Is there a bug?
    Sure.
    Most possible in your app code.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    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?
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    Aug 2010
    Posts
    47

    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
  •  





Click Here to Expand Forum to Full Width

Featured