Click here to Skip to main content
15,881,089 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Dralken10-Feb-16 4:30
Dralken10-Feb-16 4:30 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Luc Pattyn11-Feb-16 0:29
sitebuilderLuc Pattyn11-Feb-16 0:29 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
OriginalGriff11-Feb-16 0:35
mveOriginalGriff11-Feb-16 0:35 
SuggestionRe: Programmatically login to website that uses 2 steps. Pin
Richard Deeming10-Feb-16 4:16
mveRichard Deeming10-Feb-16 4:16 
AnswerRe: Programmatically login to website that uses 2 steps. Pin
V.10-Feb-16 20:21
professionalV.10-Feb-16 20:21 
QuestionIssue with Serial Port class Pin
Member 120616009-Feb-16 23:13
Member 120616009-Feb-16 23:13 
SuggestionRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 0:14
mveRichard MacCutchan10-Feb-16 0:14 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 0:23
Member 1206160010-Feb-16 0:23 
What is the general good advice about using serial ports.
In my case I have only one function which talks to the HASP.
Is it good idea if I use it like this:
C#
public booFoo()
{
 try
            {
                OldHaspCommunication.OpenPort("COM6", 115200, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One, true, true); // here m_port is set to new instance of SerialPort each time so I don't get exception when trying to call this multiple times
                  .....//Talk to HASP
            }
             }
            catch (Exception)
            { }
            finally
            { ClosePort(); }

            return false;
}


On each call to HASP I open and close it.

My issue is my class works fine but when I unplug HASP then come problems.
This way it seems there are no more issues, what do you think
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 0:30
mveRichard MacCutchan10-Feb-16 0:30 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 0:38
Member 1206160010-Feb-16 0:38 
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 1:02
mveRichard MacCutchan10-Feb-16 1:02 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 1:18
Member 1206160010-Feb-16 1:18 
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 1:30
mveRichard MacCutchan10-Feb-16 1:30 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 1:52
Member 1206160010-Feb-16 1:52 
GeneralRe: Issue with Serial Port class Pin
Eddy Vluggen10-Feb-16 3:00
professionalEddy Vluggen10-Feb-16 3:00 
AnswerRe: Issue with Serial Port class Pin
Gerry Schmitz10-Feb-16 5:39
mveGerry Schmitz10-Feb-16 5:39 
QuestionWeb Services - Error in deserializing body of request message for operation Pin
FabeCode9-Feb-16 18:54
FabeCode9-Feb-16 18:54 
AnswerRe: Web Services - Error in deserializing body of request message for operation Pin
Gerry Schmitz10-Feb-16 5:13
mveGerry Schmitz10-Feb-16 5:13 
Question'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 0:31
professionalBillWoodruff9-Feb-16 0:31 
AnswerRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Pete O'Hanlon9-Feb-16 1:02
mvePete O'Hanlon9-Feb-16 1:02 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 20:08
professionalBillWoodruff9-Feb-16 20:08 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Pete O'Hanlon9-Feb-16 21:30
mvePete O'Hanlon9-Feb-16 21:30 
SuggestionRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Richard Deeming9-Feb-16 1:51
mveRichard Deeming9-Feb-16 1:51 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 20:09
professionalBillWoodruff9-Feb-16 20:09 
QuestionLarge terrain problem in main first game Pin
Member 122480289-Feb-16 0:25
Member 122480289-Feb-16 0:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.