为什么使用kylix发送短信始终冻结程序 [英] Why does sending SMS with kylix always freeze the program

查看:73
本文介绍了为什么使用kylix发送短信始终冻结程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我有一个程序可以发送带有kylix组件的短信。它工作得很好,但它立即挂起。

我正在使用此代码发送短信:





hi I have a program that sends sms with kylix component. it works nice but Immediately it hangs.
i'm using this code for send sms:


Thread s = new Thread(new ThreadStart(send));
            s.Start();
            Thread.Sleep(1000);
            s.Abort();

public void send()
        {
          long ls=  axKylixSMS.SendSMS(mynum, mytext);
           if(ls < 1) 
             MessageBox.Show("your message has not been sent");
            else
             MessageBox.Show("your message has been sent");
        }



如果我用kylix发送短信,我该如何防止冻结程序?

请帮助我!

提前感谢



我尝试过:



,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,


how can i prevent from freeze the program when i send sms with kylix?
please help me!
thanks in advance

What I have tried:

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

推荐答案

它挂起,因为你告诉它什么时候你告诉它睡一会儿。如果它在您调用axKylixSMS时挂起,请联系该组件的供应商以获取解决方法。
It hangs because you told it to when you told it to sleep for a second. If it hangs when you call axKylixSMS then contact the vendor of that component for ways to troubleshoot.


这篇关于为什么使用kylix发送短信始终冻结程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