{"id":292,"date":"2007-07-04T15:29:43","date_gmt":"2007-07-04T13:29:43","guid":{"rendered":"https:\/\/alax.info\/blog\/292"},"modified":"2007-07-04T15:30:53","modified_gmt":"2007-07-04T13:30:53","slug":"wtl-ccommandbarctrlimpl-bug-assert-is-raised-on-right-clicking-command-bar-menu","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/292","title":{"rendered":"WTL CCommandBarCtrlImpl bug: Assert is raised on right clicking command bar menu"},"content":{"rendered":"<p><strong>Symptoms<\/strong><\/p>\n<p>When command bar menu item is right clicked, an assertion window is popped up (see below).<\/p>\n<p><a href='https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/07\/image001.png' title='image001.png'><img src='https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/07\/image001.thumbnail.png' alt='image001.png' \/><\/a> <a href='https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/07\/image002.png' title='image002.png'><img src='https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/07\/image002.thumbnail.png' alt='image002.png' \/><\/a><\/p>\n<p><strong>Solution<\/strong><\/p>\n<p>Exiting in CCommandBarCtrlImpl::DoTrackPopupMenu right before assertion line seems to be fixing the problem.<\/p>\n<blockquote><p><code>\t\t\treturn FALSE;<br \/>\n\t\t}<\/code><\/p>\n<p><code>\t\t<strong>\/\/ HOTFIX: (Alax.Info) Avoid assert on right clicking the menu item<br \/>\n\t\tif(s_hCreateHook)<br \/>\n\t\t\treturn FALSE;<\/strong><\/code><\/p>\n<p><code>\t\tATLASSERT(s_hCreateHook == NULL);<\/code><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Symptoms When command bar menu item is right clicked, an assertion window is popped up (see below). Solution Exiting in CCommandBarCtrlImpl::DoTrackPopupMenu right before assertion line seems to be fixing the problem. return FALSE; } \/\/ HOTFIX: (Alax.Info) Avoid assert on right clicking the menu item if(s_hCreateHook) return FALSE; ATLASSERT(s_hCreateHook == NULL);<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-wtl"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/292","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}