Loading ...
Sorry, an error occurred while loading the content.
 

Re: Access Violation in CCommandBarCtrl class, Does anyone have a fix?

Expand Messages
  • robcaldecott
    I am seeing this old chestnut on one of my WTL apps but I cannot reproduce it. I am using the latest WTL (8.x) and TPM_RIGHTBUTTON. There are a bunch of
    Message 1 of 3 , Jul 1 3:34 AM
      I am seeing this old chestnut on one of my WTL apps but I cannot reproduce it. I am using the latest WTL (8.x) and TPM_RIGHTBUTTON. There are a bunch of ASSERTs in CCommandBarCtrlImpl.DoTrackPopupMenu that might be relevant.

      Anyone?

      --- In wtl@yahoogroups.com, "Roger Headrick" <lilsroro@...> wrote:
      >
      > --- In wtl@yahoogroups.com, "ryltsov" <yahoo.com@r...> wrote:
      > > Hi All,
      > >
      > > I have a problem with CCommandBarCtrl class which comes from long
      > ago.
      > > After a popup menu was shown through
      > CCommandBarCtrlEx::TrackPopupMenu
      > > call, if the user clicks with the right mouse button the left part
      > of
      > > the menu (where the icons are normally painted) and access
      > violation
      > > (in a background thread?) happens which leads to application crash.
      > > Below is the exception stack which shows CSimpleStack<HWND__
      > *>::Pop
      > > function (atlctrlw.h) on the stack.
      > >
      > > Before investigating the problem, I would like to know if anyone
      > has
      > > already a fix for this?
      > >
      >
      > A workaround is to use the TPM_RIGHTBUTTON flag, which allows the
      > user to select with either button, and seems to prevent the crash
      > you speak of.
      >
      > -Roger
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.