Click here to Skip to main content
15,898,373 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
saoda1-May-09 0:03
saoda1-May-09 0:03 
AnswerAnswer! Pin
Nagy Vilmos1-May-09 0:11
professionalNagy Vilmos1-May-09 0:11 
AnswerAnswer Pin
dan!sh 1-May-09 0:12
professional dan!sh 1-May-09 0:12 
AnswerRe: Question! Pin
SimpleData1-May-09 0:19
SimpleData1-May-09 0:19 
QuestionProblem with events code and thread (long post) Pin
Otex30-Apr-09 23:02
Otex30-Apr-09 23:02 
AnswerRe: Problem with events code and thread (long post) Pin
Nicholas Butler1-May-09 0:35
sitebuilderNicholas Butler1-May-09 0:35 
GeneralRe: Problem with events code and thread (long post) Pin
Otex1-May-09 0:48
Otex1-May-09 0:48 
AnswerRe: Problem with events code and thread (long post) Pin
Nicholas Butler1-May-09 5:22
sitebuilderNicholas Butler1-May-09 5:22 
Your thread running openCOMPort is not doing anything. It attaches the event handler and opens the port, but this can run on your UI thread as it doesn't take any time. Then your thread sleeps for 10 seconds before ending. It can't do anything useful when its sleeping, so it's totally pointless.

When data arrives at the port, the SerialPort instance gets a thread pool thread and raises the event on that, so port_DataReceived actually runs on a thread pool thread - see my previous reply.

You're not going to get this done today. I suggest you read http://www.albahari.com/threading/[^] over the weekend.

Nick

----------------------------------
Be excellent to each other Smile | :)

QuestionRe: Problem with events code and thread (long post) Pin
Otex3-May-09 5:43
Otex3-May-09 5:43 
AnswerRe: Problem with events code and thread (long post) Pin
Nicholas Butler3-May-09 7:43
sitebuilderNicholas Butler3-May-09 7:43 
QuestionHow to Pass TableAdapter data to another form's datagrid for modification then return the data to the original TableAdapter Pin
MarkB12330-Apr-09 22:59
MarkB12330-Apr-09 22:59 
AnswerRe: How to Pass TableAdapter data to another form's datagrid for modification then return the data to the original TableAdapter Pin
Christian Graus30-Apr-09 23:49
protectorChristian Graus30-Apr-09 23:49 
Questionload settings.settings in an array and datagrid Pin
Otex30-Apr-09 22:52
Otex30-Apr-09 22:52 
AnswerRe: load settings.settings in an array and datagrid Pin
DaveyM691-May-09 0:13
professionalDaveyM691-May-09 0:13 
GeneralRe: load settings.settings in an array and datagrid Pin
Otex1-May-09 0:36
Otex1-May-09 0:36 
QuestionHow can I create a DataView based on several DataTables? Pin
maoz30-Apr-09 22:32
maoz30-Apr-09 22:32 
AnswerRe: How can I create a DataView based on several DataTables? Pin
Henry Minute1-May-09 1:03
Henry Minute1-May-09 1:03 
QuestionSql Problem!! Pin
Nafiseh Salmani30-Apr-09 21:56
Nafiseh Salmani30-Apr-09 21:56 
AnswerRe: Sql Problem!! Pin
Abhijit Jana30-Apr-09 22:51
professionalAbhijit Jana30-Apr-09 22:51 
AnswerRe: Sql Problem!! Pin
fly90430-Apr-09 23:21
fly90430-Apr-09 23:21 
QuestionString to Dataset? Pin
nabilg30-Apr-09 21:28
nabilg30-Apr-09 21:28 
AnswerRe: String to Dataset? Pin
HuntingWabbits30-Apr-09 23:28
HuntingWabbits30-Apr-09 23:28 
AnswerRe: String to Dataset? Pin
Mycroft Holmes1-May-09 2:21
professionalMycroft Holmes1-May-09 2:21 
QuestionGreat NMS tool Pin
gvgohome30-Apr-09 16:50
gvgohome30-Apr-09 16:50 
AnswerRe: Great NMS tool Pin
Christian Graus30-Apr-09 19:14
protectorChristian Graus30-Apr-09 19:14 

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.