LineHeight and leadingModel

Hi All,
I have a problem getting the lines not to overlap each other in RichText.
I'm using superscripts and subscripts in the text (indicating them by baselineShift="superscript" or baselineShift="subscript"). It seems that when RichText calculates vertical distance between lines it does not take into account whether a line contains any subscripted/superscripted text. Is it right?
In many cases when a line contains subscripted text with large font size (which is located well below main text baseline) and the following line contains text with smaller font size, then the subscript in the first line overlaps the text in the second line.
My guess was that I can make workaround for that by indicating different line height for the subscripted text and having this line height to refer to the distance to the line located below (by setting leadingModel="ideographicCenterDown" or any other model which indicates that the line height is referring to the distance from to line below). But it seems that the leadingModel parameter can be applied only to the whole TextFlow not to its "parts" like separate "span" elements. Could you please advice if it is true or not?
Anyway, can anyone help me with my final goal: how to make the subscripts/superscript not to overlap lines below/above?
Thank you,
Alex

TLF takes the leadingModel into account for each paragraph, so if you set it for an individual span, you're right, you won't get the effect you want. If you set it on a paragraph level, but then change it between paragraphs, you may find some discontinuities of spacing between the paragraphs. I think the right answer for this is a "half and half" leading model that would put half the space about and half below, which is a feature we'd like to add, but haven't done so yet. That obviously doesn't help you now with your problem, sorry. I would suggest adding a bit more lineHeight to all the lines so they have even spacing and no overlaps.
- robin

