Click here to Skip to main content
15,892,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: howto determine ip? help please ... Pin
Gavin Roberts18-Jul-06 0:53
Gavin Roberts18-Jul-06 0:53 
AnswerRe: howto determine ip? help please ... Pin
Mr. VB.NET18-Jul-06 0:58
Mr. VB.NET18-Jul-06 0:58 
Questionpsl, Help me, Pin
tranglt17-Jul-06 21:39
tranglt17-Jul-06 21:39 
AnswerRe: psl, Help me, Pin
J4amieC17-Jul-06 21:56
J4amieC17-Jul-06 21:56 
GeneralRe: psl, Help me, Pin
tranglt17-Jul-06 22:14
tranglt17-Jul-06 22:14 
GeneralRe: psl, Help me, Pin
leppie17-Jul-06 22:19
leppie17-Jul-06 22:19 
GeneralRe: psl, Help me, Pin
tranglt18-Jul-06 23:54
tranglt18-Jul-06 23:54 
QuestionSerialPort Control in VC# Express 2005 Pin
Audio_Developer17-Jul-06 21:31
Audio_Developer17-Jul-06 21:31 
Hello,

I have a problem with the SerialPort Control under VC# Express 2005.
In my application I have to read data from an external device through RS 232.
The process is built on a software-based handshaking which depends on the device.

The process has been implemented by me and works but unfortunately only the first time.
All data are donwloaded successfully as required.
The process is simple serialPort11.Open(), Handshaking, Data Download, Handshaking, serialPort1.Close().

The problem occurs with the second run, when the same procedure is executed again (using a button_onclick event), then the Port is opened again with serialPort1.Open() and with the first serialPort1.readByte() a TimeOut Error occurs.
Even if the Timeout is set to 10sec it does not help.

If the application is restarted and the process is again executed, then the data are read perfectly from the device. Hence it does not depend on the state of the external device, but on the PC (Soft and/or Hardware).

I have the feeling, that closing the SerialPort with serialPort1.Close() does not free all resources and possibly the hardware RS232 is not fully reset.

Has anyone had a similar problem and found a solution for it?
Can you rely on serialPort1.Close()? Are all resources freed?

I hope someone can help

Thanks a lot in advance













Best regards,

Carsten
GeneralRe: SerialPort Control in VC# Express 2005 Pin
Audio_Developer18-Jul-06 21:17
Audio_Developer18-Jul-06 21:17 
Question[Resource lookup failed...] Pin
Hariharan.T17-Jul-06 19:07
Hariharan.T17-Jul-06 19:07 
QuestionForm, Tabs and Controls --- Resizing Them Pin
shultas17-Jul-06 15:16
shultas17-Jul-06 15:16 
AnswerRe: Form, Tabs and Controls --- Resizing Them Pin
Alexander Wiseman17-Jul-06 15:34
Alexander Wiseman17-Jul-06 15:34 
QuestionSocket Question Pin
Tom Wright17-Jul-06 12:22
Tom Wright17-Jul-06 12:22 
AnswerRe: Socket Question Pin
Ed.Poore17-Jul-06 12:24
Ed.Poore17-Jul-06 12:24 
AnswerRe: Socket Question Pin
Mr. VB.NET18-Jul-06 0:47
Mr. VB.NET18-Jul-06 0:47 
QuestionCan anyone think of any disadvantage of using a params parameter? Pin
wout de zeeuw17-Jul-06 11:48
wout de zeeuw17-Jul-06 11:48 
AnswerClarity Pin
Ennis Ray Lynch, Jr.17-Jul-06 12:19
Ennis Ray Lynch, Jr.17-Jul-06 12:19 
GeneralRe: Clarity Pin
Judah Gabriel Himango17-Jul-06 17:10
sponsorJudah Gabriel Himango17-Jul-06 17:10 
GeneralRe: Clarity Pin
Ennis Ray Lynch, Jr.17-Jul-06 17:14
Ennis Ray Lynch, Jr.17-Jul-06 17:14 
GeneralRe: Clarity Pin
Judah Gabriel Himango17-Jul-06 17:54
sponsorJudah Gabriel Himango17-Jul-06 17:54 
GeneralMy opinion on languages is such Pin
Ennis Ray Lynch, Jr.17-Jul-06 19:36
Ennis Ray Lynch, Jr.17-Jul-06 19:36 
GeneralRe: My opinion on languages is such Pin
leppie17-Jul-06 22:13
leppie17-Jul-06 22:13 
GeneralRe: My opinion on languages is such Pin
wout de zeeuw17-Jul-06 22:42
wout de zeeuw17-Jul-06 22:42 
AnswerRe: Can anyone think of any disadvantage of using a params parameter? Pin
leppie17-Jul-06 22:15
leppie17-Jul-06 22:15 
GeneralRe: Can anyone think of any disadvantage of using a params parameter? Pin
wout de zeeuw17-Jul-06 22:41
wout de zeeuw17-Jul-06 22:41 

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.