Click here to Skip to main content
15,895,656 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to manipulate the displaying of the "From" email address Pin
JohnTheDuke28-Jun-07 10:03
JohnTheDuke28-Jun-07 10:03 
QuestionAllocConsole and Console Pin
CiNN28-Jun-07 5:57
CiNN28-Jun-07 5:57 
AnswerRe: AllocConsole and Console Pin
led mike28-Jun-07 6:26
led mike28-Jun-07 6:26 
GeneralRe: AllocConsole and Console Pin
CiNN28-Jun-07 6:31
CiNN28-Jun-07 6:31 
Questionicon Pin
HexaDeveloper28-Jun-07 5:55
HexaDeveloper28-Jun-07 5:55 
AnswerRe: icon Pin
Luc Pattyn28-Jun-07 6:05
sitebuilderLuc Pattyn28-Jun-07 6:05 
AnswerRe: icon Pin
Giorgi Dalakishvili28-Jun-07 6:14
mentorGiorgi Dalakishvili28-Jun-07 6:14 
QuestionThroughput/Design Problem Pin
tobriain28-Jun-07 5:05
tobriain28-Jun-07 5:05 
Hello,

I hope one of you have found a solution to the following problem before. . . Thanks in advance if you have.

I have to implement an interface defined in an external program - I must have a method Notify() in my object

toimplement that interface. When there's an update, the Notify() method is called by the external program. I can

then collect any updates with a method call that returns a System.Array consisting of an ID (given by me when

implementing the connection), and a value.

The problem is that the array that I collect updates from is of fixed size (subsequent updates are not added to

the end of the array like a queue. . ), so sometimes by the time I've collected the update, set a member variable

in another object to the value (m_Object.SomeValue) and returned to respond to any subsequent Notify() calls, the

updates have been overwritten and I've missed some updates. . . Not great. I've removed any calculations I was

doing in these Set() methods, but it still doesn't return in time. .

This is a sample of my set-up:

ManualResetEvent m_NotifyEvent;
Thread m_UpdateThread;
. . . .
m_NotifyEVent = new ManualResetEvent(false);
m_UpdateTHread = new THread(new ThreadStart(RTDUpdates));
m_UpdateThread.Start();
... . .. .

private void RTDUpdates()
{
m_NotifyEVent.WaitONe();

System.Array arrValues = m_RTDServer.RefreshData();
if(arrValues > 0)
{
for (int i =0; i
AnswerRe: Throughput/Design Problem Pin
Pete O'Hanlon28-Jun-07 5:11
mvePete O'Hanlon28-Jun-07 5:11 
AnswerRe: Throughput/Design Problem Pin
led mike28-Jun-07 5:14
led mike28-Jun-07 5:14 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 5:37
tobriain28-Jun-07 5:37 
GeneralRe: Throughput/Design Problem Pin
led mike28-Jun-07 6:25
led mike28-Jun-07 6:25 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 6:41
tobriain28-Jun-07 6:41 
GeneralRe: Throughput/Design Problem Pin
pbraun28-Jun-07 11:26
pbraun28-Jun-07 11:26 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 11:34
tobriain28-Jun-07 11:34 
GeneralRe: Throughput/Design Problem Pin
tobriain2-Jul-07 9:36
tobriain2-Jul-07 9:36 
GeneralRe: Throughput/Design Problem Pin
pbraun3-Jul-07 5:48
pbraun3-Jul-07 5:48 
GeneralRe: Throughput/Design Problem Pin
tobriain28-Jun-07 6:43
tobriain28-Jun-07 6:43 
GeneralRe: Throughput/Design Problem Pin
led mike28-Jun-07 7:00
led mike28-Jun-07 7:00 
Questionthe underscore character in front of a variable Pin
brsecu28-Jun-07 4:54
brsecu28-Jun-07 4:54 
AnswerRe: the underscore character in front of a variable Pin
Luc Pattyn28-Jun-07 4:56
sitebuilderLuc Pattyn28-Jun-07 4:56 
JokeRe: the underscore character in front of a variable Pin
CPallini28-Jun-07 5:14
mveCPallini28-Jun-07 5:14 
QuestionFileSystem based Collection (Queue) Pin
BaraMustafa28-Jun-07 4:53
BaraMustafa28-Jun-07 4:53 
AnswerRe: FileSystem based Collection (Queue) Pin
DanB198328-Jun-07 11:23
DanB198328-Jun-07 11:23 
AnswerRe: FileSystem based Collection (Queue) Pin
pbraun28-Jun-07 11:47
pbraun28-Jun-07 11:47 

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.