Similar Messages

  • [svn:fx-trunk] 11885: Integrating Sujata and Min' s changes from the latest approved FXGUtils from CT changelist 633842.

    Revision: 11885
    Revision: 11885
    Author:   [email protected]
    Date:     2009-11-16 20:19:46 -0800 (Mon, 16 Nov 2009)
    Log Message:
    Integrating Sujata and Min's changes from the latest approved FXGUtils from CT changelist 633842.
    CT Bugs Fixed:
    - bug #2480280 (FXGUtils: pixelHinting setting to true for SolidColorStroke doesn't work.)
    - bug #2479187(FXGUtils is drawing compiled FXG items is off by half a pixel)
    - Fixed other instances of rounding errors from casting to int.
    - Bug 2480289: Compiling richtext content markup in MXML with FlexSDK runtime option is throwing errors.
    -  LinkFormats cannot be child of  tag has children, you do not get a compile error.
    -  Bug  2477649: FXGUtils needs to support setting justificationStyle to prioritizeLeastAdjustment for RichText.
    -  Bug 2477661: Incomplete error message when an invalid textAlign attribute value is provided.
    -  Bug 2444256: FXG compiler fails on percentage lineheight inside formatted text content.
    QE notes: Please investigate 2 mustella failures for FXG stroke tests.
    Doc notes: N/A
    Bugs: N/A
    Reviewer: Sujata, Min
    Tests run: checkintests, mustella fxg
    Is noteworthy for integration: Yes
    Modified Paths:
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGConstants.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGException_en.properties
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/swf/FXG2SWFTranscoder.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/ContentPropertyNode.j ava
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/EllipseNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RectNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RichTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRich BlockTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/TextHelper.j ava
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/TextProperty Node.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/types/LeadingModel.ja va
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/swf/ImageHelper.java

  • Link and embedded fonts

    Hi,
    I'm using this to set the general format of my text flow:
    <TextFlow xmlns='http://ns.adobe.com/textLayout/2008' fontSize='16' textIndent='0' paragraphSpaceAfter='0' paddingTop='5' paddingLeft='0' paddingRight='0' lineHeight='100%' fontFamily='RockwellCFF'>
    <TextLayoutFormat color='#ff0000' id='hoverOverBrand' />
    <TextLayoutFormat color='#00ff00' id='mouseDownOverBrand' textDecoration='underline' />
    <TextLayoutFormat color='#0000ff' id='defaultLinkBrand'/>
    <TextLayoutFormat color='#0000ff' id='hoverOverEmail'/>
    <TextLayoutFormat color='#0000ff' id='mouseDownOverEmail' lineThrough='true' />
    I'm also loading some embedded fonts, that's working ok.
    When I apply a link to the current selection, I use this code:
    IEditManager( textFlow.interactionManager ).applyLink( url, linkTarget, false);
    The problem I have is that when the link is applied, the selection looses it's font family value and there is no way to re-format it again.
    is it possible to declare a CFF setting in the "defaultLinkBrand" so all links keep the original font family?
    any ideas will be appreciated.

    Seems to work for me.  Attached is a complete example that I can build and run.  The dump methods show what fonts are actually used.  I don't have RockwellCFF so I used a different font.  If you could modify this example until its broken and pass it back we'd be in a much better position to figure out where the issue is.
    http://drop.io/oscar7878/asset/oscar7878-as
    (not sure how to attach a file here - let me know if this doesn't work)
    This is the output I get (I removed the clusters dump as that's not interesting).  It shows that the embedded font was used - it appears to be visually the case as well.
    <?xml version='1.0' encoding='UTF-8'?>
    <line ascent='11.09375000000' descent='3.45312500000' rotation='0'>
      <elements>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='43' pointSize='16.00000000000' x='0.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='72' pointSize='16.00000000000' x='11.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='18.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='21.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='82' pointSize='16.00000000000' x='24.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='45' pointSize='16.00000000000' x='32.00000000000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='74' pointSize='16.00000000000' x='40.70410156250' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='44.99218750000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='76' pointSize='16.00000000000' x='53.82421875000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='58' pointSize='16.00000000000' x='61.76025390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='82' pointSize='16.00000000000' x='75.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='85' pointSize='16.00000000000' x='83.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='88.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='71' pointSize='16.00000000000' x='91.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='3' pointSize='16.00000000000' x='99.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
      </elements>
    </line>
    <?xml version='1.0' encoding='UTF-8'?>
    <line ascent='11.09375000000' descent='3.45312500000' rotation='0'>
      <elements>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='43' pointSize='16.00000000000' x='0.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='72' pointSize='16.00000000000' x='11.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='18.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='21.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='82' pointSize='16.00000000000' x='24.00000000000' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='45' pointSize='16.00000000000' x='32.00000000000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='74' pointSize='16.00000000000' x='40.70410156250' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='44.99218750000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='y' fontName='myMinionPro' isBold='n' isItalic='n' gid='76' pointSize='16.00000000000' x='53.82421875000' y='0.00000000000' rotation='0' color='#FF0000CC'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='58' pointSize='16.00000000000' x='61.76025390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='82' pointSize='16.00000000000' x='75.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='85' pointSize='16.00000000000' x='83.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='79' pointSize='16.00000000000' x='88.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='71' pointSize='16.00000000000' x='91.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
        <glyph isEmbedded='n' fontName='Times New Roman' isBold='n' isItalic='n' gid='3' pointSize='16.00000000000' x='99.47900390625' y='0.00000000000' rotation='0' color='#FF000000'/>
      </elements>
    </line>
    Richard

  • ITunes and Mail Crash after starting

    Hi everyone,
    My MacBook was working perfect, but suddenly Mail and iTunes crash and after restarting it keeps crashing and in the Apple Report appears this message:
    ITUNES
    Process:         iTunes [805]
    Path:            /Applications/iTunes.app/Contents/MacOS/iTunes
    Identifier:      com.apple.iTunes
    Version:         10.2.2 (10.2.2)
    Build Info:      iTunes-10221201~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [140]
    Interval Since Last Report:          403 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  39 sec
    Per-App Crashes Since Last Report:   2
    Date/Time:       2011-05-02 22:11:41.088 -0500
    OS Version:      Mac OS X 10.5.8 (9L30)
    Report Version:  6
    Anonymous UUID:  FEEE4CBF-F89A-41F3-92F2-54BD586E3FB7
    Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000080000000
    Crashed Thread:  0
    Thread 0 Crashed:
    0   com.apple.CoreText                0x969820ef TAATMorphChainMorx::GetDefaultChainFlags() const + 9
    1   com.apple.CoreText                0x96981f24 TAATMorphChain::ResolveFlags(__CFArray const*) const + 46
    2   com.apple.CoreText                0x96990a7c TASCIIEncoder::EncodeWithHints(TASCIIDataCache const*, TGlyphList<TDeletedGlyphIndex>&, TAATMorphTableMorx&, TAATAcceleratedMorph&) + 116
    3   com.apple.CoreText                0x9697f8f2 TASCIIEncoder::Encode() + 306
    4   com.apple.CoreText                0x9697edc6 TGlyphEncoder::EncodeChars(CFRange, __CFDictionary const*) + 504
    5   com.apple.CoreText                0x969abe06 TTypesetterUniChar::TTypesetterUniChar(unsigned short const* (*)(long, long*, __CFDictionary const**, void*), void (*)(unsigned short const*, void*), void*) + 360
    6   com.apple.CoreText                0x969a631d CTLineCreateWithUniCharProvider + 75
    7   com.apple.iTunes                  0x0034dc28 0x1000 + 3460136
    8   com.apple.iTunes                  0x000d5d00 0x1000 + 871680
    9   com.apple.iTunes                  0x0064e398 0x1000 + 6607768
    10  com.apple.iTunes                  0x0064eecb 0x1000 + 6610635
    11  com.apple.iTunes                  0x00636c20 0x1000 + 6511648
    12  com.apple.iTunes                  0x00636ea4 0x1000 + 6512292
    13  com.apple.iTunes                  0x00051bc8 0x1000 + 330696
    14  com.apple.iTunes                  0x00044606 0x1000 + 275974
    15  com.apple.iTunes                  0x0003fd73 0x1000 + 257395
    16  com.apple.iTunes                  0x000106a3 0x1000 + 63139
    17  com.apple.iTunes                  0x0081947e 0x1000 + 8488062
    18  com.apple.iTunes                  0x0081964f 0x1000 + 8488527
    19  com.apple.iTunes                  0x00004fe0 0x1000 + 16352
    20  com.apple.iTunes                  0x00004d25 0x1000 + 15653
    Thread 1:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701b04 CFRunLoopRun + 84
    4   com.apple.iTunes                  0x0000c820 0x1000 + 47136
    5   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    6   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 2:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.audio.CoreAudio         0x941045f8 HALRunLoop::OwnThread(void*) + 160
    5   com.apple.audio.CoreAudio         0x94104480 CAPThread::Entry(CAPThread*) + 96
    6   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    7   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 3:
    0   libSystem.B.dylib                 0x93a5f44e __semwait_signal + 10
    1   libSystem.B.dylib                 0x93a89dcd pthread_cond_wait$UNIX2003 + 73
    2   com.apple.iTunes                  0x00022e98 0x1000 + 138904
    3   com.apple.iTunes                  0x00022325 0x1000 + 135973
    4   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    5   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 4:
    0   libSystem.B.dylib                 0x93aa76fa select$DARWIN_EXTSN + 10
    1   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    2   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 5:
    0   libSystem.B.dylib                 0x93a5f44e __semwait_signal + 10
    1   libSystem.B.dylib                 0x93a89dcd pthread_cond_wait$UNIX2003 + 73
    2   com.apple.iTunes                  0x00049a33 0x1000 + 297523
    3   com.apple.iTunes                  0x000499bb 0x1000 + 297403
    4   com.apple.iTunes                  0x000498dd 0x1000 + 297181
    5   com.apple.iTunes                  0x00049737 0x1000 + 296759
    6   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    7   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x80000000  ebx: 0x96981f07  ecx: 0x0000000f  edx: 0xbfff97a4
      edi: 0x1be2b5a4  esi: 0x00000000  ebp: 0xbfff80a8  esp: 0xbfff80a8
       ss: 0x0000001f  efl: 0x00010246  eip: 0x969820ef   cs: 0x00000017
       ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
      cr2: 0x80000000
    Binary Images:
        0x1000 -   0xe46fdf  com.apple.iTunes 10.2.2 (10.2.2) <5cc6dede61adc5a1d11e226686c6da5b> /Applications/iTunes.app/Contents/MacOS/iTunes
    0x1056000 -  0x10e2ffb  com.apple.iTunes.iPodUpdater 9.2 (9.2) <1cbaf416e5276a96bd664f2e9c63987b> /Applications/iTunes.app/Contents/Frameworks/iPodUpdater.framework/Versions/A/i PodUpdater
    0x1137000 -  0x113bfff  com.apple.iPod 1.5 (15) <80c68d6d158ff1999c64d7450e34e0db> /System/Library/PrivateFrameworks/iPod.framework/Versions/A/iPod
    0x1142000 -  0x120bfe5  com.apple.DiscRecording 4.0.7 (4070.4.1) <7c105f35c674aad3a476f8959d3f3ebb> /System/Library/Frameworks/DiscRecording.framework/Versions/A/DiscRecording
    0x1276000 -  0x1294ff7 +libgnsdk_musicid.1.8.2.dylib ??? (???) /Applications/iTunes.app/Contents/MacOS/libgnsdk_musicid.1.8.2.dylib
    0x12a1000 -  0x1363feb +libgnsdk_sdkmanager.1.8.2.dylib ??? (???) /Applications/iTunes.app/Contents/MacOS/libgnsdk_sdkmanager.1.8.2.dylib
    0x137a000 -  0x13b8fff +libgnsdk_submit.1.8.2.dylib ??? (???) /Applications/iTunes.app/Contents/MacOS/libgnsdk_submit.1.8.2.dylib
    0x13bd000 -  0x163efe2 +libgnsdk_dsp.1.8.2.dylib ??? (???) /Applications/iTunes.app/Contents/MacOS/libgnsdk_dsp.1.8.2.dylib
    0x1667000 -  0x16a6fff  com.apple.vmutils 4.1 (104) <2fcd53ce313bb6050bfaf0ac6c1b5ead> /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x12c4d000 - 0x12c4efe1  com.apple.textencoding.unicode 2.2 (2.2) <542f2b8930d6bdf16c318ffea541acab> /System/Library/TextEncodings/Unicode Encodings.bundle/Contents/MacOS/Unicode Encodings
    0x12c64000 - 0x12c67fff  com.apple.audio.AudioIPCPlugIn 1.0.6 (1.0.6) <51c811377017028f8904ad779e6a1344> /System/Library/Extensions/AudioIPCDriver.kext/Contents/Resources/AudioIPCPlugI n.bundle/Contents/MacOS/AudioIPCPlugIn
    0x12cbf000 - 0x12cc2fef  com.apple.LiveType.component 2.1.3 (2.1.3) /Library/QuickTime/LiveType.component/Contents/MacOS/LiveType
    0x12cc7000 - 0x12d2cfde  com.apple.LiveType.framework 2.1.3 (2.1.3) /System/Library/PrivateFrameworks/LiveType.framework/Versions/A/LiveType
    0x12d4c000 - 0x12dbefff +com.DivXInc.DivXDecoder 6.4.0 (6.4.0) /Library/QuickTime/DivX Decoder.component/Contents/MacOS/DivX Decoder
    0x12dcc000 - 0x12dd2fff  com.apple.audio.AppleHDAHALPlugIn 1.7.1 (1.7.1a2) <a0a4389b5ac52ab84397d2b25c9d3b9c> /System/Library/Extensions/AppleHDA.kext/Contents/PlugIns/AppleHDAHALPlugIn.bun dle/Contents/MacOS/AppleHDAHALPlugIn
    0x13000000 - 0x13cb6ffb  com.apple.CoreFP 1.11.17 (1.11.17) <952e00181878b23aff7bbc187e4ef1f2> /System/Library/PrivateFrameworks/CoreFP.framework/CoreFP
    0x164f9000 - 0x1656aff7  com.apple.mobiledevice 423.1 (423.1) <b32726b240da737f0705fcd1c6082d8a> /System/Library/PrivateFrameworks/MobileDevice.framework/MobileDevice
    0x165ad000 - 0x167b1fe7  com.apple.audio.codecs.Components 1.9.1 (1.9.1) /System/Library/Components/AudioCodecs.component/Contents/MacOS/AudioCodecs
    0x16dae000 - 0x16db2fff  com.apple.QuartzComposer.iTunesPlugIn 1.1 (10.1) /Library/iTunes/iTunes Plug-ins/Quartz Composer Visualizer.bundle/Contents/MacOS/Quartz Composer Visualizer
    0x185be000 - 0x187c6fef  com.apple.RawCamera.bundle 2.1.3 (537) <ef9996f5ec0caf58dc832a4153196a1e> /System/Library/CoreServices/RawCamera.bundle/Contents/MacOS/RawCamera
    0x70000000 - 0x700e6ff2  com.apple.audio.units.Components 1.5.2 (1.5.2) /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
    0x8fe00000 - 0x8fe2db43  dyld 97.1 (???) <458eed38a009e5658a79579e7bc26603> /usr/lib/dyld
    0x90003000 - 0x90012ffe  com.apple.DSObjCWrappers.Framework 1.3 (1.3) <47c451a0ea1fd2ebd6a192ecdc3f3867> /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x90013000 - 0x90811fef  com.apple.AppKit 6.5.9 (949.54) <4df5d2e2271175452103f789b4f4d8a8> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x9081d000 - 0x90866fef  com.apple.Metadata 10.5.8 (398.26) <e4d268ea45379200f03cdc7c8bedae6f> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9086c000 - 0x9088aff3  com.apple.DirectoryService.Framework 3.5.7 (3.5.7) <b4cd561d2481c4162ecf0acdf8cb062c> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x9088b000 - 0x90b07fe7  com.apple.Foundation 6.5.9 (677.26) <c68b3cff7864959becfc7fd1a384f925> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x90b08000 - 0x90b30ff7  com.apple.shortcut 1.0.1 (1.0) <131202e7766e327d02d55c0f5fc44ad7> /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut
    0x90b31000 - 0x90b38ffe  libbsm.dylib ??? (???) <d25c63378a5029648ffd4b4669be31bf> /usr/lib/libbsm.dylib
    0x90b3c000 - 0x90b8bfff  com.apple.QuickLookUIFramework 1.3.1 (170.9) /System/Library/PrivateFrameworks/QuickLookUI.framework/Versions/A/QuickLookUI
    0x90c6f000 - 0x90c87fff  com.apple.openscripting 1.2.8 (???) <54ab21172b8b3caa601dde44872a9c0d> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x90c88000 - 0x90d1bfff  com.apple.ink.framework 101.3 (86) <bf3fa8927b4b8baae92381a976fd2079> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x90d1c000 - 0x90d27fe7  libCSync.A.dylib ??? (???) <06652e36188190ec04d294f49c68f28a> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x90d28000 - 0x90d37fff  libsasl2.2.dylib ??? (???) <0ae9f3c08d8508d9dba56324c60ceb63> /usr/lib/libsasl2.2.dylib
    0x90d38000 - 0x90ddffec  com.apple.CFNetwork 438.16 (438.16) <0a2f633dc532b176109547367f209ced> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90de0000 - 0x90e5fff5  com.apple.SearchKit 1.2.2 (1.2.2) <3b5f3ab6a363a4d8a2bbbf74213ab0e5> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x90e60000 - 0x90e76fff  com.apple.DictionaryServices 1.0.0 (1.0.0) <ad0aa0252e3323d182e17f50defe56fc> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Diction aryServices.framework/Versions/A/DictionaryServices
    0x90e77000 - 0x91517fef  com.apple.CoreGraphics 1.409.7 (???) <7b65edcce394f39b6a1954d5e30bc34c> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x91518000 - 0x9158afff  com.apple.PDFKit 2.1.2 (2.1.2) /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framew ork/Versions/A/PDFKit
    0x9158b000 - 0x9248bfe6  com.apple.QuickTimeComponents.component 7.6.9 (1680.9) /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTim eComponents
    0x92498000 - 0x92553fe3  com.apple.CoreServices.OSServices 228.1 (228.1) <9c640e79ad97f335730d8a49f6cb2032> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x92554000 - 0x9268dff7  libicucore.A.dylib ??? (???) <f2819243b278259b9a622ea111ea5fd6> /usr/lib/libicucore.A.dylib
    0x9268e000 - 0x927c1fe7  com.apple.CoreFoundation 6.5.7 (476.19) <a332c8f45529ee26d2e9c36d0c723bad> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x927c7000 - 0x927cdfff  com.apple.print.framework.Print 218.0.3 (220.2) <5b7f4ef7c2df36aff9605377775781e4> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x927ce000 - 0x927fdfe3  com.apple.AE 402.3 (402.3) <b13bfda0ad9314922ee37c0d018d7de9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.fram ework/Versions/A/AE
    0x927fe000 - 0x92b9bfef  com.apple.QuartzCore 1.5.8 (1.5.8) <a28fa54346a9f9d5b3bef076a1ee0fcf> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x92b9c000 - 0x92c63ff2  com.apple.vImage 3.0 (3.0) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x92c94000 - 0x92c94ffc  com.apple.audio.units.AudioUnit 1.5 (1.5) /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x92c95000 - 0x92d22ff7  com.apple.framework.IOKit 1.5.2 (???) <7a3cc24f78f93931731203854ae0d891> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x92d23000 - 0x92d23ffd  com.apple.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x92d31000 - 0x92f2afff  com.apple.JavaScriptCore 5533.20 (5533.20.20) <55065a7f4b44e0cd1a8b2e182cefddec> /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore
    0x92f2b000 - 0x92fb2ff7  libsqlite3.0.dylib ??? (???) <3334ea5af7a911637413334154bb4100> /usr/lib/libsqlite3.0.dylib
    0x92fb3000 - 0x9305afeb  com.apple.QD 3.11.57 (???) <35f058678972d42b88ebdf652df79956> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x9305b000 - 0x931a4ff7  com.apple.ImageIO.framework 2.0.9 (2.0.9) <67d6f9abf5cc16f444052ee93e906d83> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x931a5000 - 0x931a5ffa  com.apple.CoreServices 32 (32) <2fcc8f3bd5bbfc000b476cad8e6a3dd2> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x931a9000 - 0x9367afbe  libGLProgrammability.dylib ??? (???) <7f18294a7bd0b6afe4319f29187fc70d> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgramma bility.dylib
    0x9367b000 - 0x93763ff3  com.apple.CoreData 100.2 (186.2) <44df326fea0236718f5ed64084e82270> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x93764000 - 0x93768fff  libGIF.dylib ??? (???) <b0ff75435ef93ab3d5486c78fa82a150> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x937d7000 - 0x937d7ff8  com.apple.ApplicationServices 34 (34) <8f910fa65f01d401ad8d04cc933cf887> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x938c7000 - 0x93a56fe7  com.apple.CoreAUC 3.08.0 (3.08.0) <5382f0ce050d3edd8f5979b8a87557bf> /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC
    0x93a57000 - 0x93bbeff3  libSystem.B.dylib ??? (???) <1ebaeaae16eec98939d40cb0db0b1aec> /usr/lib/libSystem.B.dylib
    0x93bbf000 - 0x93be8fff  libcups.2.dylib ??? (???) <2b0ab6b9fa1957ee940835d0cfd42894> /usr/lib/libcups.2.dylib
    0x93be9000 - 0x93bf0fe9  libgcc_s.1.dylib ??? (???) <f53c808e87d1184c0f9df63aef53ce0b> /usr/lib/libgcc_s.1.dylib
    0x93bf1000 - 0x93bf9fff  com.apple.DiskArbitration 2.2.1 (2.2.1) <d97688958e0b1fdcd4747088bdf1962a> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x93bfa000 - 0x93bfcfff  com.apple.securityhi 3.0 (30817) <2b2854123fed609d1820d2779e2e0963> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x93bfd000 - 0x93c34fff  com.apple.SystemConfiguration 1.9.2 (1.9.2) <cfd64ded4da1064ce316243fd425d5a4> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x93c68000 - 0x93c84ff3  com.apple.CoreVideo 1.6.1 (48.6) <186cb311c17ea8714e918273c86d3c13> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x93e44000 - 0x93e49fff  com.apple.backup.framework 1.0 (1.0) /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup
    0x93e4a000 - 0x93e4affd  com.apple.Accelerate.vecLib 3.4.2 (vecLib 3.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x93e4b000 - 0x93e8cfe7  libRIP.A.dylib ??? (???) <378694b494a02de1b0c812da572579d2> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x93e8d000 - 0x93e91fff  libmathCommon.A.dylib ??? (???) /usr/lib/system/libmathCommon.A.dylib
    0x93e92000 - 0x9404eff3  com.apple.QuartzComposer 2.1 (106.13) <f487aaca8ebdc7e334e2c79cebd8da66> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzCompose r.framework/Versions/A/QuartzComposer
    0x9404f000 - 0x9409aff7  com.apple.CoreMediaIOServices 130.0 (935) <e7c6d794bbec49f9d1ee8261c3f9ff0e> /System/Library/PrivateFrameworks/CoreMediaIOServices.framework/Versions/A/Core MediaIOServices
    0x940e7000 - 0x94164feb  com.apple.audio.CoreAudio 3.1.2 (3.1.2) <782a08c44be4698597f4bbd79cac21c6> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x94165000 - 0x941a4fef  libTIFF.dylib ??? (???) <3b9aceaff5eae70bd19f9dc26e415969> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x9420c000 - 0x9423efff  com.apple.LDAPFramework 1.4.5 (110) <bb7a3e5d66f00d1d1c8a40569b003ba3> /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x9423f000 - 0x94281fef  com.apple.NavigationServices 3.5.2 (163) <26eeb5a205f749aad83d5dac0330c41f> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x94282000 - 0x9438aff7  com.apple.WebKit 5533.21 (5533.21.1) <90221b7cc9248ee87896985f903cc451> /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x9438b000 - 0x9443dffb  libcrypto.0.9.7.dylib ??? (???) <d02f7e5b8a68813bb7a77f5edb34ff9d> /usr/lib/libcrypto.0.9.7.dylib
    0x9443e000 - 0x9443effe  com.apple.MonitorPanelFramework 1.2.0 (1.2.0) <a2b462be6c51187eddf7d097ef0e0a04> /System/Library/PrivateFrameworks/MonitorPanel.framework/Versions/A/MonitorPane l
    0x9443f000 - 0x94440ffc  libffi.dylib ??? (???) <a3b573eb950ca583290f7b2b4c486d09> /usr/lib/libffi.dylib
    0x94441000 - 0x94441ffd  com.apple.Accelerate 1.4.2 (Accelerate 1.4.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x94442000 - 0x9471cff3  com.apple.CoreServices.CarbonCore 786.16 (786.16) <d2af3f75c3500c518c39fd00aed7f9b9> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x9471d000 - 0x947cefff  edu.mit.Kerberos 6.0.15 (6.0.15) <28005ea82ba82307f185c255c25bfdd3> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x947cf000 - 0x947eeffa  libJPEG.dylib ??? (???) <3407c6f4869e698d3c4107b46e435119> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x94834000 - 0x948c1ff7  com.apple.LaunchServices 292 (292) <a41286c7c1eb20ffd5cc796f791070f0> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchS ervices.framework/Versions/A/LaunchServices
    0x948c2000 - 0x949a2fff  libobjc.A.dylib ??? (???) <bba0c22add60c7724e259ab28de8953e> /usr/lib/libobjc.A.dylib
    0x949a3000 - 0x949b1ffd  libz.1.dylib ??? (???) <5ddd8539ae2ebfd8e7cc1c57525385c7> /usr/lib/libz.1.dylib
    0x949b2000 - 0x94a7dfef  com.apple.ColorSync 4.5.3 (4.5.3) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x94a92000 - 0x94a99fff  com.apple.agl 3.0.9 (AGL-3.0.9) <2526a28a2fc087c09f9238dd03684513> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x94a9a000 - 0x94aebff7  com.apple.HIServices 1.7.1 (???) <ba7fd0ede540a0da08db027f87efbd60> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x94b6a000 - 0x94ca2fe7  com.apple.imageKit 1.0.2 (1.0) <00d03cf7f26e1b6023efdc4bd15dd52e> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.fram ework/Versions/A/ImageKit
    0x94e07000 - 0x94e07ffb  com.apple.installserver.framework 1.0 (8) /System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/InstallSer ver
    0x94e08000 - 0x94e11fff  com.apple.speech.recognition.framework 3.7.24 (3.7.24) <d3180f9edbd9a5e6f283d6156aa3c602> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x94e12000 - 0x94e12fff  com.apple.Carbon 136 (136) <98a5e3bc0c4fa44bbb09713bb88707fe> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x94e99000 - 0x94ed3fe7  com.apple.coreui 1.2 (62) /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x94ed4000 - 0x959d6fff  com.apple.WebCore 5533.21 (5533.21.1) <04a0bb1f862ea04b2a22eba956734f9b> /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x959d7000 - 0x959dcfff  com.apple.DisplayServicesFW 2.0.2 (2.0.2) <cb9b98b43ae385a0f374baabe2b71764> /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayS ervices
    0x959dd000 - 0x95a39ff7  com.apple.htmlrendering 68 (1.1.3) <fe87a9dede38db00e6c8949942c6bd4f> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x95a3a000 - 0x95a57ff7  com.apple.QuickLookFramework 1.3.1 (170.9) /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook
    0x95a58000 - 0x95a83fe7  libauto.dylib ??? (???) <a64961ed20db64f0f439bfbc6f962bf9> /usr/lib/libauto.dylib
    0x95a84000 - 0x95ae1ffb  libstdc++.6.dylib ??? (???) <04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib
    0x95ae2000 - 0x95b86ff7  com.apple.QuickTimeImporters.component 7.6.9 (1680.9) /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTime Importers
    0x95b87000 - 0x95b93ffe  libGL.dylib ??? (???) /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x95b94000 - 0x95b9bff7  libCGATS.A.dylib ??? (???) <29154398dbefc2a1a97715e5af1e3552> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x95b9c000 - 0x95ba6feb  com.apple.audio.SoundManager 3.9.2 (3.9.2) <0f2ba6e891d3761212cf5a5e6134d683> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x95ba7000 - 0x95ba9ff5  libRadiance.dylib ??? (???) <a21c033caf69bbd48770cbbbf51b8208> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x95baa000 - 0x95bb7fe7  com.apple.opengl 1.5.10 (1.5.10) <5a2813f80c9441170cc1ab8a3dac5038> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x95bb8000 - 0x95c99ff7  libxml2.2.dylib ??? (???) <f274ba384fb55203873f9c17569ef131> /usr/lib/libxml2.2.dylib
    0x95c9a000 - 0x95d17fef  libvMisc.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x95d18000 - 0x960d4ff4  com.apple.VideoToolbox 0.484.2 (484.2) <46c37a5fead4e4f58501f15a641ff476> /System/Library/PrivateFrameworks/VideoToolbox.framework/Versions/A/VideoToolbo x
    0x960d5000 - 0x9621ffeb  com.apple.QTKit 7.6.9 (1680.9) <fe987e6adf235d5754399dcdae6e5a8e> /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit
    0x96220000 - 0x965defea  libLAPACK.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x965df000 - 0x965e4fff  com.apple.CommonPanels 1.2.4 (85) <ea0665f57cd267609466ed8b2b20e893> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x965e5000 - 0x96616ffb  com.apple.quartzfilters 1.5.0 (1.5.0) <22581f8fe9dd2cb261f97a897407ec3e> /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters .framework/Versions/A/QuartzFilters
    0x96617000 - 0x966aaff3  com.apple.ApplicationServices.ATS 3.8 (???) <e61b0945da6ab368348a927f7428ad67> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x966ab000 - 0x966cffff  libxslt.1.dylib ??? (???) <ec4c269815bab8e7211cb8fe9df3a9a3> /usr/lib/libxslt.1.dylib
    0x966d0000 - 0x966d0ff8  com.apple.Cocoa 6.5 (???) <e064f94d969ce25cb7de3cfb980c3249> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x96975000 - 0x96978fff  com.apple.help 1.1 (36) <b507b08e484cb89033e9cf23062d77de> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x96979000 - 0x969d3ff7  com.apple.CoreText 2.0.5 (???) <5483518a613464d043455ac661a9dcbe> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x969d4000 - 0x96a22fe3  com.apple.AppleVAFramework 4.1.17 (4.1.17) /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA
    0x96a23000 - 0x96e33fef  libBLAS.dylib ??? (???) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x96e34000 - 0x96e8dff7  libGLU.dylib ??? (???) <a3b9be30100a25a6cd3ad109892f52b7> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x96e8e000 - 0x9705ffef  com.apple.security 5.0.7 (1) <44e26a9c40630a54d5a9f70c18483411> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x970bf000 - 0x97211ff3  com.apple.audio.toolbox.AudioToolbox 1.5.3 (1.5.3) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x97212000 - 0x9722dff3  libPng.dylib ??? (???) <3a01fab3a2d1ae7f7df0821c5af41d87> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x9722e000 - 0x973b2fef  com.apple.MediaToolbox 0.484.2 (484.2) <32bf3254fafd942cf8f2c813960217fd> /System/Library/PrivateFrameworks/MediaToolbox.framework/Versions/A/MediaToolbo x
    0x973cb000 - 0x97455ff7  com.apple.DesktopServices 1.4.9 (1.4.9) <f5e51a76d315798371b3dd35a4d46d6c> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x97456000 - 0x97474fff  libresolv.9.dylib ??? (???) <36c871d5da9b49bb5bcf0449833d1dc5> /usr/lib/libresolv.9.dylib
    0x97475000 - 0x974a2feb  libvDSP.dylib ??? (???) <e89461ed03200fb3c0304e62e14a42ed> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x974a3000 - 0x974b8ffb  com.apple.ImageCapture 5.0.2 (5.0.2) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x974b9000 - 0x974b9ffe  com.apple.quartzframework 1.5 (1.5) <4b8f505e32e4f2d67967a276401f9aaf> /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz
    0x974ba000 - 0x97534ff8  com.apple.print.framework.PrintCore 5.5.4 (245.6) <03d0585059c20cb0bde5e000438c49e1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x97535000 - 0x97573fff  libGLImage.dylib ??? (???) <a6425aeb77f4da13212ac75df57b056d> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x975c3000 - 0x975d3fff  com.apple.speech.synthesis.framework 3.7.1 (3.7.1) <7bd1ec22c47e62a11b34d7ba66606e2e> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x975d4000 - 0x97614fef  com.apple.CoreMedia 0.484.2 (484.2) <81221976abdc19f30723c81c5669bbc9> /System/Library/PrivateFrameworks/CoreMedia.framework/Versions/A/CoreMedia
    0x97615000 - 0x97940ff6  com.apple.QuickTime 7.6.9 (1680.9) <024f122335016a54f8e59ddb4c79901d> /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x97993000 - 0x97b13fff  com.apple.AddressBook.framework 4.1.2 (702) <f9360f9926ccd411fdf7550b73034d17> /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x97b14000 - 0x97e1cfe7  com.apple.HIToolbox 1.5.6 (???) <eece3cb8aa0a4e6843fcc1500aca61c5> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x97e1d000 - 0x97e41feb  libssl.0.9.7.dylib ??? (???) <5b29af782be5894be8b336c9c73c18b6> /usr/lib/libssl.0.9.7.dylib
    0x97e42000 - 0x97e52ffc  com.apple.LangAnalysis 1.6.5 (1.6.5) <d057feb38163121ffd871c564c692804> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x97e53000 - 0x97e5fff9  com.apple.helpdata 1.0.1 (14.2) /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData
    0xfffe8000 - 0xfffebfff  libobjc.A.dylib ??? (???) /usr/lib/libobjc.A.dylib
    0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
    MAIL
    Process:         Mail [845]
    Path:            /Applications/Mail.app/Contents/MacOS/Mail
    Identifier:      com.apple.mail
    Version:         3.6 (936)
    Build Info:      Mail-9360000~1
    Code Type:       X86 (Native)
    Parent Process:  launchd [140]
    Interval Since Last Report:          259 sec
    Crashes Since Last Report:           1
    Per-App Interval Since Last Report:  33 sec
    Per-App Crashes Since Last Report:   1
    Date/Time:       2011-05-02 22:16:02.391 -0500
    OS Version:      Mac OS X 10.5.8 (9L30)
    Report Version:  6
    Anonymous UUID:  FEEE4CBF-F89A-41F3-92F2-54BD586E3FB7
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
    Crashed Thread:  0
    Application Specific Information:
    -[IMAPAccount _synchronizeAccountWithServerWithUserInput:]
    -[POPAccount fetchSynchronouslyIsAuto:]
    -[IMAPAccount fetchSynchronouslyIsAuto:]
    -[POPAccount fetchSynchronouslyIsAuto:]
    -[MessageRouter routeQueuedMessages]
    Thread 0 Crashed:
    0   libCGATS.A.dylib                  0x95b9705b ats_font_info_get_descriptor + 78
    1   libCGATS.A.dylib                  0x95b9b25c get_descriptor + 59
    2   com.apple.CoreGraphics            0x911d3554 CGFontGetXHeight + 40
    3   com.apple.WebCore                 0x94f4b5cf WebCore::SimpleFontData::platformInit() + 527
    4   com.apple.WebCore                 0x94f4b16b WebCore::SimpleFontData::SimpleFontData(WebCore::FontPlatformData const&, bool, bool, WebCore::SVGFontData*) + 1115
    5   com.apple.WebCore                 0x94f4ab75 WebCore::FontCache::getCachedFontData(WebCore::FontPlatformData const*) + 181
    6   com.apple.WebCore                 0x94fac9e3 WebCore::FontCache::getFontData(WebCore::Font const&, int&, WebCore::FontSelector*) + 179
    7   com.apple.WebCore                 0x94f5e457 WebCore::FontFallbackList::fontDataAt(WebCore::Font const*, unsigned int) const + 87
    8   com.apple.WebCore                 0x94fb2f6e WebCore::RenderBlock::lineHeight(bool, bool) const + 398
    9   com.apple.WebCore                 0x94fb2c87 WebCore::InlineFlowBox::computeLogicalBoxHeights(int&, int&, int&, int&, bool) + 1255
    10  com.apple.WebCore                 0x94fb26b8 WebCore::RootInlineBox::verticallyAlignBoxes(int) + 152
    11  com.apple.WebCore                 0x94fb2594 WebCore::RenderBlock::computeVerticalPositionsForLine(WebCore::RootInlineBox*, WebCore::BidiRun*) + 36
    12  com.apple.WebCore                 0x94f54f1b WebCore::RenderBlock::layoutInlineChildren(bool, int&, int&) + 5835
    13  com.apple.WebCore                 0x94f4fcaa WebCore::RenderBlock::layoutBlock(bool) + 554
    14  com.apple.WebCore                 0x94f4fa48 WebCore::RenderBlock::layout() + 40
    15  com.apple.WebCore                 0x94f520f0 WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 320
    16  com.apple.WebCore                 0x94f5173c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 508
    17  com.apple.WebCore                 0x94f5014c WebCore::RenderBlock::layoutBlock(bool) + 1740
    18  com.apple.WebCore                 0x94f4fa48 WebCore::RenderBlock::layout() + 40
    19  com.apple.WebCore                 0x94f520f0 WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 320
    20  com.apple.WebCore                 0x94f5173c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 508
    21  com.apple.WebCore                 0x94f5014c WebCore::RenderBlock::layoutBlock(bool) + 1740
    22  com.apple.WebCore                 0x94f4fa48 WebCore::RenderBlock::layout() + 40
    23  com.apple.WebCore                 0x94f520f0 WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 320
    24  com.apple.WebCore                 0x94f5173c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 508
    25  com.apple.WebCore                 0x94f5014c WebCore::RenderBlock::layoutBlock(bool) + 1740
    26  com.apple.WebCore                 0x94f4fa48 WebCore::RenderBlock::layout() + 40
    27  com.apple.WebCore                 0x94f520f0 WebCore::RenderBlock::layoutBlockChild(WebCore::RenderBox*, WebCore::RenderBlock::MarginInfo&, int&, int&) + 320
    28  com.apple.WebCore                 0x94f5173c WebCore::RenderBlock::layoutBlockChildren(bool, int&) + 508
    29  com.apple.WebCore                 0x94f5014c WebCore::RenderBlock::layoutBlock(bool) + 1740
    30  com.apple.WebCore                 0x94f4fa48 WebCore::RenderBlock::layout() + 40
    31  com.apple.WebCore                 0x94f4f8ea WebCore::RenderView::layout() + 250
    32  com.apple.WebCore                 0x94f4dd76 WebCore::FrameView::layout(bool) + 1302
    33  com.apple.WebCore                 0x94f41c1d WebCore::Document::implicitClose() + 637
    34  com.apple.WebCore                 0x94f41793 WebCore::FrameLoader::checkCompleted() + 163
    35  com.apple.WebCore                 0x94f409c8 WebCore::FrameLoader::finishedParsing() + 120
    36  com.apple.WebCore                 0x94f3e393 WebCore::Document::finishedParsing() + 211
    37  com.apple.WebCore                 0x94f054e8 WebCore::HTMLTokenizer::finish() + 1448
    38  com.apple.WebCore                 0x94eef06f WebCore::DocumentWriter::endIfNotLoadingMainResource() + 191
    39  com.apple.WebCore                 0x94fa6fe8 WebCore::FrameLoader::finishedLoading() + 72
    40  com.apple.WebCore                 0x94fa6f4f WebCore::MainResourceLoader::didFinishLoading() + 127
    41  com.apple.WebCore                 0x94f7259a WebCore::MainResourceLoader::continueAfterContentPolicy(WebCore::PolicyAction, WebCore::ResourceResponse const&) + 970
    42  com.apple.WebCore                 0x94f721a3 WebCore::MainResourceLoader::continueAfterContentPolicy(WebCore::PolicyAction) + 131
    43  com.apple.WebCore                 0x94f7125a WebCore::MainResourceLoader::didReceiveResponse(WebCore::ResourceResponse const&) + 1562
    44  com.apple.WebCore                 0x9519dd15 WebCore::MainResourceLoader::handleDataLoadNow(WebCore::RunLoopTimer<WebCore::M ainResourceLoader>*) + 373
    45  com.apple.WebCore                 0x9519db7b WebCore::RunLoopTimer<WebCore::MainResourceLoader>::fired() + 43
    46  com.apple.CoreFoundation          0x927018f5 CFRunLoopRunSpecific + 4469
    47  com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    48  com.apple.HIToolbox               0x97b442ac RunCurrentEventLoopInMode + 283
    49  com.apple.HIToolbox               0x97b440c5 ReceiveNextEventCommon + 374
    50  com.apple.HIToolbox               0x97b43f39 BlockUntilNextEventMatchingListInMode + 106
    51  com.apple.AppKit                  0x900536d5 _DPSNextEvent + 657
    52  com.apple.AppKit                  0x90052f88 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
    53  com.apple.AppKit                  0x9004bf9f -[NSApplication run] + 795
    54  com.apple.AppKit                  0x900191d8 NSApplicationMain + 574
    55  com.apple.mail                    0x000fc0b2 0x1000 + 1028274
    Thread 1:
    0   libSystem.B.dylib                 0x93a5f44e __semwait_signal + 10
    1   libSystem.B.dylib                 0x93a89dcd pthread_cond_wait$UNIX2003 + 73
    2   com.apple.JavaScriptCore          0x92ea07ff ***::TCMalloc_PageHeap::scavengerThread() + 175
    3   com.apple.JavaScriptCore          0x92ea0b1f ***::TCMalloc_PageHeap::runScavengerThread(void*) + 15
    4   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    5   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 2:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.Foundation              0x908ca3d5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    5   com.apple.Foundation              0x908d64f4 -[NSRunLoop(NSRunLoop) run] + 84
    6   com.apple.MessageFramework        0x003d8dc5 -[RSSInterchange _runManager] + 2140
    7   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    8   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    9   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    10  libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 3:
    0   libSystem.B.dylib                 0x93a5f44e __semwait_signal + 10
    1   libSystem.B.dylib                 0x93a89dcd pthread_cond_wait$UNIX2003 + 73
    2   com.apple.QuartzCore              0x928f2a09 fe_fragment_thread + 54
    3   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    4   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 4:
    0   libSystem.B.dylib                 0x93a582c6 semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                 0x93a8a2af _pthread_cond_wait + 1244
    2   libSystem.B.dylib                 0x93a8bb33 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation              0x908dbdbc -[NSCondition waitUntilDate:] + 236
    4   com.apple.Foundation              0x908dbbd0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
    5   com.apple.MessageFramework        0x003dac87 -[InvocationQueue _drainQueue] + 317
    6   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    7   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    8   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    9   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 5:
    0   libSystem.B.dylib                 0x93ac1292 __workq_ops + 10
    1   libSystem.B.dylib                 0x93ac12c2 start_wqthread + 30
    Thread 6:
    0   ???                               0000000000 0 + 0
    Thread 7:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.Foundation              0x908ca3d5 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 213
    5   com.apple.Foundation              0x908d64f4 -[NSRunLoop(NSRunLoop) run] + 84
    6   com.apple.MessageFramework        0x002fc9fd +[_NSSocket _runIOThread] + 98
    7   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    8   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    9   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    10  libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 8:
    0   libSystem.B.dylib                 0x93a582c6 semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                 0x93a8a2af _pthread_cond_wait + 1244
    2   libSystem.B.dylib                 0x93a8bb33 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation              0x908dbdbc -[NSCondition waitUntilDate:] + 236
    4   com.apple.Foundation              0x908dbbd0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
    5   com.apple.MessageFramework        0x003dac87 -[InvocationQueue _drainQueue] + 317
    6   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    7   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    8   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    9   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 9:
    0   libSystem.B.dylib                 0x93a582c6 semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                 0x93a8a2af _pthread_cond_wait + 1244
    2   libSystem.B.dylib                 0x93a8bb33 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation              0x908dbdbc -[NSCondition waitUntilDate:] + 236
    4   com.apple.Foundation              0x908dbbd0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
    5   com.apple.MessageFramework        0x003dac87 -[InvocationQueue _drainQueue] + 317
    6   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    7   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    8   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    9   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 10:
    0   libSystem.B.dylib                 0x93aa76fa select$DARWIN_EXTSN + 10
    1   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    2   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 11:
    0   libSystem.B.dylib                 0x93a582c6 semaphore_timedwait_signal_trap + 10
    1   libSystem.B.dylib                 0x93a8a2af _pthread_cond_wait + 1244
    2   libSystem.B.dylib                 0x93a8bb33 pthread_cond_timedwait_relative_np + 47
    3   com.apple.Foundation              0x908dbdbc -[NSCondition waitUntilDate:] + 236
    4   com.apple.Foundation              0x908dbbd0 -[NSConditionLock lockWhenCondition:beforeDate:] + 144
    5   com.apple.MessageFramework        0x003dac87 -[InvocationQueue _drainQueue] + 317
    6   com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    7   com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    8   libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    9   libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 12:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.MessageFramework        0x002ffb52 _handleRequestWithTimeout + 2163
    5   com.apple.MessageFramework        0x0030457d -[_NSSocket readBytes:length:error:] + 154
    6   com.apple.MessageFramework        0x00304107 -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 89
    7   com.apple.MessageFramework        0x00303fc2 -[Connection _fillBuffer:] + 853
    8   com.apple.MessageFramework        0x00303b88 -[Connection _readLineIntoData:error:] + 70
    9   com.apple.MessageFramework        0x0040c247 -[POP3Connection(PrivateCommands) _copyReplyLineDataWithError:] + 105
    10  com.apple.MessageFramework        0x0040c2d5 -[POP3Connection(PrivateCommands) _copyReplyLineData] + 42
    11  com.apple.MessageFramework        0x0040c58f -[POP3Connection idForMessageNumber:] + 110
    12  com.apple.MessageFramework        0x0040ed2e -[POP3FetchStore fetchSynchronously] + 1897
    13  com.apple.MessageFramework        0x00441e1a -[POPAccount fetchSynchronously] + 337
    14  com.apple.CoreFoundation          0x9278091d __invoking___ + 29
    15  com.apple.CoreFoundation          0x92780308 -[NSInvocation invoke] + 136
    16  com.apple.MessageFramework        0x003db26c -[MonitoredInvocation invoke] + 409
    17  com.apple.MessageFramework        0x003dae4e -[InvocationQueue _drainQueue] + 772
    18  com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    19  com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    20  libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    21  libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 13:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.MessageFramework        0x002ffb52 _handleRequestWithTimeout + 2163
    5   com.apple.MessageFramework        0x0030457d -[_NSSocket readBytes:length:error:] + 154
    6   com.apple.MessageFramework        0x00304107 -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 89
    7   com.apple.MessageFramework        0x00303fc2 -[Connection _fillBuffer:] + 853
    8   com.apple.MessageFramework        0x00303b88 -[Connection _readLineIntoData:error:] + 70
    9   com.apple.MessageFramework        0x0040c1b6 -[POP3Connection(PrivateCommands) _readMultilineResponseWithMaxSize:intoMutableData:informDelegate:] + 542
    10  com.apple.MessageFramework        0x0040b35a -[POP3Connection _retrieveMessage:ofSize:informDelegate:] + 327
    11  com.apple.MessageFramework        0x0040b448 -[POP3Connection retr:] + 174
    12  com.apple.MessageFramework        0x0040bc5c -[POP3Connection fetchMessages:] + 342
    13  com.apple.MessageFramework        0x0040f313 -[POP3FetchStore fetchSynchronously] + 3406
    14  com.apple.MessageFramework        0x00441e1a -[POPAccount fetchSynchronously] + 337
    15  com.apple.CoreFoundation          0x9278091d __invoking___ + 29
    16  com.apple.CoreFoundation          0x92780308 -[NSInvocation invoke] + 136
    17  com.apple.MessageFramework        0x003db26c -[MonitoredInvocation invoke] + 409
    18  com.apple.MessageFramework        0x003dae4e -[InvocationQueue _drainQueue] + 772
    19  com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    20  com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    21  libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    22  libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 14:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.MessageFramework        0x002ffb52 _handleRequestWithTimeout + 2163
    5   com.apple.MessageFramework        0x0030457d -[_NSSocket readBytes:length:error:] + 154
    6   com.apple.MessageFramework        0x00304107 -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 89
    7   com.apple.MessageFramework        0x00303fc2 -[Connection _fillBuffer:] + 853
    8   com.apple.MessageFramework        0x00303b88 -[Connection _readLineIntoData:error:] + 70
    9   com.apple.MessageFramework        0x00303b00 -[IMAPConnection _readLineIntoData:error:] + 71
    10  com.apple.MessageFramework        0x00303988 -[IMAPConnection(MFPrivate) _readDataOfLength:intoData:error:] + 155
    11  com.apple.MessageFramework        0x003034d6 -[IMAPResponse initWithConnection:error:] + 370
    12  com.apple.MessageFramework        0x00303323 -[IMAPConnection _copyNextServerResponse:] + 79
    13  com.apple.MessageFramework        0x003030b7 -[IMAPConnection _teardownConnectionWithResult:] + 80
    14  com.apple.MessageFramework        0x002fb8ae -[Connection _connectUsingHostname:onPort:securityLayerType:accountClass:] + 1311
    15  com.apple.MessageFramework        0x002fb373 -[Connection _connectUsingAccount:securityLayerType:] + 488
    16  com.apple.MessageFramework        0x002fada9 -[Connection connectAndSetSecurityLayerUsingAccount:] + 196
    17  com.apple.MessageFramework        0x003e397c -[Connection connectUsingAccount:] + 101
    18  com.apple.MessageFramework        0x002fa43c -[IMAPAccount _connectAndAuthenticate:] + 292
    19  com.apple.MessageFramework        0x00326656 -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 409
    20  com.apple.MessageFramework        0x004b2eaf -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 358
    21  com.apple.MessageFramework        0x004b2d43 -[IMAPConnectionPool checkOutNewGatewayWithConnection:] + 49
    22  com.apple.MessageFramework        0x002f8859 -[IMAPAccount _getPotentialGatewayForMailbox:options:createdNewConnection:needsSelect:] + 479
    23  com.apple.MessageFramework        0x002f83f2 -[IMAPAccount _gatewayForMailboxUid:name:options:] + 160
    24  com.apple.MessageFramework        0x002f8294 -[IMAPAccount gatewayForStore:options:] + 159
    25  com.apple.MessageFramework        0x00316177 -[IMAPAccount _listingForMailboxUid:listAllChildren:onlySubscribed:] + 95
    26  com.apple.MessageFramework        0x00315ce3 -[IMAPAccount _listingForMailboxUid:listAllChildren:] + 105
    27  com.apple.MessageFramework        0x0031555c -[IMAPAccount _synchronizeAccountWithServerWithUserInput:] + 482
    28  com.apple.CoreFoundation          0x9278091d __invoking___ + 29
    29  com.apple.CoreFoundation          0x92780308 -[NSInvocation invoke] + 136
    30  com.apple.MessageFramework        0x003db26c -[MonitoredInvocation invoke] + 409
    31  com.apple.MessageFramework        0x003dae4e -[InvocationQueue _drainQueue] + 772
    32  com.apple.Foundation              0x90895dfd -[NSThread main] + 45
    33  com.apple.Foundation              0x908959a4 __NSThread__main__ + 308
    34  libSystem.B.dylib                 0x93a89155 _pthread_start + 321
    35  libSystem.B.dylib                 0x93a89012 thread_start + 34
    Thread 15:
    0   libSystem.B.dylib                 0x93a58266 mach_msg_trap + 10
    1   libSystem.B.dylib                 0x93a5fa5c mach_msg + 72
    2   com.apple.CoreFoundation          0x92700e7e CFRunLoopRunSpecific + 1790
    3   com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    4   com.apple.MessageFramework        0x002ffb52 _handleRequestWithTimeout + 2163
    5   com.apple.MessageFramework        0x0030457d -[_NSSocket readBytes:length:error:] + 154
    6   com.apple.MessageFramework        0x00304107 -[Connection _readBytesFromSocketIntoBuffer:amount:requireAllBytes:error:] + 89
    7   com.apple.MessageFramework        0x00303fc2 -[Connection _fillBuffer:] + 853
    8   com.apple.MessageFramework        0x00303b88 -[Connection _readLineIntoData:error:] + 70
    9   com.apple.MessageFramework        0x00303b00 -[IMAPConnection _readLineIntoData:error:] + 71
    10  com.apple.MessageFramework        0x00303988 -[IMAPConnection(MFPrivate) _readDataOfLength:intoData:error:] + 155
    11  com.apple.MessageFramework        0x003034d6 -[IMAPResponse initWithConnection:error:] + 370
    12  com.apple.MessageFramework        0x00303323 -[IMAPConnection _copyNextServerResponse:] + 79
    13  com.apple.MessageFramework        0x003030b7 -[IMAPConnection _teardownConnectionWithResult:] + 80
    14  com.apple.MessageFramework        0x002fb8ae -[Connection _connectUsingHostname:onPort:securityLayerType:accountClass:] + 1311
    15  com.apple.MessageFramework        0x002fb373 -[Connection _connectUsingAccount:securityLayerType:] + 488
    16  com.apple.MessageFramework        0x002fada9 -[Connection connectAndSetSecurityLayerUsingAccount:] + 196
    17  com.apple.MessageFramework        0x003e397c -[Connection connectUsingAccount:] + 101
    18  com.apple.MessageFramework        0x002fa43c -[IMAPAccount _connectAndAuthenticate:] + 292
    19  com.apple.MessageFramework        0x00326656 -[IMAPConnectionPool _validateAndCheckOutGateway:forMailbox:allowReconnect:newGateway:] + 409
    20  com.apple.MessageFramework        0x004b2eaf -[IMAPConnectionPool _checkOutNewGatewayWithConnection:forMailbox:] + 358
    21  com.apple.MessageFramework        0x004b2d43 -[IMAPConnectionPool checkOutNewGatewayWithConnection:] + 49
    22  com.apple.MessageFramework        0x0043bce1 -[IMAPAccount recoverFromConnectionLoss] + 221
    23  com.apple.CoreFoundation          0x9278091d __invoking___ + 29
    24  com.apple.CoreFoundation          0x92780308 -[NSInvocation invoke] + 136
    25  com.apple.Foundation              0x908ca88e __NSFireDelayedPerform + 382
    26  com.apple.CoreFoundation          0x927018f5 CFRunLoopRunSpecific + 4469
    27  com.apple.CoreFoundation          0x92701aa8 CFRunLoopRunInMode + 88
    28  com.apple.MessageFramework        0x0046850c +[NSRunLoop(MessageExtensions) _flushQueuedEventsAddingSource:] + 211
    29  com.apple.MessageFramework        0x003dbf64 +[NSRunLoop(MessageExtensions) flushQueuedEvents] + 47
    30  com.apple.MessageFramework        0x0032cd72 -[IMAPMailboxSyncEngine _unlockIfProcessedResponsesWithMonitor:] + 6254
    31  com.apple.MessageFramework        0x00329e0c -[IMAPMailboxSyncEngine _goWithMessages:] + 395
    32  com.apple.MessageFramework        0x002f3e0b -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:withOptions:] + 227
    33  com.apple.MessageFramework        0x002f3d22 -[LibraryIMAPStore openSynchronouslyUpdatingMetadata:] + 50
    34  com.apple.MessageFramework        0x00312af4 -[LibraryIMAPStore _fetchForCheckingNewMail:] + 71
    35  com.apple.MessageFramework        0x00312aa7 -[LibraryIMAPStore checkNewMail] + 42
    36  com.apple.MessageFramework        0x0043cba9 -[IMAPAccount fetchSynchronouslyIsAuto:] + 166
    37  com.apple.CoreFoundation          0x9278091d __invoking___ + 29
    38  com.apple.CoreFoundation          0x92780308 -[NSInvocation invoke] + 136
    39  com.apple.MessageFramework        0x003db26c -[MonitoredInvocation invoke] + 409
    40  com.apple.MessageF

    Fixed! Used Command+R at start-up and used Disk Repair. Cheers.

  • Image not loading in TLFTextField and TextFlow (Using Flash CS5)

    Hi,
    I am using TLFTextField and TextFlow both in my application. Its a chatting application in which I need to show smileys. For this I use these components.
    I have uploaded my code on: http://dl.dropbox.com/u/43019589/25-9-2011.rar
    Problem:
    1. When I load image at runtime the image does not shows in components.
    2. When I import these images in Flash and convert it into movieclips the it loads in the textfield where user type the text, but it does not show up in the chat text area.
    Show text in user text chatarea:
    The code is written on Layer "Frame Actions" Frame 41 Function "showUserMessage". In this function it is showing the typed text in the user chat area.
    User typing text:
    The code is written on Layer "Generic Actions" Frame 11 Function "sendChatText". In this function it is picking text from user type text field.
    The textfields are located on Layer "TLFTextFields".
    The smileys that I am using are gif images(animated). I try loading images into flash and by calling from relative/absolute URL.
    Please help me solving this problem. My project deadline is coming close .
    Regards,
    Amandeep Singh
    PS: Please ignore testfield that is placed outside the stage.

    Hi Jin, Thanks for your response .
    Here is the result of tempSplit.join("") in function sendChatText():
    <img color="#000000" fontFamily="Arial" fontLookup="inherit" fontSize="11" fontStyle="normal" fontWeight="normal" kerning="auto" lineHeight="129.090909%" textAlpha="1" textRotation="auto" trackingRight="0%" height="18" width="39" source="[class twothumbsup]"/><span color="#000000" fontFamily="Arial" fontLookup="inherit" fontSize="11" fontStyle="normal" fontWeight="normal" kerning="auto" lineHeight="129.090909%" textAlpha="1" textRotation="auto" trackingRight="0%"></span>
    sendChatText() function removes the TextFlow and p tags from the tlfMarkup output.
    I converted the animated smiley to movieclips, here in the above response you can see the source of img tag is a movieclip class.
    Thanks for your response. Please help me find what I am doing wrong.

  • [svn:fx-trunk] 11601: Integrating Min' s recent fixes to FXGUtils for a group of attribute parsing bugs and clarification of error messages .

    Revision: 11601
    Author:   [email protected]
    Date:     2009-11-09 22:00:50 -0800 (Mon, 09 Nov 2009)
    Log Message:
    Integrating Min's recent fixes to FXGUtils for a group of attribute parsing bugs and clarification of error messages.
    QE notes: Please confirm test cases.
    Doc notes: N/A
    Bugs:
    SDK-22982 - FXG compiler fails on percentage lineheight inside formatted text content
    SDK-24093 - If a
    tag has children, you do not get a compile error.
    SDK-24092 - You get a compile error if you set justificationStyle="prioritizeLeastAdjustment"
    SDK-24097 - Setting an invalid verticalAlign style on RichText has a typo in the error message
    Reviewer: Min
    Tests run: Checkintests, Bug test cases
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-22982
        http://bugs.adobe.com/jira/browse/SDK-24093
        http://bugs.adobe.com/jira/browse/SDK-24092
        http://bugs.adobe.com/jira/browse/SDK-24097
    Modified Paths:
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/fxg/FXGException_en.properties
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/RichTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRich BlockTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRich TextLeafNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/AbstractRich TextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/BRNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/ImgNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/TabNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/richtext/TextHelper.j ava
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/dom/text/AbstractCharacte rTextNode.java
        flex/sdk/trunk/modules/fxgutils/src/java/com/adobe/internal/fxg/sax/FXGSAXScanner.java

    Dear Pallavi,
    Very useful post!
    I am looking for similar accelerators for
    Software Inventory Accelerator
    Hardware Inventory Accelerator
    Interfaces Inventory
    Customization Assessment Accelerator
    Sizing Tool
    Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
    Request help on such accelerators... Any clues?
    Any reply, help is highly appreciated.
    Regards
    Manish Madhav

  • Line breaks and wrapping incorrect on hebrew+english text

    i have a string of mixed text with hebrew and english, usually the english is only the last word in the string.
    when trying to show on a limited space (110px more or less) the line break looks like it performs incorrectly since the string is all mixed and it shows the english word in between the hebrew words.
    I'm using the following, in a *pure* as3 project in the flex ide using sdk 3.5 and last version textframework swc.
    private function addText():void{
         //title is a string brought from xml.
         title = "Canazei סקי איטלקי במיטבו בעיירה";
         var titleLine:StringTextLineFactory = new StringTextLineFactory();
         titleLine.text = title;
         titleLine.paragraphFormat
         titleLine.compositionBounds = new Rectangle(0,0,120,120);
         titleLine.spanFormat = formatMe(blue, 12, "bold");
         titleLine.createTextLines(callbackTitle);
         function callbackTitle(tl:TextLine):void{
              addChild(tl);
              tl.y = 12;
              tl.x = 109 - tl.width;
    //thats the formatMe function:
    public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
         characterFormat = new TextLayoutFormat();
         characterFormat.fontSize = size;
         characterFormat.color = colour;
         characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
         characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
         characterFormat.fontFamily = "Arial, Helvetica, _sans";
         characterFormat.lineHeight = "100%";
         if (weight == "bold"){
              characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
         return characterFormat;
    any help with this will be greatly appreciated, unfortunately the bidi support is not clear and sometimes the examples in the docs are not working.

    I played around with your example a little, and removed the explicit line placement you added, and have this (see below). It works as expected if you consider English the dominant language. If you wanted it to assume Hebrew instead, you should set the direction to RTL instead of LTR. Please let me know if this works for you.
    Thanks!
    package
        import flashx.textLayout.elements.TextFlow;
        import flashx.textLayout.factory.StringTextLineFactory;
        import flashx.textLayout.formats.TextLayoutFormat;
        import flash.geom.Rectangle;
        import flash.display.Sprite;
        import flash.text.engine.TextLine;
        public class TCMTestFocus extends Sprite
            public function TCMTestFocus():void{
                //title is a string brought from xml.           
                                                var    title:String = "Canazei סקי איטלקי במיטבו בעיירה";
                var titleLine:StringTextLineFactory = new StringTextLineFactory();           
                titleLine.text = title;
                titleLine.paragraphFormat
                titleLine.compositionBounds = new Rectangle(0,0,120,120);
                titleLine.spanFormat = formatMe(0x0000FF, 12, "bold");
                titleLine.createTextLines(callbackTitle);
                function callbackTitle(tl:TextLine):void{
                    addChild(tl);               
            //        tl.y = 12;               
            //        tl.x = 109 - tl.width;
        public function formatMe(colour:uint, size:uint, weight:String):TextLayoutFormat{
                var characterFormat:TextLayoutFormat = new TextLayoutFormat();           
                characterFormat.fontSize = size;
                characterFormat.color = colour;
                characterFormat.direction = flashx.textLayout.formats.Direction.LTR;
                characterFormat.textAlign = flashx.textLayout.formats.TextAlign.START;
                characterFormat.fontFamily = "Arial, Helvetica, _sans";
                characterFormat.lineHeight = "100%";
                if (weight == "bold"){
                    characterFormat.fontWeight = flash.text.engine.FontWeight.BOLD;
                return characterFormat;

  • Another question about custom JComponents and JPanels

    Okay, so new issue now. I will be researching this as best I can while I wait for a reply.
    So I made a custom Component, and added it to a custom Panel. The Panel only contains this Component.
    If in the JFrame I create a JScrollPane and add the custom panel to it, then the scrollbar works exactly right. But, if I add the custom panel to another panel, it doesn't work. It just puts a one pixel border around the panel and centers it. I'm gonna go and read all about ScrollPanes and what it uses as a basis.
    Any help will be greatly appreciated.

    import java.awt.*;
    import javax.swing.*;
    public class WDF extends JFrame
        WDF()
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            setSize(500, 300);
            WaveFormPanel test = new WaveFormPanel(500, 100);
            add(test);
            setLocationRelativeTo(null);
            setVisible(true);
        public static void main(String[] args) {
            new WDF();
    class WaveFormPanel extends JPanel
        LineComponent myLine;
        public WaveFormPanel(int width, int height)
            // to ... have the scrollpane constrained
            // to be a certain size, i.e., 400 by 100
            // no matter how large the LineComponent is.
            // You can use GridBagLayout to have scrollPane
            // shown centered and at its preferredSize.
            // The default FlowLayout will also show the
            // scrollPane at its preferredSize.
            setLayout(new GridBagLayout());
            GridBagConstraints gbc = new GridBagConstraints();
            myLine = new LineComponent(width, height);
            JScrollPane sPane = new JScrollPane(myLine);
            sPane.setPreferredSize(new Dimension(400, 100));
            add(sPane, gbc);
    class LineComponent extends JComponent
        int lineWidth;
        int lineHeight;
        public LineComponent(int width, int height)
            lineWidth = width;
            lineHeight = height;
            this.setPreferredSize(new Dimension(width, height));  
        @Override
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            g.drawLine(0, 0, lineWidth, lineHeight);
    }

  • A problem with Threads and loops.

    Hi, I have some code that needs to be constantly running, like while(true)
          //code here
    }However, the code just checks to see if the user has input anything (and then if the user has, it goes to do some other stuff) so I don't need it constantly running and hogging up 98% of the CPU. So I made my class (which has the method that needs to be looped, call it ClassA) implement Runnable. Then I just added the method which needed to be looped into the public void run()
    I have another class which creates an instance of the above class (call it ClassB), and the main(String[] args) is in there.
    public static void main(String[] args)
              ClassA test = new ClassA();
              Thread thread = new Thread(test.getInstanceOfClassA());
              thread.start();
              while(true)
                           //I do not know what to put here
                   try
                        thread.sleep(100);
                   catch(InterruptedException iex)
         }However, the thread only calls run() once,(duh...) but I can't think of away to get it to run - sleep - run -sleep forever. Can someone help me?

    Hi, I have some code that needs to be constantly
    running, like while(true)
    //code here
    }However, the code just checks to see if the user has
    input anything (and then if the user has, it goes to
    do some other stuff) so I don't need it constantly
    running and hogging up 98% of the CPU. Where does the user input come from. Are you reading from an InputStream? If so, then your loop will be blocked anyway when reading from the InputStream until data is available. During that time, the loop will not consume processor cycles.
    public static void main(String[] args)
              ClassA test = new ClassA();
    Thread thread = new Thread(test.getInstanceOfClassA());I have never seen this idiom. If ClassA instanceof Runnable, you simply write new Thread(test).
              thread.start();
              while(true)
    //I do not know what to put
    do not know what to put here
                   try
                        thread.sleep(100);
                   catch(InterruptedException iex)
         }However, the thread only calls run() once,(duh...)Yeah, why would you want to call it more than once given that you have an infinite loop in ClassA.run()?
    Harald.
    Java Text Crunching: http://www.ebi.ac.uk/Rebholz-srv/whatizit/software

  • A problem with Threads and MMapi

    I am tring to execute a class based on Game canvas.
    The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
    The MIDI tone "Stammers".
    How to over come the problem?
    Thanks in advance
    Kobi
    See Code example below:
    import java.io.IOException;
    import java.io.InputStream;
    import javax.microedition.lcdui.Graphics;
    import javax.microedition.lcdui.Image;
    import javax.microedition.lcdui.game.GameCanvas;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    public class MainScreenCanvas extends GameCanvas implements Runnable {
         private MainMIDlet parent;
         private boolean mTrucking = false;
         Image imgBackgound = null;
         int imgBackgoundX = 0, imgBackgoundY = 0;
         Player player;
         public MainScreenCanvas(MainMIDlet parent)
              super(true);
              this.parent = parent;
              try
                   imgBackgound = Image.createImage("/images/area03_bkg0.png");
                   imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
                   imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
              catch(Exception e)
                   System.out.println(e.getMessage());
          * starts thread
         public void start()
              mTrucking = true;
              Thread t = new Thread(this);
              t.start();
          * stops thread
         public void stop()
              mTrucking = false;
         public void play()
              try
                   InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
                   player = Manager.createPlayer(is, "audio/midi");
                   player.setLoopCount(-1);
                   player.prefetch();
                   player.start();
              catch(Exception e)
                   System.out.println(e.getMessage());
         public void run()
              Graphics g = getGraphics();
              play();
              while (true)
                   tick();
                   input();
                   render(g);
          * responsible for object movements
         private void tick()
          * response to key input
         private void input()
              int keyStates = getKeyStates();
              if ((keyStates & LEFT_PRESSED) != 0)
                   imgBackgoundX++;
                   if (imgBackgoundX > 0)
                        imgBackgoundX = 0;
              if ((keyStates & RIGHT_PRESSED) != 0)
                   imgBackgoundX--;
                   if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
                        imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
          * Responsible for the drawing
          * @param g
         private void render(Graphics g)
              g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
              this.flushGraphics();
    }

    You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
    However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
    You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
    Regds,
    SD
    N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
    Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM

  • Problem with Threads and a static variable

    I have a problem with the code below. I am yet to make sure that I understand the problem. Correct me if I am wrong please.
    Code functionality:
    A timer calls SetState every second. It sets the state and sets boolean variable "changed" to true. Then notifies a main process thread to check if the state changed to send a message.
    The problem as far I understand is:
    Assume the timer Thread calls SetState twice before the main process Thread runs. As a result, "changed" is set to true twice. However, since the main process is blocked twice during the two calls to SetState, when it runs it would have the two SetState timer threads blocked on its synchronized body. It will pass the first one, send the message and set "changed" to false since it was true. Now, it will pass the second thread, but here is the problem, "changed" is already set to false. As a result, it won't send the message even though it is supposed to.
    Would you please let me know if my understanding is correct? If so, what would you propose to resolve the problem? Should I call wait some other or should I notify in a different way?
    Thanks,
    B.D.
    Code:
    private static volatile boolean bChanged = false;
    private static Thread objMainProcess;
       protected static void Init(){
            objMainProcess = new Thread() {
                public void run() {
                    while( objMainProcess == Thread.currentThread() ) {
                       GetState();
            objMainProcess.setDaemon( true );
            objMainProcess.start();
        public static void initStatusTimer(){
            if(objTimer == null)
                 objTimer = new javax.swing.Timer( 1000, new java.awt.event.ActionListener(){
                    public void actionPerformed( java.awt.event.ActionEvent evt){
                              SetState();
        private static void SetState(){
            if( objMainProcess == null ) return;
            synchronized( objMainProcess ) {
                bChanged = true;
                try{
                    objMainProcess.notify();
                }catch( IllegalMonitorStateException e ) {}
        private static boolean GetState() {
            if( objMainProcess == null ) return false;
            synchronized( objMainProcess ) {
                if( bChanged) {
                    SendMessage();
                    bChanged = false;
                    return true;
                try {
                    objMainProcess.wait();
                }catch( InterruptedException e ) {}
                return false;
        }

    Thanks DrClap for your reply. Everything you said is right. It is not easy to make them alternate since SetState() could be called from different places where the state could be anything else but a status message. Like a GREETING message for example. It is a handshaking message but not a status message.
    Again as you said, There is a reason I can't call sendMessage() inside setState().
    The only way I was able to do it is by having a counter of the number of notifies that have been called. Every time notify() is called a counter is incremented. Now instead of just checking if "changed" flag is true, I also check if notify counter is greater than zero. If both true, I send the message. If "changed" flag is false, I check again if the notify counter is greater than zero, I send the message. This way it works, but it is kind of a patch than a good design fix. I am yet to find a good solution.
    Thanks,
    B.D.

  • Problem with Threads and "plase wait..."-Window

    Hi everyone,
    I have a problem that I'm not able to solve in any way... I have a time-consuming task (a file decryption) which I execute in a separate thread; I've used the SwingWorker class, like suggested by sun-tutorial, and it works right. The problem is that I have to wait that the decryption have finished before continuing with program-execution. Therefore I would like to display a "please wait"-window while the task runs. I've tryed all the possible ways I know but the problem is always the same: the waitWindow is displayed empty, the bounds are painted but the contents no; it's only painted when the decrypt-task has finished. Please help me, I have no more resources....
    decrypt-file code:
    public class DecryptFile {
      private String cryptedFileNameAndPath;
      private ByteArrayInputStream resultStream = null;
      // need for progress
      private int lengthOfTask;
      private int current = -1;
      private String statMessage;
      public DecryptFile(String encZipFileNameAndPath) {
        cryptedFileNameAndPath = encZipFileNameAndPath;
        //Compute length of task...
        // 0 for indeterminate
        lengthOfTask = 0;
      public ByteArrayInputStream getDecryptedInputStream() {
        return this.resultStream;
       * Called from ProgressBarDemo to start the task.
      public void go() {
        current = -1;
        final SwingWorker worker = new SwingWorker() {
          public Object construct() {
            return new ActualTask();
        worker.start();
       * Called from ProgressBarDemo to find out how much work needs
       * to be done.
      public int getLengthOfTask() {
        return lengthOfTask;
       * Called from ProgressBarDemo to find out how much has been done.
      public int getCurrent() {
        return current;
      public void stop() {
        current = lengthOfTask;
       * Called from ProgressBarDemo to find out if the task has completed.
      public boolean done() {
        if (current >= lengthOfTask)
          return true;
        else
          return false;
      public String getMessage() {
        return statMessage;
       * The actual long running task.  This runs in a SwingWorker thread.
      class ActualTask {
        ActualTask () {
          current = -1;
          statMessage = "";
          resultStream = AIUtil.getInputStreamFromEncZip(cryptedFileNameAndPath); //here the decryption happens
          current = 0;
          statMessage = "";
      }The code that calls decryption and displays waitWindow
          final WaitSplash wS = new WaitSplash("Please wait...");
          final DecryptFile cryptedTemplate = new DecryptFile (this.templateFile);
          cryptedTemplate.go();
          while (! cryptedTemplate.done()) {
            try {
              wait();
            } catch (Exception e) { }
          this.templateInputStream = cryptedTemplate.getDecryptedInputStream();
          wS.close();Thanks, thanks, thanks in advance!
    Edoardo

    Maybe you can try setting the priority of the long-running thread to be lower? so that the UI will be more responsive...

  • Problem with threads and graphics

    I have a thread that chooses paths for a Travelling salesman problem, it then calls a TSPdraw class and passes it the path, which the class then draws. the problem is when i have two threads it creates two windows but only draws a path in one of them. any ideas where i`m going wrong

    Are you using swing components? Swing isn't threadsafe. If you have multiple threads that want to update your UI you need to use the SwingUtilities.invokeLater(...)or invokeAndWait(...). There is a page in the swing tutorial about this at: http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html

  • Problem with threads and ProgressMonitor

    Dear Friends:
    I have a little problem with a thread and a ProgressMonitor. I have a long time process that runs in a thread (the thread is in an separate class). The thread has a ProgressMonitor that works fine and shows the tasks progress.
    But I need deactivate the main class(the main class is the user interface) until the thread ends.
    I use something like this:
    LongTask myTask=new LongTask();
    myTask.start();
    myTask.join();
    Now, the main class waits for the task to end, but the progress monitor don`t works fine: it shows only the dialog but not the progress bar.
    What's wrong?

    Is the dialog a modal dialog? This can block other UI updates.
    In general, you should make sure that it isn't modal, and that your workThread has a fairly low priority so that the UI can do its updating

  • Problem with threads and/or memory

    I'm developing an application where there are 3 threads. One of them sends a request to the other, and if the 2nd can't answer it, it sends it to the 3rd (similar to CPU -> CACHE -> MEMORY). When i run the program with 1000-10.000 requests, no problem occurs. When i run it with 300.000-1.000.000 requests, it sometimes hangs. Is this a problem with the garbage collector, or should it be related to the threads mecanism.
    (note: eache thread is in execution using a finite state machine)

    i had been running the program inside Netbeans.
    Running the jar using the command line outside
    Netbeans i have no more problems... Does Netbeans use
    it's own JVM?Depends how you set it up, but look under the options. There are settings for the compiler and jvm that it uses.

Maybe you are looking for