我已经编码以从用户那里获取信息并发送点击按钮的电子邮件。程序正在执行一段时间,然后模拟器崩溃显示错误
“DE427” - 消息队列已满...这是我所做的代码......
if(field==SendMail)
{
Message m = new Message();
Address a = null;
try {
a = new Address("user@xyz.com", "Rahul");
} catch (AddressException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Address[] addresses = {a};
try {
m.addRecipients(net.rim.blackberry.api.mail.Message.RecipientType.TO, addresses);
m.setContent("Name:"+Name.getText().toString()+"\n"+ "Phone :"+Phone.getText().toString()+
"\n"+ "Date & Time:"+DateShow.getText().toString()+"\n"+"Make:"+Make.getText().toString()+
"\n"+"Model:"+Model.getText().toString()+"\n"+"Miles:"+Miles.getText().toString()+"\n");
m.setSubject("Appointment Request (Via Blackberry app)");
} catch (MessagingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(m));
}
任何人都可以告诉我错误是什么以及如何纠正问题.... Plz ......
答案 0 :(得分:1)
某些版本的Windows XP和Blackberry模拟器版本似乎存在问题。请检查此链接http://supportforums.blackberry.com/t5/Testing-and-Deployment/Simulator-quot-device-Error-DE427-quot/m-p/556321
如果您清理模拟器(从模拟器目录中删除.dmp文件)并重新启动模拟器它可以正常工作