do you mean 
    
    
    proc OnClick*(bHandle: var bool): cint {.exportc, cdecl.} =
        setupForeignThreadGc()
        var
            sel = XC_MessageBox(nil, "炫彩界面库pText", "pCaption", 1)
        bHandle = true
        result = 0
        tearDownForeignThreadGc()
    
    
    Run

it still crashes after the msgbox appears

btw, I have add ` --threads:on --tlsEmulation:off` to compile the source

Reply via email to