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

"robcaldecott" <[email protected]> Fri, 01 Jul 2011 10:34:40 -0000
Newsgroups gmane.comp.windows.wtl
Message-ID <[email protected]>
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 [email protected], "Roger Headrick" <lilsroro@...> wrote:
>
> --- In [email protected], "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
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/wtl/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/wtl/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/