LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Crash when debugging under CVI 5.5 and initialized DAQ board

Hi,

I have experienced that if I terminate a program with Ctrl+F12 (from the
source window), and later on restart the same application (run) the PC
crashes.
If I compile, run, terminate, restart the same project under CVI 5.0.
Everything works OK !!!
I am working with a 6602 card, and the fault only happends if I have been
"talking" to the daq board.

Has anyone seen the same ? and/or can anyone give me a hint or an advise.


Thanks

Finn Olesen
0 Kudos
Message 1 of 4
(3,239 Views)
Hi Finn

Finn Falentin Olesen schrieb in im Newsbeitrag:
3a7fdf7a@newsgroups.ni.com...
> Hi,
>
> I have experienced that if I terminate a program with Ctrl+F12 (from the
> source window), and later on restart the same application (run) the PC
> crashes.
> If I compile, run, terminate, restart the same project under CVI 5.0.
> Everything works OK !!!
> I am working with a 6602 card, and the fault only happends if I have been
> "talking" to the daq board.
>
> Has anyone seen the same ? and/or can anyone give me a hint or an advise.
>
Yes, I have exactly the same effect here. Windows 98 hangs completly, when a
program is terminated in the CVI debugger and when the program uses any
NIDAQ call.
I allways thought (until now) that this was a problem wit
h my multi
threading, although I did not find an error...

Stephan
0 Kudos
Message 2 of 4
(3,239 Views)
Hi Finn,
Yes, I have seen the same thing. I don't have a solution, but I do
have a work around. Bring up the function panel for DAQ_Clear()
and run the function. This will let you restart your program without
crashing. Of course, you will probably not be able to continue
execution.

You might try calling DAQ_Clear() at the start of your program.

Hope this helps.
Regards,
Reed.

//----------------------------------------------------------
Reed Blake
Beta Technology
Industrial and Scientific Computing

Finn Falentin Olesen wrote in message <3a7fdf7a@newsgroups.ni.com>...
>Hi,
>
>I have experienced that if I terminate a program with Ctrl+F12 (from the
>source window), and later on restart the same application (run) the PC
>crashes.
>If I compile, run, terminate, restart
the same project under CVI 5.0.
>Everything works OK !!!
>I am working with a 6602 card, and the fault only happends if I have been
>"talking" to the daq board.
>
>Has anyone seen the same ? and/or can anyone give me a hint or an advise.
>
>
>Thanks
>
>Finn Olesen
>
0 Kudos
Message 3 of 4
(3,239 Views)
Hi,

I have exactly the same problem as you. Each time i stop my program with CTRL+F12 after a call to a NI-DAQ function and i try to start a new execution, Windows 95 (or 98) crashes.

I find no soultion to this problem.

Do you find one ?

Thanks.
0 Kudos
Message 4 of 4
(3,239 Views)