LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Message Popup will not close

Solved!
Go to solution

Running LabWindows/CVi 2013 SP1.

 

I have a Message Popup window that will not close when the "OK" button is clicked.

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 1 of 5
(4,294 Views)

Maybe it is closed but there is a loop which displays the popup over and over again?

 

Might that be the case? 😉

S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 5
(4,288 Views)

Hi Eren,

 

Thank you for your response. I do not have the function call that calls the Message Popup in a loop. Nor do I have the function call to the Message Popup in a loop. I do, however call the calling function from a panel callback under "EVENT_GOT_FOCUS". Will that cause the same issue as if I had put the call in a loop?

 

John

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 3 of 5
(4,284 Views)
Solution
Accepted by topic author johnoc

It certainly will !
Imagine, every time your panel gets focus (becomes the active panel) the callback fires, and it calls the function that displays the popup.
When popup is active, your panel loses focus. When you click OK to close the popup your panel gets the focus again and this fires the callback and displays the popup back..
This "loop" goes on and on.

You can see that your MessagePopup function returns and called back again if you place 2 breakpoints: one right before and one after the MessagePopup(...) line.

S. Eren BALCI
IMESTEK
Message 4 of 5
(4,279 Views)

Thanks Eren!

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 5 of 5
(4,273 Views)