05-06-2008 08:11 AM
05-07-2008 06:39 AM
hi,
i want to do the following but i get an exception (see attachment). What am I doing wrong?
private
void startButton_Click(object sender, System.EventArgs e){
measureTask = new Task(); CIChannel channelIn = measureTask.CIChannels.CreateCountEdgesChannel(counterComboBox.Text, "Count Edges", edgeType, Convert.ToInt64(initialCountTextBox.Text), countDirection);measureTask.CounterOutput +=
new CounterOutputEventHandler(OutputMethod);myCounterReader =
new CounterReader(measureTask.Stream);measureTask.Start();
}
private void OutputMethod(object a, CounterOutputEventArgs e)
{
//do something
}
05-08-2008 05:01 AM