07-07-2010 08:01 AM
Hi
while I'm doing my first steps with Measurement Studio and C# in Visual Studio 2008 I tried to close a MDI Child with a running Daq-Task within. This throws an exception because the task has already been disposed. So how can I avoid this?
Thx, Peter
Solved! Go to Solution.
07-15-2010 04:56 AM - edited 07-15-2010 05:04 AM
Hi Peter,
sorry for the delay.
This is normal behaviour when the DAQmx-task is still running.
You have to stop/clear the task before you close the window. Mostly it's good style to work with only one UI / window.
I hope this helps.
With best regards
Ralf N.
BTW:
A good starting-point are the DAQmx-examples:
Where Can I Find NI-DAQmx Examples?
http://digital.ni.com/public.nsf/allkb/E3BAF6FC4017960B8625755A00525D37?OpenDocument
Installing Measurement Studio NI-DAQmx Examples
http://digital.ni.com/public.nsf/allkb/52F5F5EF78AF084286256E0B007FE793?OpenDocument