Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
GeneralCould you... Pin
KORCARI5-Aug-05 18:44
KORCARI5-Aug-05 18:44 
GeneralRe: Could you... Pin
tatchung5-Aug-05 21:12
tatchung5-Aug-05 21:12 
QuestionCan't convert to Format8bppIndexed with LockBits, Why? Pin
s2l5-Aug-05 14:07
s2l5-Aug-05 14:07 
GeneralCombobox in listview Pin
Rob Tomson5-Aug-05 13:54
Rob Tomson5-Aug-05 13:54 
GeneralBindingManagerBase, Datagrid, Sort Problem Pin
Lash205-Aug-05 12:04
Lash205-Aug-05 12:04 
GeneralRe: BindingManagerBase, Datagrid, Sort Problem Pin
Ming Luo5-Aug-05 23:38
Ming Luo5-Aug-05 23:38 
GeneralRe: BindingManagerBase, Datagrid, Sort Problem Pin
Lash209-Aug-05 7:56
Lash209-Aug-05 7:56 
GeneralOnly allow one call to a function at a time Pin
Dwayner795-Aug-05 10:32
Dwayner795-Aug-05 10:32 
I have two controls each of which have loops (we will call loop 1 and loop 2) that call a central function that sends and gets data via serial (we will call Communication function). Only one loop is to run at a time. The problem I am having is when the user requests loop 2 while loop 1 just started. Loop 2 alerts loop 1 to stop, but if loop 1 just started, it will still be calling the communication function until it finishes.

I hope this is makeing sense...

Meanwhile, loop 2 has started calling communication function as well and I am getting overlap. I cannot simple set a bit and exit the loop at the end. (It is a big program so you will just have to trust me.)

Is there a way to cache the values needed to be sent to the communications function?

Is there a clean way to exit a loop without it finishing?

Should I be focussing on trying to make the two (in reality 10) different loops NEVER call until all other loops are inactive, or should I be trying to make the communication function able to handle multiple calls?

Thanks in advance for your thoughts.






*****************
"We need to apply 21st-century information technology to the health care field. We need to have our medical records put on the I.T." —GW
GeneralRe: Only allow one call to a function at a time Pin
Peter Vertes5-Aug-05 10:52
Peter Vertes5-Aug-05 10:52 
GeneralRe: Only allow one call to a function at a time Pin
Dwayner795-Aug-05 11:01
Dwayner795-Aug-05 11:01 
GeneralRe: Only allow one call to a function at a time Pin
Peter Vertes5-Aug-05 11:06
Peter Vertes5-Aug-05 11:06 
GeneralRe: Only allow one call to a function at a time Pin
jan larsen8-Aug-05 22:00
jan larsen8-Aug-05 22:00 
GeneralAnimated Gif Pin
nc3b5-Aug-05 10:17
nc3b5-Aug-05 10:17 
GeneralGetting Values Out from a CheckedListBox Pin
Peter Vertes5-Aug-05 9:46
Peter Vertes5-Aug-05 9:46 
GeneralRe: Getting Values Out from a CheckedListBox Pin
Mohamad Al Husseiny5-Aug-05 22:10
Mohamad Al Husseiny5-Aug-05 22:10 
GeneralIrDA communication pocket/palm Pin
wiler5-Aug-05 9:28
wiler5-Aug-05 9:28 
GeneralInvalidating an ActiveX Browser Control to allow Painting... Pin
rcurrie5-Aug-05 7:28
rcurrie5-Aug-05 7:28 
GeneralC# and VTK Pin
patgo5-Aug-05 5:39
patgo5-Aug-05 5:39 
GeneralRe: C# and VTK Pin
ganeshraju22-Jun-10 14:38
ganeshraju22-Jun-10 14:38 
GeneralRe: C# and VTK Pin
patgo22-Jun-10 23:37
patgo22-Jun-10 23:37 
GeneralRe: C# and VTK Pin
macengineer11-Jun-12 21:25
macengineer11-Jun-12 21:25 
Generalcrystal reports Pin
magnifique5-Aug-05 5:14
magnifique5-Aug-05 5:14 
GeneralImplementing password rules Pin
Adam °Wimsatt5-Aug-05 4:56
Adam °Wimsatt5-Aug-05 4:56 
GeneralRe: Implementing password rules Pin
Alomgir Miah5-Aug-05 5:22
Alomgir Miah5-Aug-05 5:22 
GeneralRe: Implementing password rules Pin
Adam °Wimsatt5-Aug-05 5:28
Adam °Wimsatt5-Aug-05 5:28 

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.