does the program crash every time, or just some times - this should crash every time.
Pardon me - this should not even compile!
I see you use 'ui' variable, yet you access GUI elements (which are not declered in the scope of your class) directly.
?? I've got Dialog class which inherits ui:ialog, where are those declarations! And the function where are they used is part of this class!
Bookmarks