[問題] 凱基API報價與下單整合異常

看板Trading (金融交易)作者 (萊諾)時間9年前 (2015/09/17 10:52), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
大大好, 近期在凱基報價與下單API整合在一個C# Form內,執行登入連線時, 報價API正常登入動作後,接著做下單登入時,很快就出現斷線 出現執行緒中斷異常在以下程式碼,請問有朋友遇過這樣的問題嗎?煩請指點,謝謝 private void OnGetStatus(object sender, COM_STATUS staus, byte[] msg) { TaiFexCom com = (TaiFexCom)sender; if (this.InvokeRequired) { Smart.OnGetStatus_EventHandler d = new Smart.OnGetStatus_EventHandler(OnGetStatus); this.Invoke(d, new object[] { sender, staus, msg });======>執 行時在此行出現 ThreadInterruptedException -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.253.57.135 ※ 文章網址: https://www.ptt.cc/bbs/Trading/M.1442458348.A.717.html
文章代碼(AID): #1L-YhiSN (Trading)
文章代碼(AID): #1L-YhiSN (Trading)