<A call to an OS function failed>

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #34826
    Omega User
    Participant

    Hi there,

    I get this message when I run a program with dynamically created TsScrollbars. Perhaps I'm missing a mandatory property, but I don't see which one. I'm in Lite, so can't see in the source what is exactly failing. Here is a scrollbar of mine…

    YScrollBar := TsScrollBar.Create(MainForm);

    with YScrollBar do

    begin

    Parent := MainForm;

    Kind := sbVertical;

    Left := OriX + Surface.Width +5;

    Top := OriY;

    Width := 15;

    Height := Surface.Height;

    Name := 'YSB' + ITS(Self.Index);

    Tag := Self.Index;

    SkinManager := Main.sSkinManager1;

    end;

    #46886
    cypheros
    Participant
    'Omega wrote:

    SkinManager := Main.sSkinManager1;

    Shouldn't it be SkinManager := MainForm.sSkinManager1 ?

    #46888
    Omega User
    Participant

    MainForm would be better yes, but they are the same in the end (this don't change anything).

    I created with same code a TsScrollbar in a test app, and no problem… Is it because the app with problem is multithreaded perhaps?

    #46927
    Support
    Keymaster

    Hello, Omega User

    I can't reproduce an error, can you show a problem remotely?

    #46955
    Omega User
    Participant

    By remotely you mean what? A screenshot?

    Perhaps I can send you a slightly simplified version of my project, and you'll see? But I prefer that only you get it and not all the forum, if you don't mind! 🙂

    #47104
    Omega User
    Participant

    Just a friendly reminder, I sent you the files necessary to reproduce the bug.

    #47121
    Support
    Keymaster

    Some changes will be added in the nearest release already, please wait some days.

    #47224
    Omega User
    Participant

    I confirm that version 755 fixed the issue. Thanks for your excellent support.

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