| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hi,
Our carbon application works well at Mac OS X 10.4, 10.5(9A527), but from 10.5(9A559), it will crash on a ATSUI API call: ATSUDirectGetLayoutDataArrayPtrFromTextLayout(), but not all calls for this API will crash. We want to know, what is the difference of ATSUI in these versions? Does it a bug with Mac OS X? Can you give us some suggestions? Thanks in advance!
code segment:
short utf16 = 0;
ItemCount glyphCount;
ATSLayoutRecord *layoutRecords;
ATSUTextLayout textLayout;
ATSUCreateTextLayout(&textLayout);
ATSUSetTextPointerLocation(textLayout, &utf16, kATSUFromTextBeginning, kATSUToTextEnd, 0);
ATSUDirectGetLayoutDataArrayPtrFromTextLayout(textLayout, 0,
kATSUDirectDataLayoutRecordATSLayoutRecordCurrent, (void *)&layoutRecords, &glyphCount);
crash call stack:
Thread 33 Crashed:
0 ...ple.ApplicationServices.ATS 0x90d5fc7a ProcessKerningRun + 786
1 ...ple.ApplicationServices.ATS 0x90d4d75b ApplyKerning + 456
2 ...ple.ApplicationServices.ATS 0x90d4b2b7 _eLLCLayoutText + 345
3 ...ple.ApplicationServices.ATS 0x90d4b147 LLCLayoutText + 83
4 com.apple.QD 0x96bed408 ATSULayoutGlyphs(TATSUGlyphRecordArray*, ATSLineLayoutLineParams*, long, ATSUTab const*, unsigned long, __CFString const*, unsigned short const*, unsigned long, unsigned long) + 196
5 com.apple.QD 0x96bed2f4 TTextLineLayout::LayoutGlyphVector(TATSUGlyphRecordArray*, ATSLineLayoutLineParams*, TLayoutControls*, long, unsigned long) + 172
6 com.apple.QD 0x96bfe3f2 TTextLineLayout::EnsureLayoutIsUpToDate(unsigned long, unsigned char, unsigned long, TATSUGlyphRecordArray**) + 996
7 com.apple.QD 0x96c1b4b8 ATSUDirectGetLayoutDataArrayPtrFromTextLayout + 92
Best Regards
Shuang Qin
Email:email@hidden
Tel:82782244 ext.2462
_______________________________________________ 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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.