nw / bitmap / double free assert


  • I get a "double free" assertion and don't have a clue why. What I actually do is:

    app = nw:app()
    win = app:window()
    win:show()
    app:run(my_func)

    my_func()
    bmp = win:bitmap()
    pixelinterface = bmp:pixel_interface()
    for
    ... using setpixel
    win:invalidate()
    end

    And the app ends after the for loop terminated.

    .\winapi\dibitmap.lua:82: double free
    stack traceback:
    [C]: in function 'error'
    .\glue.lua:391: in function 'assert'
    .\winapi\dibitmap.lua:82: in function 'free'
    .\nw_winapi.lua:1338: in function '_free_bitmap'
    .\nw_winapi.lua:227: in function 'handler'
    .\winapi\basewindowclass.lua:470: in function <.\winapi\basewindowclass.lua:457>
    [C]: in function 'xpcall'
    .\winapi\basewindowclass.lua:81: in function <.\winapi\basewindowclass.lua:80>
    [C]: in function 'DestroyWindow'
    .\winapi\window.lua:118: in function <.\winapi\window.lua:116>

    Any idea what this could be? Robert


  • 1
    Posts
    54
    Views
    Log in to reply

Internal error.

Oops! Looks like something went wrong!