Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Mathematics
General TopicsResearchOperations ResearchStatisticsMathematical LogicNumerical AnalysisUndergraduate MathAlgebra HelpRecreational Math
Math Software
MapleMathematicaMATLABScilabSASSPSS

Math Forum / Math Software / MATLAB / July 2008



Tip: Looking for answers? Try searching our database.

uiresume/uiwait bug in r2007b

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John D'Errico - 31 Jul 2008 02:18 GMT
It looks like something has changed on me.

I've been shown that my selectdata code no longer runs, at least in R2007b.
I've not tested it in R2008a, although I will.

http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?
objectId=13857&objectType=FILE

It sets buttondown and buttonup functions on a figure, then does a uiwait.
The buttonup call is a nested function that does some cleanup, and then does
a uiresume. At this point the code seems to hang completely. This code
fragment previously ran with no problems:

plot(rand(5,2),rand(5,2),'o')
[pind,xs,ys] = selectdata('selectionmode','bru')

On the button up, it should return a list of any points that were brushed over
during the time the mouse button was down.

Now it just hangs. If I control-c out at this point, then it returns the proper
results. I've even run through it with the debugger to trap what happens after
the uiresume. Matlab becomes unresponsive, at least until I control-c out.

Any ideas on what has changed? I'd rather not need to have two versions up
there, one for older releases than R2007b.

Thanks,
John
Matt Fig - 31 Jul 2008 04:07 GMT
I have 2007b at work.  Tomorrow I will check and verify this
report.

I have found other bugs (or, more closely, aberrant
behaviors) in 2007b that weren't there in 2007a, maybe
someone fell asleep on the 'production line."
Matt Fig - 31 Jul 2008 04:13 GMT
I have 2007b at work.  Tomorrow I will check and verify this
report.

I have found other bugs (or, more closely, aberrant
behaviors) in 2007b that weren't there in 2007a, maybe
someone fell asleep on the 'production line."
Rodney Thomson - 31 Jul 2008 05:05 GMT
"John D'Errico" <woodchips@rochester.rr.com> wrote in
message <g6r3sa$jeu$1@fred.mathworks.com>...
> It looks like something has changed on me.
>
[quoted text clipped - 5 lines]
> Thanks,
> John

John, firstly, that is a fantastic function. Big thumbs up.
Particularly the lasso. Makes my dodgy rubber band selection
look rather sad!

I'm using 2008a and had no problems running the following
code and selecting a region:

figure; plot(1:10, '.')
[pind,xs,ys] = selectdata('selectionmode','lasso')

Rod
Titus - 31 Jul 2008 09:41 GMT
> It looks like something has changed on me.
>
[quoted text clipped - 29 lines]
> Thanks,
> John

Hi John,

strange: I've run your program (very nice indeed!) both on R2007b and R2008a
but could not reproduce your problem (on Windows XP)...

Titus
John D'Errico - 31 Jul 2008 14:50 GMT
"Titus" <titus.edelhofer@mathworks.de> wrote in message
<g6rtrj$9e4$1@fred.mathworks.com>...

> > It looks like something has changed on me.
> >
[quoted text clipped - 34 lines]
> strange: I've run your program (very nice indeed!) both on R2007b and R2008a
> but could not reproduce your problem (on Windows XP)...

Titus, Rod,

Thanks. I'm glad you like it. I'm puzzled, since
the person who found the problem is running
Windows XP, SP3.

He had a coworker test it on R2008a, and it
works fine. And obviously, it worked fine for
me in the older release that I wrote it in.

John
Matt Fig - 31 Jul 2008 22:43 GMT
The tool works fine on my win-xp 64-bit with 2007b.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2010 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.