Matlab - I stuck with a sand-clock after the opened window have been shut down.

I wrote an application with Matlab that opens a window, display things, and wait the user to press some push-buttons, as a result of one push-button the application than opens a new window
something like :

h = newApp(Data) ;
waitfor(h) ;
% new display new things, and wait for more push-buttons...

when I open the newApp window, the cursor is looking like a sand-clock while inside the oldApp window, but it stays as sand-clock and does not changed back to arrow when I close the newApp window.

can any one help me with that one ?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

The cursor doesn't automatically change to an hourglass when you open a new matlab window, so you should be able to identify some code somewhere that is specifically changing your cursor, and then find out why it is not getting changed back on window close.

Failing this, if you post sufficient m-code to replicate your problem, I'll find the answer for you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
zultiAuthor Commented:
I'll be at work on Sunday, check it, and if I'll fail I'll post some code...

zultiAuthor Commented:
Hi gordon
I rechecked the code I've called, and found the following command
oldFigure = watchon ;

I couldn't find any help on that command.

I've used watchoff, after closing the new figure, and the hourglass cursor was back to the regular pointer.

Thanks again
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Math / Science

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.