Hi guys,

This is unusual but I'm experiencing a crash and I'm looking for help or insight in tracking it down. I haven't been able to reduce it to a simple case and I'm not sure what to make of the stack trace. Any advice would be appreciated so I can either report it or fix it in my code.

This used to work in previous versions of RB, but half the time I get a freeze for about 10 seconds then a crash with RB 2006r4. This is on Mac OS X. The stack trace is below.

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0   libSystem.B.dylib   0x901102d1 _simple_vdprintf + 3451
1   libSystem.B.dylib   0x90110acc _simple_dprintf + 34
2   libSystem.B.dylib   0x9010c232 malloc_printf + 81
3   libSystem.B.dylib   0x90005b11 szone_free + 2043
4   libSystem.B.dylib   0x90005108 free + 728
5   rbframework.dylib   0x004b5ee5 operator delete(void*) + 21
6   rbframework.dylib   0x0045eac6 RuntimeUnlockArray + 54
7 0x00023d1a ABAppleAddressBook.LocalizedLabelText%s%o<ABAppleAddressBook>s + 467 8 0x0006deca ABImportWindow.ABImportWindow.OpenLabelPopup%%o<ABImportWindow>i4 + 4542 9 0x0004e7c7 ABImportWindow.ABImportWindow.MappingList_CellClick%b% o<ABImportWindow>i4i4i4i4 + 1152

What this code does is show a contextual menu when the user clicks in a cell in a listbox. The contextual menu is a ContextualMenu control. I don't use the newer events because the contextual menu is shown on a normal click, not on a right-click. It's basically used as a popup, exactly like the listbox of the constant editor in RB itself.

I repopulate the popup every time before it is shown to populate it with values appropriate for the cell the user clicked on. This is what the method OpenLabelPopup in the trace above does. It calls LocalizedLabelText to get a localized string. This is a one line method as shown below:

Function LocalizedLabelText(Label as String) as String
  return App.Language.Text(Label)
End

Problem is, I don't know how this line relates to the rest of the stack trace which goes off into the RB framework. Any ideas where the problem is or how I can isolate it?

You can try the app yourself if you want:

<http://homepage.mac.com/sroy/addressbookimporter/ AddressBookImporter205b4.zip>

Thanks for any help,

Steve

--
Steve Roy
<http://homepage.mac.com/sroy>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to