jmm@thoth4.berkeley.edu (06/03/88)
Last week, I posted a problem I was having with LSC and menus. Well, I thought my problem might have been with using 2.11 rather than 2.15, but it still exists. Here's what I've got: void GetMenus() { register Handle mBarHand; register int x; MenuHandle appleHandle; Str255 str; mBarHand=GetResource('MBAR',1); /* this is fine - a handle to the MBAR resource is put in the register, and I've checked that the handle points to the correct data. I've checked the resources from ResEdit, and they seem OK. I've also redefined the menus, and that didn't seem to solve anything. Taking out this line does not affect the crash in the next line. */ if (mBarHand=GetNewMBar(1)) { /*This dies with an address error, 'ADDR ERR00020041' at D18E, which appears to be inside CalcMenuSize. Why is this happening? */ SetMenuBar(mBarHand); /*never reach this line */ Thanks for any help you can give me. James Moore | B'fhearr don net mura mbeadh jmm@bartleby.berkeley.edu | Bearla ar bith ann. #airigh "leithsceal caighdeanach" | :-)