message queue full error in blackberry

Posted by Rahul Varma on Stack Overflow See other posts from Stack Overflow or by Rahul Varma
Published on 2010-05-12T07:06:22Z Indexed on 2010/05/12 7:14 UTC
Read the original article Hit count: 434

Hi ,

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...

© Stack Overflow or respective owner

Related posts about blackberry

Related posts about blackberry-simulator