Click here to Skip to main content
15,121,505 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Vouksh10-Feb-16 5:30
MemberVouksh10-Feb-16 5:30 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
Luc Pattyn11-Feb-16 1:29
sitebuilderLuc Pattyn11-Feb-16 1:29 
GeneralRe: Programmatically login to website that uses 2 steps. Pin
OriginalGriff11-Feb-16 1:35
mveOriginalGriff11-Feb-16 1:35 
SuggestionRe: Programmatically login to website that uses 2 steps. Pin
Richard Deeming10-Feb-16 5:16
mveRichard Deeming10-Feb-16 5:16 
AnswerRe: Programmatically login to website that uses 2 steps. Pin
V.10-Feb-16 21:21
professionalV.10-Feb-16 21:21 
QuestionIssue with Serial Port class Pin
Member 1206160010-Feb-16 0:13
MemberMember 1206160010-Feb-16 0:13 
SuggestionRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 1:14
mveRichard MacCutchan10-Feb-16 1:14 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 1:23
MemberMember 1206160010-Feb-16 1: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 1:30
mveRichard MacCutchan10-Feb-16 1:30 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 1:38
MemberMember 1206160010-Feb-16 1:38 
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 2:02
mveRichard MacCutchan10-Feb-16 2:02 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 2:18
MemberMember 1206160010-Feb-16 2:18 
GeneralRe: Issue with Serial Port class Pin
Richard MacCutchan10-Feb-16 2:30
mveRichard MacCutchan10-Feb-16 2:30 
GeneralRe: Issue with Serial Port class Pin
Member 1206160010-Feb-16 2:52
MemberMember 1206160010-Feb-16 2:52 
GeneralRe: Issue with Serial Port class Pin
Eddy Vluggen10-Feb-16 4:00
professionalEddy Vluggen10-Feb-16 4:00 
AnswerRe: Issue with Serial Port class Pin
Gerry Schmitz10-Feb-16 6:39
mveGerry Schmitz10-Feb-16 6:39 
QuestionWeb Services - Error in deserializing body of request message for operation Pin
FabeCode9-Feb-16 19:54
MemberFabeCode9-Feb-16 19:54 
AnswerRe: Web Services - Error in deserializing body of request message for operation Pin
Gerry Schmitz10-Feb-16 6:13
mveGerry Schmitz10-Feb-16 6:13 
Question'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 1:31
mveBillWoodruff9-Feb-16 1:31 
AnswerRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Pete O'Hanlon9-Feb-16 2:02
mvePete O'Hanlon9-Feb-16 2:02 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 21:08
mveBillWoodruff9-Feb-16 21:08 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Pete O'Hanlon9-Feb-16 22:30
mvePete O'Hanlon9-Feb-16 22:30 
SuggestionRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
Richard Deeming9-Feb-16 2:51
mveRichard Deeming9-Feb-16 2:51 
GeneralRe: 'ctor design and extra "cost" of using nullable ValueTypes ? Pin
BillWoodruff9-Feb-16 21:09
mveBillWoodruff9-Feb-16 21:09 
QuestionLarge terrain problem in main first game Pin
Member 122480289-Feb-16 1:25
MemberMember 122480289-Feb-16 1: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.