Just on a whim, I jumped over the call to QueryContextMenu performed
immediately before the nuke and ... it worked. But, the QCM is needed before
the shell will notice "print" and other such file-specific verbs. On my next
run-through I let it proceed through the QCM and then the GCS call promptly
went south. Navigating to My Documents and selecting a DOC file causes a
crash in CTXMENU.dll. Seems like the more I poke around, the more confusing
it seems...

Ciao,
Dee

-----Original Message-----
From: Dee Holtsclaw [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 1:04 PM
To: WinTech OT List; MSVC List
Subject: [OT] CompareString nuking during IContextMenu::GetCommandString
call


I'm experiencing a very odd crash occuring deep within the SHELL32 code
during a call to IContextMenu::GetCommandString. I'm calling it during
handling of ICommDlgBrowser::OnStateChange for CDBOSC_SELCHANGE. The
IContextMenu is for the Desktop folder with My Computer selected and the
call is GetCommandString("delete", GCS_HELPTEXT, 0, szHelp,
_countof(szHelp)). Tracing into the call shows that lstrcmpiW is called with
("Manage", "delete"); then ("find", "delete"); then ("Manage", 0xffffffff)
[boom!].

I've tried ANSI, UNICODE and MSLU builds with identical results. Don't
really want to simply wrap this stuff in exception handlers without knowing
why the blasted thing is crashing. Near as I can tell, everything looks fine
otherwise. I have no memory leak or overwrite diagnostics (running the RTL
with checking at every allocation right now).

So, does anyone have a clue as to what might be going on or, for that
matter, anything else to look for. I'm sure it's something I've done stupid
somewhere, but I just can't seem to find it.

Thanks!

Ciao,
Dee




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/NZFolB/TM
---------------------------------------------------------------------~->

Yahoo! Groups Links

To visit your group on the web, go to:
 http://groups.yahoo.com/group/win_tech_off_topic/

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/




Reply via email to