Quantcast
Channel: CSharp Forum Latest Questions
Viewing all articles
Browse latest Browse all 32058

Serial Comms, Board Replies Can be seen with Hyper Terminal do not always appear in program

$
0
0

Hi All,

I am having trouble getting replies to appear on my Form.  I am getting them but I seem to be having an issue with the form Marshalling.  I tried one exapmle of it this morning and got no results the code I was using was 

internalstaticForm1 myForm1;

privatedelegatevoidAccessFormMarshalDelegate(string textToDisplay);


privatevoid AccessForm(string textToDisplay)

{

   rtbIdeaDisplay.AppendText(textToDisplay);

}

internalvoid AccessFormMarshall(string textToDisplay)

{

object[] args = { textToDisplay };

AccessFormMarshalDelegate AccessFormMarshalDelegate1 = null;

AccessFormMarshalDelegate1 = new AccessFormMarshalDelegate(AccessForm); base.Invoke(AccessFormMarshalDelegate1, args);

}

Can any one give me a simple pointer on how best to use Marshalling as I am getting the data at the port but can't display it.

Thanks Glenn


 


Viewing all articles
Browse latest Browse all 32058

Trending Articles