Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 6:53
mvePIEBALDconsult4-Feb-09 6:53 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 7:18
mirko864-Feb-09 7:18 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 8:00
mvePIEBALDconsult4-Feb-09 8:00 
GeneralRe: adjust my machine's utc? Pin
mirko864-Feb-09 8:05
mirko864-Feb-09 8:05 
GeneralRe: adjust my machine's utc? Pin
PIEBALDconsult4-Feb-09 8:10
mvePIEBALDconsult4-Feb-09 8:10 
QuestionHow do I change the value in the Title column for a document or folder in a doc lib using c#? Pin
eval994-Feb-09 4:00
eval994-Feb-09 4:00 
QuestionSerialPort output problem Pin
Admin8874-Feb-09 3:45
Admin8874-Feb-09 3:45 
AnswerRe: SerialPort output problem Pin
Luc Pattyn4-Feb-09 5:09
sitebuilderLuc Pattyn4-Feb-09 5:09 
Hi,

what is the problem? what are those [SP] [CR] you speak about?


Admin887 wrote:
CheckForIllegalCrossThreadCalls = false;


don't ever do this, it means you want to ignore a fundamental flaw in your code and hope it will
work. Well, it will not. The right thing to do is make sure you touch controls only from inside
the main thread; all other threads need to use the Control.InvokeRequired/Control.Invoke pattern.
Look it up, it isn't hard to do it right.

Admin887 wrote:
Application.Run();


What is this statement doing there? throw it out!


Admin887 wrote:
Thread t = new Thread(


Why do you start another thread, all it does is open the serial port, you could have done that
in the form's constructor (or in its Load handler). DataReceived will be called on yet another
thread anyway, one you do not control at all (like most asynchronous operations in .NET).

In summary: clean up the code, and research Control.InvokeRequired.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: SerialPort output problem Pin
Admin8874-Feb-09 5:51
Admin8874-Feb-09 5:51 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 6:13
sitebuilderLuc Pattyn4-Feb-09 6:13 
GeneralRe: SerialPort output problem Pin
Alan N4-Feb-09 7:06
Alan N4-Feb-09 7:06 
AnswerRe: SerialPort output problem [modified] Pin
Luc Pattyn4-Feb-09 7:23
sitebuilderLuc Pattyn4-Feb-09 7:23 
QuestionSql Database LookUp Pin
boiDev4-Feb-09 3:04
boiDev4-Feb-09 3:04 
AnswerRe: Sql Database LookUp Pin
musefan4-Feb-09 3:29
musefan4-Feb-09 3:29 
AnswerRe: Sql Database LookUp Pin
J4amieC4-Feb-09 4:25
J4amieC4-Feb-09 4:25 
JokeRe: Sql Database LookUp Pin
musefan4-Feb-09 4:29
musefan4-Feb-09 4:29 
QuestionInstalling a COM+ interoperable C# dll on machine without .Net Framework Pin
dan!sh 4-Feb-09 2:23
professional dan!sh 4-Feb-09 2:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 2:35
musefan4-Feb-09 2:35 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 3:43
professional dan!sh 4-Feb-09 3:43 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 3:50
musefan4-Feb-09 3:50 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
dan!sh 4-Feb-09 4:08
professional dan!sh 4-Feb-09 4:08 
GeneralRe: Installing a COM+ interoperable C# dll on machine without dll Pin
musefan4-Feb-09 4:23
musefan4-Feb-09 4:23 
AnswerRe: Installing a COM+ interoperable C# dll on machine without .Net Framework Pin
SeMartens4-Feb-09 3:56
SeMartens4-Feb-09 3:56 
GeneralRe: Installing a COM+ interoperable C# dll on machine without .Net Framework Pin
dan!sh 4-Feb-09 4:07
professional dan!sh 4-Feb-09 4:07 
Questionregular expressions Pin
lawrenceinba4-Feb-09 1:45
lawrenceinba4-Feb-09 1:45 

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.