Sending SMS using Logicode GSM SMS Error
<p>I am using windows service to send sms. In the first attempt, sms is going without any error.when the schedule running second time after 5 minutes, i am getting "specified port not available" error.</p>

<pre><code>cgsmSMS.GSMSMS objSMS = new lcgsmSMS.GSMSMS();
string strLicName;
string strLicKey;
string strLicType;
strLicName = "xxxx";
strLicKey = "xxxx";
strLicType = "xxxxx";
objSMS.License(ref strLicName, ref strLicKey, ref strLicType);
if (objSMS.IsLicensed)
{
    if (objSMS.COMPort != "COM1")
    {
        objSMS.COMPort = "COM1";
        objSMS.BaudRate = 9600;
    }
    bool bl1 = false;
    bool bl2 = false;

    DataTable dtItems = new DataTable();
    dtItems.Columns.Add("SMSID");
    dtItems.Columns.Add("ErrorMsg");
    DataRow drItems;

    foreach (DataRow dr in ds.Tables["GetSMStobesent"].Rows)
    {
        objSMS.SendMessage(dr["Message"].ToString(), dr["ToNo"].ToString(), ref bl1, ref bl2);
    }
</code></pre>

<p>Above is the code i am using.
Please check and find what is the mistake.</p>
