... 0 ---- compiled with xHarbour 2009/FWH1304 with libs mem32.lib send32.lib oledlg.lib EXE is built but crash at runtime. thanks for any help. Toyet Try STATIC isOn := .F. STATIC oDlgWt, nWidth, oFont14function Main() // DEFAULT cCaption := "Please wait..." ---> ...