CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    Jul 2010
    Location
    Mexico
    Posts
    21

    Re: Access violation (VS2008, VC++ & MFC)

    Quote Originally Posted by Lindley View Post
    It's remotely possible, but it's always best to assume you've done something wrong before looking to place blame elsewhere.
    Jajaja!! Thanks for the feedback, i'm pretty sure it's a bug from my own code, i'm checking every line to try to find the cause. Also thanks to VictorN, and to Paul McKenzie: i will try to leave the code 'as is', certainly you're right, but this is driving me crazy!

    I have another question: I'm deriving the CSkinButton class from CSkinCtrl and ISmartCtrl: the first class defines and implements some routines to provide the basic interaction and skinning services; the later is an interface wich only defines a couple of notification events and a pointer, i'm much of a beginner to OOP, so this may sound foolish but, may the multiple inheritance cause this kind of memory corruption?

    I've checked some part of the code and the Access violations are not ocurring during some specific call, they're hopping from constructors to function calls, to variable asignments and to mfc-core classes, i think there's a pointer somewhere that is causing all the issues, but i just can't find it. I have NULL-checks and so on, but this is just freaking me out...

    Note: I'm using the AfxCheckMemory() hint, but i'm not getting any output...

    Thanks again for the help.
    Last edited by bioHzrdmX; July 21st, 2010 at 02:55 PM. Reason: I forgot this!!

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