A crash in simulator and device but no console log

Former Member
Former Member
Hey
Whenever i switch to a new view ( Ui.switchToView) my device crashes, and in the eclipse simulator it's not responding any more and i have to do a force quit , the console log doesn't say that there is a problem or even a crash.
My question is how can i log the crash? what can i do to recognize what causes the crash?
Thank you in advance!
  • When you call Ui.switchToView() what is the type of the view parameter? I'm betting that it is not a Ui.View, or some type extending Ui.View. You must use pushView() with Ui.Menu, Ui.NumberPicker, Ui.TextPicker, Ui.Conformation, and possibly other types.
  • Former Member
    Former Member over 10 years ago
    I have a class that extends Ui.View and i am using Ui.switchToView to a view that also extends Ui.View
    its weird i got it working in the simulator now but not on the device.. weird..
  • The only thing I can suggest is to insert a bunch of Sys.println() calls in your code so you can figure out approximately where the problem occurs. Just keep whittling down until you find the line that causes the problem.