Click here to Skip to main content
15,886,769 members
Home / Discussions / C#
   

C#

 
GeneralRe: Breakpoint problem Pin
Christian Graus23-Jun-09 10:52
protectorChristian Graus23-Jun-09 10:52 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 11:07
Dan Neely23-Jun-09 11:07 
AnswerRe: Breakpoint problem Pin
Adam Maras23-Jun-09 10:52
Adam Maras23-Jun-09 10:52 
GeneralRe: Breakpoint problem Pin
Dan Neely23-Jun-09 11:09
Dan Neely23-Jun-09 11:09 
QuestionGet value of REG_NONE in registry Pin
jamesband00723-Jun-09 9:27
jamesband00723-Jun-09 9:27 
AnswerRe: Get value of REG_NONE in registry Pin
Luc Pattyn23-Jun-09 9:31
sitebuilderLuc Pattyn23-Jun-09 9:31 
AnswerRe: Get value of REG_NONE in registry Pin
Manas Bhardwaj23-Jun-09 9:31
professionalManas Bhardwaj23-Jun-09 9:31 
QuestionCommunicating with a serial port Pin
12425623-Jun-09 8:55
12425623-Jun-09 8:55 
I have a program that needs to do two-way communication with a serial port. Once I set up the serial port, I will do a WriteLine("something"), then the program must wait for a response, read the response, and then based on that response do another WriteLine, rinse and repeat. Ideally I want to be able to call some function match(SerialPort s, string matchText) that will block until I get a response from the SerialPort and then let me know if my text matches the response.

I've tried using ManualResetEvents and WaitOne(), but calling WaitOne() seems to block everything: the SerialPort.DataReceived event never triggers! Note that all the thread management is occurring in a static management class, but I don't believe this would cause the problem.

Any ideas? Perhaps I'm going about this the wrong way. It seems like the write->wait->read->decide->write... workflow should be a pretty common task with serial ports.
AnswerRe: Communicating with a serial port Pin
Luc Pattyn23-Jun-09 9:25
sitebuilderLuc Pattyn23-Jun-09 9:25 
AnswerRe: Communicating with a serial port Pin
Wes Aday23-Jun-09 9:50
professionalWes Aday23-Jun-09 9:50 
Question.LastIndexOf("%") [modified] Pin
Jasmine Pomelo23-Jun-09 8:26
Jasmine Pomelo23-Jun-09 8:26 
AnswerRe: .LastIndexOf("%") Pin
Luc Pattyn23-Jun-09 8:49
sitebuilderLuc Pattyn23-Jun-09 8:49 
GeneralRe: .LastIndexOf("%") Pin
EliottA23-Jun-09 9:07
EliottA23-Jun-09 9:07 
GeneralRe: .LastIndexOf("%") Pin
Jasmine Pomelo23-Jun-09 9:09
Jasmine Pomelo23-Jun-09 9:09 
GeneralRe: .LastIndexOf("%") Pin
Luc Pattyn23-Jun-09 9:18
sitebuilderLuc Pattyn23-Jun-09 9:18 
Question[Message Deleted] Pin
Gilberto Muñoz23-Jun-09 7:38
Gilberto Muñoz23-Jun-09 7:38 
AnswerRe: convert from php to c# Pin
Ennis Ray Lynch, Jr.23-Jun-09 7:59
Ennis Ray Lynch, Jr.23-Jun-09 7:59 
AnswerRe: convert from php to c# Pin
EliottA23-Jun-09 9:00
EliottA23-Jun-09 9:00 
AnswerRe: [Message Deleted] Pin
EliottA23-Jun-09 9:13
EliottA23-Jun-09 9:13 
Questionhow can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
dimo198223-Jun-09 7:37
dimo198223-Jun-09 7:37 
AnswerRe: how can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
dan!sh 23-Jun-09 8:02
professional dan!sh 23-Jun-09 8:02 
GeneralRe: how can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
dimo198223-Jun-09 8:37
dimo198223-Jun-09 8:37 
GeneralRe: how can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
Eddy Vluggen23-Jun-09 9:23
professionalEddy Vluggen23-Jun-09 9:23 
AnswerRe: how can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
EliottA23-Jun-09 9:03
EliottA23-Jun-09 9:03 
GeneralRe: how can i get data from SQL northwind.sdf into the textBox ????????? need help Pin
dimo198223-Jun-09 13:03
dimo198223-Jun-09 13:03 

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.