Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: More Button crashes
Replies: 1   Last Post: Oct 19, 2012 2:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Daniel Warren

Posts: 144
Registered: 5/16/07
More Button crashes
Posted: Oct 18, 2012 3:08 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

All,
Yesterday I posted an intermittent problem I was having related to Button use. I have now found another Button problem that is repeatable. I was not looking for it; it found me.

<<<--- Warning --->>>
This example can crash your kernel or front end. If you run this code, save all your work, exit all kernels and front ends and start a new, isolated front end and kernel.

I have tested this on two different machines and operating systems, OSX and Windows.

Evaluating the PutUpDialog[] function on its own has the expected behavior. Evaluating the same function as a result of pushing the button, however, has ugly results.

--- snip ---
PutUpDialog[] := Module[{ret},
ret = DialogInput[{Row[{DefaultButton[DialogReturn[True]],
CancelButton[DialogReturn[False]]}]}]; If[ret, "Hi", "Bye"]]

PutUpDialog[]

Button["Dialog Box", PutUpDialog[]]



Date Subject Author
10/18/12
Read More Button crashes
Daniel Warren
10/19/12
Read More Button crashes
Daniel Warren

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.