Click here to Skip to main content
15,886,810 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exposing the running assembly to run-time compiled code Pin
Wayne Gaylard27-Mar-11 21:16
professionalWayne Gaylard27-Mar-11 21:16 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
Quiltfish27-Mar-11 23:36
Quiltfish27-Mar-11 23:36 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
Wayne Gaylard27-Mar-11 23:55
professionalWayne Gaylard27-Mar-11 23:55 
AnswerRe: Exposing the running assembly to run-time compiled code Pin
_Erik_28-Mar-11 4:17
_Erik_28-Mar-11 4:17 
GeneralRe: Exposing the running assembly to run-time compiled code [modified] Pin
Quiltfish28-Mar-11 22:28
Quiltfish28-Mar-11 22:28 
GeneralRe: Exposing the running assembly to run-time compiled code Pin
BobJanova30-Mar-11 23:53
BobJanova30-Mar-11 23:53 
Questionproblem with sending message to serial port with timer [modified] Pin
Honeyboy_2027-Mar-11 8:36
Honeyboy_2027-Mar-11 8:36 
AnswerRe: problem with sending message to serial port with timer Pin
Luc Pattyn27-Mar-11 9:11
sitebuilderLuc Pattyn27-Mar-11 9:11 
Hi,

that is pretty confusing. Here are some ideas:

1.
please show your code inside PRE tags, not CODE tags. That will preserve formatting and indentation, making things much more readable.

2.
also show the declarations of the variables you are using.

3.
it looks as if each item in the array list is a string array, with some specific values at specific locations. That is not so good. You should define your own type (class or struct) and store instances thereof inside your collection; the collection could better be a generic list, ArrayList is archaic and has no advantage over a generic list.

4.
I am surprised you seem to have a "ConnectToSerialPort" inside a loop. I doubt that is correct.

5.
This is what I would do:
- keep the messages to be sent (each as an instance of some Message class) inside a generic list, which is ordered by increasing due datetime.
- have a timer ticking at an appropriate interval (e.g. 1 second), then checking the current time with the time of the first entry in the list; if current time greater equal due time, remove message from list and send it.
This means the tick method would never wait, and that is how it should be: event handlers should never wait, since they would immobilize the GUI while they wait.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.

GeneralRe: problem with sending message to serial port with timer Pin
Honeyboy_2027-Mar-11 12:39
Honeyboy_2027-Mar-11 12:39 
AnswerRe: problem with sending message to serial port with timer [modified] Pin
Luc Pattyn27-Mar-11 12:54
sitebuilderLuc Pattyn27-Mar-11 12:54 
Questionrun project in network Pin
jojoba201127-Mar-11 6:34
jojoba201127-Mar-11 6:34 
AnswerRe: run project in network Pin
Dalek Dave27-Mar-11 6:47
professionalDalek Dave27-Mar-11 6:47 
GeneralRe: run project in network Pin
jojoba201127-Mar-11 6:53
jojoba201127-Mar-11 6:53 
GeneralRe: run project in network Pin
Dalek Dave27-Mar-11 7:06
professionalDalek Dave27-Mar-11 7:06 
GeneralRe: run project in network Pin
Dave Kreskowiak27-Mar-11 7:50
mveDave Kreskowiak27-Mar-11 7:50 
GeneralRe: run project in network Pin
Ganesh Kumar Kaki13-Apr-11 2:42
Ganesh Kumar Kaki13-Apr-11 2:42 
GeneralRe: run project in network Pin
Dave Kreskowiak13-Apr-11 6:28
mveDave Kreskowiak13-Apr-11 6:28 
GeneralRe: run project in network Pin
Luc Pattyn27-Mar-11 9:16
sitebuilderLuc Pattyn27-Mar-11 9:16 
AnswerRe: run project in network Pin
Richard MacCutchan27-Mar-11 7:04
mveRichard MacCutchan27-Mar-11 7:04 
GeneralRe: run project in network Pin
Dalek Dave27-Mar-11 7:06
professionalDalek Dave27-Mar-11 7:06 
AnswerRe: run project in network Pin
dan!sh 27-Mar-11 8:13
professional dan!sh 27-Mar-11 8:13 
AnswerRe: run project in network Pin
Luc Pattyn27-Mar-11 9:15
sitebuilderLuc Pattyn27-Mar-11 9:15 
AnswerRe: run project in network Pin
Аslam Iqbal27-Mar-11 10:18
professionalАslam Iqbal27-Mar-11 10:18 
GeneralRe: run project in network Pin
jojoba201128-Mar-11 1:50
jojoba201128-Mar-11 1:50 
AnswerRe: run project in network Pin
Shameel28-Mar-11 5:40
professionalShameel28-Mar-11 5:40 

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.