0

我在 Eclipse 中使用 bb 插件工作,问题是当我点击我的应用程序时,模拟器会冻结,我什么也做不了。我试图做某事,但它仍然是一样的

而且我的应用程序还有一个后台组件(线程),在这里我在调用该方法时留下了代码

应用程序有一个背景组件

公共无效回调(最终服务结果结果){

    if(result.getException()!=null){
        UiApplication.getUiApplication().invokeLater(new Runnable(){
            public void run() {
                Dialog.alert("error:"+ result.getException().getMessage());
            }
        });
        return;
    }
    this.section = (Vector) result.getData() ;
    // take first element of Result Object
    final Section section = (Section) this.section.elementAt(0);

    UiApplication.getUiApplication().invokeLater(new Runnable(){
        public void run() {
            pushScreen(new SubsectionScreen(section, 0));
        }
    });


}

这是日志的一部分

Starting faix
faix already running
Foreground faix(180)
Detected background switch for net_rim_bb_ribbon_app(58) who has NO tunnels open - defocus NOT called
Detected foreground switch for faix(180) who has NO tunnels open - focus NOT called
JVM: bklt @63289: timer
JVM: bklt[1] @63289: idle 2
JVM: bklt @63289: setTimer 13
VM:+GC(f)w=11
VM:-GCt=7,b=1,r=0,g=f,w=11
VM:QUOT t=1
VM:+CR
VM:-CR=2
JVM: bklt @76687: timer
JVM: bklt[1] @76687: idle 15
JVM: bklt @76687: setTimer 15
JPGENC 39 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms
JPGENC 0 ms
JPGENC 7 ms
JPGENC 0 ms

请任何建议。谢谢你接受这个问题。

4

1 回答 1

3

尝试在新插件上清理模拟器(在 Eclipse 中):Project > Blackberry > Clean Simulator,选择所有包并单击清理。

这帮助我解决了这个问题。

此外,当您在设备上进行调试时,在调试会话之后,我必须在从 Eclipse 启动另一个调试会话之前手动(使用设备)从设备上卸载部署的应用程序......我知道,这很痛苦,但它的方式它对我有用。

干杯!

于 2011-01-04T16:59:50.203 回答