簡體   English   中英

帶imageTag segfaults的wxhaskell筆記本

[英]wxhaskell notebook with imageTag segfaults

我只是無法運行imageTab 我遇到了Segmentation fault: 11 這是我的代碼。 有人知道該怎么辦嗎?

import Graphics.UI.WX 
import Graphics.UI.WXCore

main :: IO ()
main = start gui

gui :: IO ()
gui = do
    f  <- frame []
    fp <- panel f []

    nb <- notebook fp []
    page <- panel nb []
    b <- button page [ text := "-"]


    let bm = bitmap "favicon.ico"
    -- check that bitmap is there
    sx <- bitmapGetHeight bm
    print sx

    set f [ layout := container fp $ tabs nb [imageTab "Foo" bm (container page $ fill $ widget b)]]

    -- This works
    --set f [ layout := container fp $ tabs nb [tab "Foo" (container page $ fill $ widget b)]]

這看起來像個錯誤; 您最好在http://sourceforge.net/p/wxhaskell/bugs/報告

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM