黑莓手机消息队列已满错误

发布于 2024-09-01 13:25:56 字数 1434 浏览 3 评论 0原文

我已编码以从用户那里获取信息并发送单击按钮的电子邮件。程序执行了一段时间,然后模拟器崩溃,显示错误

“DE427”-消息队列已满...这是我所做的代码...

if(field==SendMail)

{

            Message m = new Message();
            Address a = null;

            try {

                a = new Address("[email protected]", "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));

        }

谁能告诉我错误是什么以及如何纠正问题....请...

I have coded to get the info from the user and send an email of clicking a button. The program is getting executed for a while and then the simulator is crashing showing error

"DE427"-Message queue full... Here's the code that i have done...

if(field==SendMail)

{

            Message m = new Message();
            Address a = null;

            try {

                a = new Address("[email protected]", "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));

        }

Can anyone tell me what the error is and how to rectify the problem....Plz...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烦人精 2024-09-08 13:25:56

某些版本的 Windows XP 和 Blackberry 模拟器版本似乎存在问题。检查此链接 http ://supportforums.blackberry.com/t5/Testing-and-Deployment/Simulator-quot-device-Error-DE427-quot/mp/556321

如果您清理模拟器(从模拟器目录中删除 .dmp 文件)并重新启动模拟器,它工作正常

It seems there is an issue with certain versions of Windows XP and the Blackberry simulator version. Check this link http://supportforums.blackberry.com/t5/Testing-and-Deployment/Simulator-quot-device-Error-DE427-quot/m-p/556321

If you clean up the simulator (delete .dmp files from simulator directory) and restart the simulator it works fine

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文