Re: Access Violation in CCommandBarCtrl class, Does anyone have a fix?
- 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.
--- In email@example.com, "Roger Headrick" <lilsroro@...> wrote:
> --- In firstname.lastname@example.org, "ryltsov" <yahoo.com@r...> wrote:
> > Hi All,
> > I have a problem with CCommandBarCtrl class which comes from long
> > After a popup menu was shown through
> > call, if the user clicks with the right mouse button the left part
> > the menu (where the icons are normally painted) and access
> > (in a background thread?) happens which leads to application crash.
> > Below is the exception stack which shows CSimpleStack<HWND__
> > function (atlctrlw.h) on the stack.
> > Before investigating the problem, I would like to know if anyone
> > 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.