Hello everyone,<div>I wrote two classes that inherit from the Mainwindow class, one is a dialog that asks for your input and one is a plain old messagebox.</div><div>you can check out the input class here, I think thats the one with the problem: <a href="http://dl.dropbox.com/u/15024434/InputBox.d">http://dl.dropbox.com/u/15024434/InputBox.d</a></div>
<div>or read the method most likely containing the error:</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>void onclicked(Button button){</div><div><span class="Apple-tab-span" style="white-space:pre">               </span>*answer=input.getText();</div>
<div><span class="Apple-tab-span" style="white-space:pre">              </span>destroy();</div><div><span class="Apple-tab-span" style="white-space:pre">           </span>Main.quit();</div><div><span class="Apple-tab-span" style="white-space:pre">         </span></div>
<div><span class="Apple-tab-span" style="white-space:pre">      </span>}</div></div><div><br></div><div>Then I have a main class where I create an inputbox and do Main.run(), then when the user closes the window or presses ok everything after the first main.run gets runned and that displays a messagebox that depends on what the user entered followed by another Main.run();</div>
<div><br></div><div>The problem is that when you press ok to close the first input window and then close the next messagebox the program keeps running in memory. Everything after the second Main.run never gets executed. When you however close the first window using the close button and then close the next messagebox the program terminates correctly.</div>
<div>I'm assuming I don't completely destroy the inputbox in the onclicked method?</div><div><br></div><div>If what I gave you is not enough I can give you the links to all the files. Note that these classes are simply me learning gtkd and the d language in general. If you see me doing something "dirty" or bad please tell me so I learn a bit from my mistakes :)</div>
<div><br></div><div>Maarten</div>