exception thrown for skin manager+skin provider

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34337
    drbill
    Participant

    Environment: bcb6 winxp ac-version 7.25

    You can repeat this error in about 10 min within your IDE.

    1. Create a new Application

    2. Add a FileListBox to the form, compile, link and run w/no errors

    3. Add a Form1->Activate event to set the filelistbox->mask to the input directory.

    Compile, link & run w/no errors, filelistbox is now empty.

    4. Add a SkinManager and a SkinProvider. Compile, link & run

    Immediately crash with an “Index out of bounds” exception.

    Based on my procedures, it seems that the Skin* routines are necessary to create the exception.

    Can you folks help me with this critical problem?

    Many thanks,

    Bill

    #44780
    drbill
    Participant

    I removed the “SkinProvider” component and the exception does not occur. Does this help you

    isolate the reason for the 'out of bounds' exception?

    Many thanks again,

    Bill

    #44816
    Support
    Keymaster

    This error occurs when control is drawn in cache for animation effect (SkinManager.AnimEffects.FormShow.Active is True).

    Standard FileListBox haven't checking of available items in DrawItem procedure : TextOut(Rect.Left + offset, Rect.Top, Items[Index]) < Index is 0 here, but Items not exists. I can suggest two solutions : – add a skinning support for this control (SkinManager.ThirdParty property) – change SkinManager.AnimEffects.FormShow.Active property to False

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.