Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DataBrowser HitTest-Crash with Custom Item



I solved the problem. I had to install my own hittest and tracking callbacks.
Actual these callbacks do nothing in my code, but they are required.
This is a little bit confusing to me.

Christian

Anfang der weitergeleiteten E-Mail:

Von: Christian Häusler <email@hidden>
Datum: 14. September 2005 08:59:55 MESZ
An: Mailing List <email@hidden>, Laurence Harris <email@hidden>
Betreff: Re: DataBrowser HitTest-Crash with Custom Item

I installed a HitTestCallback in my Databrowser and told him to always return
false. The log doesn't show a warning but the app still crashs.

The log says:

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

Thread 0 Crashed:
0 <<00000000>> 0x00000100 0 + 0x100 //in the debugger this shows as '??'
1 com.apple.HIToolbox 0x929ae01c TBrowser::TrackItem(unsigned long, unsigned long, Rect&, Point, long, unsigned short) const + 0x50



my callback:

Boolean DataBrowserHitTestCallback (ControlRef browser,DataBrowserItemID itemID,
DataBrowserPropertyID property, const Rect *theRect,
const Rect *mouseRect) {


return false;
}


Am 13.09.2005 um 17:04 schrieb Laurence Harris:

On 9/13/05 10:48 AM, Christian Häusler didst favor us with:

Okay, so what is TBrowser::HitTest doing?

Larry

PS: Don't be so quick to take discussions off list. There are lots of smart
folks here you want to keep in the discussion. ;-)

The crashlog says:

Command: CocoV0.2
Path: /Users//Documents/XCode
Projects/CocoV0.2.app/Contents/MacOS/CocoV0.2
Version: 0.2 (0.1)
PID: 720
Thread: 0

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

Thread 0 Crashed:
0 com.apple.HIToolbox 0x929ab8dc TBrowser::HitTest(unsigned long,
unsigned long, Rect&, Rect const&) const + 0x64
1 com.apple.HIToolbox 0x929117fc TTableCell::HitTest(Rect&, Rect
const&, HMHelpContent*) const + 0x2e0
2 com.apple.HIToolbox 0x929ab850



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.