Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

I have those few lines of code causing a crash and I can't figure out why:

DynamicModule[{openNothing},
 EventHandler[
  Panel@Row@{
     Button["Built In Funct", openNothing[]]}, {}],

 Initialization :> (openNothing[] := (Input["bla", 1];))]

Mathematica freezes for a few seconds and then says:

The kernel is not responding to a Dynamic Evaluation. [...]

WARNING: It did make Mathematica not responding at all. After the force quit the list of the recently opened notebooks were removed (I assume that the ~/.Mathematica/FrontEnd/init.m has been removed.)

I'm on Fedora 19, Mathematica 8.0.4. The same issue has been noticed under Windows 7, Mathematica 9.

share|improve this question

marked as duplicate by Kuba, bbgodfrey, Karsten 7., belisarius, ciao Apr 1 at 23:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

up vote 3 down vote accepted

Try this

DynamicModule[{openNothing}, 
 Dynamic@Panel@
   Row@{Button["Built In Funct", openNothing[], Method -> "Queued"]}, 
 Initialization :> (openNothing[] := (Input["bla", 1];))]
share|improve this answer
1  
Read the docs on the "Queued" Method. Also you dont realky need EventHandler. –  Rolf Mertig Oct 2 '13 at 18:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.