LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DisplayPanel cause Program to halt

HI,
I'm using TS 3.0 + CVI 7.0. I'm running a program that have only FileLoadSequence and FileUnloadSequence.

In the FileLoadSequence I load a panle into memory and save the handle in TS StationGlobal veriable. Then I call a function in a different dll that turn on some LEDs on the panel. That function gets the panel handle from the TS global.

In the FileUNloadSequnce I, again, call the other dll and this time turn off the LEDs.

THE PROBLEM: The first time I load the sequence and then unload it -- everything is fine. Then I load the same sequence again and all the LEDs are ON again. When I unload the sequence the program halts (forzen) upon the first time it sees the DisplayPanel command.

I'm using the debugger and verif
ies that the panel handle is not 0. Anyway, I don't get any system error.

ANy idea?

Thanks
Rafi
0 Kudos
Message 1 of 2
(2,853 Views)
Hi Rafi,

Are you calling DiscardPanel() when you call the other DLL in the SequenceileUnload callback sequence?

David Mc.
NI Applications Engineer
0 Kudos
Message 2 of 2
(2,853 Views)