Click here to Skip to main content
15,919,931 members
Home / Discussions / C#
   

C#

 
Questionpoint to a class name with a string from xml Pin
Ariadne30-Dec-06 12:51
Ariadne30-Dec-06 12:51 
AnswerRe: point to a class name with a string from xml Pin
Phillip M. Hoff30-Dec-06 16:22
Phillip M. Hoff30-Dec-06 16:22 
AnswerIm sorry but Pin
Ennis Ray Lynch, Jr.30-Dec-06 17:36
Ennis Ray Lynch, Jr.30-Dec-06 17:36 
QuestionHow to read data from COM port (want to get remote to work) Pin
daniilzol30-Dec-06 10:48
daniilzol30-Dec-06 10:48 
AnswerRe: How to read data from COM port (want to get remote to work) Pin
Dave Kreskowiak30-Dec-06 11:29
mveDave Kreskowiak30-Dec-06 11:29 
GeneralRe: How to read data from COM port (want to get remote to work) [modified] Pin
daniilzol30-Dec-06 11:46
daniilzol30-Dec-06 11:46 
GeneralRe: How to read data from COM port (want to get remote to work) Pin
gnadeem30-Dec-06 13:29
gnadeem30-Dec-06 13:29 
GeneralRe: How to read data from COM port (want to get remote to work) Pin
daniilzol30-Dec-06 14:54
daniilzol30-Dec-06 14:54 
Yes, I've read this webpage already (that's what VS IDE advised to read when it displayed the error). I don't multithread for now and I don't think I will (doesn't make sense in an app like this, although it may change later). For now all I have is one main form frmMain, I create SerialPort object on the main form, I attach DataReceived event to the SerialPort object and let it be.

Basically something like this:

m_SerialPort = new SerialPort("COM1",2400,Parity.None,8,StopBits.One);
m_SerialPort.DtrEnable = true;
m_SerialPort.RtsEnable = true;
m_SerialPort.Open();

m_SerialPort.DataReceived += new SerialDataReceivedEventHandler(m_SerialPort_DataReceived);

void m_SerialPort_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
    txtInput.Text += " " + m_SerialPort.ReadExisting();
}


Funny, I only see this error when running application from VS IDE. If I run executable from release folder it runs just fine, no error thrown or nothing. This may sound dumb, but this is the first time I see an error like this when I simply access textbox from an event. Am I missing something here, have I been doing something fundamentally wrong for the past three years? And why do I only see this error when running IDE, not executable?
GeneralRe: How to read data from COM port (want to get remote to work) [modified] Pin
Luc Pattyn30-Dec-06 16:11
sitebuilderLuc Pattyn30-Dec-06 16:11 
GeneralRe: How to read data from COM port (want to get remote to work) Pin
daniilzol31-Dec-06 8:13
daniilzol31-Dec-06 8:13 
QuestionSocket IO interaction with UI Message pump Question? Pin
Member 288953130-Dec-06 10:43
Member 288953130-Dec-06 10:43 
AnswerRe: Socket IO interaction with UI Message pump Question? Pin
Phillip M. Hoff30-Dec-06 17:00
Phillip M. Hoff30-Dec-06 17:00 
Questionproblem for set RememberMe CheckBox in ASP.net Login Control. Pin
hdv21230-Dec-06 10:04
hdv21230-Dec-06 10:04 
AnswerRe: problem for set RememberMe CheckBox in ASP.net Login Control. Pin
Brad Bruce30-Dec-06 10:59
Brad Bruce30-Dec-06 10:59 
QuestionGUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 8:09
namedalias530-Dec-06 8:09 
AnswerRe: GUI for remote reboots using Shutdown command Pin
Luc Pattyn30-Dec-06 8:54
sitebuilderLuc Pattyn30-Dec-06 8:54 
GeneralRe: GUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 9:02
namedalias530-Dec-06 9:02 
GeneralRe: GUI for remote reboots using Shutdown command Pin
Luc Pattyn30-Dec-06 9:25
sitebuilderLuc Pattyn30-Dec-06 9:25 
GeneralRe: GUI for remote reboots using Shutdown command Pin
namedalias530-Dec-06 9:29
namedalias530-Dec-06 9:29 
QuestionFolder Protection.. Pin
kkadir30-Dec-06 8:01
kkadir30-Dec-06 8:01 
AnswerRe: Folder Protection.. Pin
Luc Pattyn30-Dec-06 8:56
sitebuilderLuc Pattyn30-Dec-06 8:56 
AnswerRe: Folder Protection.. Pin
Ami Bar30-Dec-06 10:28
Ami Bar30-Dec-06 10:28 
GeneralRe: Folder Protection.. Pin
kkadir30-Dec-06 11:39
kkadir30-Dec-06 11:39 
GeneralRe: Folder Protection.. Pin
Dave Kreskowiak30-Dec-06 17:08
mveDave Kreskowiak30-Dec-06 17:08 
AnswerKind of Pin
Ennis Ray Lynch, Jr.30-Dec-06 17:38
Ennis Ray Lynch, Jr.30-Dec-06 17:38 

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.