凱基API報價與下單整合異常 - 財經
By Edwina
at 2015-09-17T10:52
at 2015-09-17T10:52
Table of Contents
大大好,
近期在凱基報價與下單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
--
近期在凱基報價與下單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
--
Tags:
財經
All Comments
Related Posts
2015/09/14 盤中閒聊
By John
at 2015-09-13T22:07
at 2015-09-13T22:07
關於期貨商的報價品質差異性
By Regina
at 2015-09-13T18:41
at 2015-09-13T18:41
交易系統書單
By Gilbert
at 2015-09-13T08:58
at 2015-09-13T08:58
請問下載回測資料
By Emma
at 2015-09-08T22:47
at 2015-09-08T22:47
請問有人用過外匯VPS嗎?
By Rosalind
at 2015-09-08T19:56
at 2015-09-08T19:56