LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

a confused problem in panel event process

Hello,
Attach an application , which is coded in CVI 6. the problem is when click the "quit" button , it can not quit directly ,but also go into the "start" event ,even if I do not click this button .you can place a breakpoint in the line of 233 , after run , you click the quit button , you can see the problem . Please give a help . Thanks .

David
0 Kudos
Message 1 of 3
(2,933 Views)
David,

This is quite strange behaviour, it seems that the callbacks are calling each other.

I would suggest to configure the callbacks in the UIR instead of doing it programmatically.

InstallCtrlCallbac is used when creating the complete UI programmatically. When you mix the callbacks from the UI and the callback intalled programmatically you could have some problems with the event handling. If you want your code to depend less on the UIR file you can use the UIR to code converter utility. By doing this it will also makes things simpler by keeping all the callbacks in one file.


I'll take a closer look to the code to see if I can spot what is happening with the callbacks, but in the mean time I hope this advices are usefull.

Regards,

Juan Carlos

N.I.
0 Kudos
Message 2 of 3
(2,933 Views)
Thank you Juan .I am also debugging it .

David
0 Kudos
Message 3 of 3
(2,933 Views)