This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setTicker(null) problem with MIDP on wtk 1.0.4

 
Nancy Lehrer
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the MIDP documentation, screen.setTicker(null) is supposed to remove a ticker from a screen, however when I issue this command it just causes a NullPointerException during the painting of the screen.
I am executing within Sun's WTK 1.0.4
Good news, it seems to work on the i95cl fine. I haven't tested on the i85, but that will be next.
Anyone else seen this problem?
Nancy
(stack trace)
java.lang.NullPointerException
at javax.microedition.lcdui.Screen.paint(+106)
at javax.microedition.lcdui.Display.serviceRepaints(+105)
at javax.microedition.lcdui.Display$DisplayAccessor.timerEvent(+
at com.sun.kvem.midp.lcdui.EmulEventHandler$EventLoop.run(+545)
 
john muchow
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nancy,
I believe that is a documented bug in the WTK emulator.
Give it a try with MIDP 2.0 - If you don't have it installed, send me your source code, I'll give it a try.
John Muchow
John@CoreJ2ME.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic