Andreas Mohr wrote:

> Hi all,
>
> Star Money 2.0 demo crashes here:
> trace:relay:WINPROC_CallWndProc 
>(wndproc=0x4008a3a8,hwnd=00000540,msg=WM_NCCALCSIZE,wp=00000001,lp=41096280)
> trace:menu:MENU_GetMenuBarHeight HWND 0x540, width 372, at (1, 1).
> trace:menu:MENU_MenuBarCalcSize left=1 top=1 right=373 bottom=20
> trace:menu:MENU_MenuBarCalcSize calling MENU_CalcItemSize org=(1, 1)
> trace:menu:do_debug_print_menuitem   item:  { ID=0x50, Sub=0x50, Typ=pop,rorder, 
>Text=Null }
> trace:menu:MENU_CalcItemSize dc=0x0910 owner=0x0540 (1,1)
> trace:menu:do_debug_print_menuitem MENU_CalcItemSize: menuitem: { ID=0x50, Sub=0x50, 
>Typ=pop,rorder, Text=Null }  (MenuBar)
>                         ^^^^^^^

Sorry for jumping into the thread late, but I have
been looking into a probably related menu bug.

err:menu:MENU_FindItem Bad handle 01cf:(nil)
err:menu:InsertMenuA New menu item added to tree! hMenu 03c2, pos 16, flags 00000400,
id ffffffff, str ''
{ ID=0xffffffff, Typ=sep }


Intead of menu items I get separators with NULL buffers or buffer gets re-used
(whaterver garbage was there). This is similar to your problem.

The problem seem to be with the dymanic menu items, the MDI child windows
to be exact.  MENU_FindItem can't find them (bad handle) and returns NULL,
this leads to the chain of events where they get replaced by "default values"
eg <<separator>> "contents of buffer"

I should add that the menu is fine at startup, but the problem occurs when you
modify it later ( in my case when I "reset defaults" ).


Why these handles are(have become) invalid is a mystery.  It is the same
subdmenu handle that has been used on 15 menuitems previously, on the 16th
(and first MDI child) it is no longer valid.  This failure corrupts/truncates/
the menu.

Presently looking at MDISetMenu(), MDIRefreshMenu()(stub).
-Jim



-- 
The address in the headers is not the poster's real email address.  Do not send
private mail to the poster using your mailer's "reply" feature.  CC's of mail 
to mailing lists are OK.  Problem reports to "[EMAIL PROTECTED]".  
The poster's email address is "[EMAIL PROTECTED]".

Reply via email to