Glenn Patton

Glenn Patton

  • NA
  • 308
  • 81.2k

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

Dec 18 2012 11:42 AM

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 

internal static Form1 myForm1;

private delegate void AccessFormMarshalDelegate(string textToDisplay);


private void AccessForm(string textToDisplay)

{

   rtbIdeaDisplay.AppendText(textToDisplay);

}

internal void 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