Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User saqibatiq's Avatar
    Join Date
    Nov 2012
    Location
    Lahore, Pakista
    Posts
    55
    I have a j2me app in which I receive a number of SMS in a process, but when sometime it has some error or exception it stops there by showing error but what happens is that the remaining SMS which actually has been sent by the Server, do not receive on port rather they stay over the port. I yet didn't close the port but due to exception occurrence my app doesn't receive those SMS, I also tried to close and open the port again at that moment but still same issue. And when I close app(exit) and restart it, I receive those remaining SMS before my new process get it's own SMS. So I have to wait for those OLD sms to discard and then move processing my new one. I need some solution that when I get exception somehow my remaining SMS on port should be discarded. Note: I am closing my port only on exit, and opening and runtime of app. Thanks

  2. #2
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    You have to make sure that the app is not going to crashed unexpectedly, do proper exception handling and if you don't want to receive the SMS's if the exception/error comes then inside the catch handler just de-registered the port.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Registered User saqibatiq's Avatar
    Join Date
    Nov 2012
    Location
    Lahore, Pakista
    Posts
    55
    Quote Originally Posted by raj_J2ME View Post
    You have to make sure that the app is not going to crashed unexpectedly, do proper exception handling and if you don't want to receive the SMS's if the exception/error comes then inside the catch handler just de-registered the port.
    For the time being I am not closing this port on exception, but when I close application there I am closing this port. And when this all happens and I restart the application same issue comes, if you are saying that closing the port can solve this problem then it should have already done this. Is there anything am not doing right?

  4. #4
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by saqibatiq View Post
    For the time being I am not closing this port on exception, but when I close application there I am closing this port. And when this all happens and I restart the application same issue comes, if you are saying that closing the port can solve this problem then it should have already done this. Is there anything am not doing right?
    I am talking about the closing of the port when the exception came and app is getting crashed.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. arm-none-symbianelf-ld and stuff defined in discarded section
    By lucidmind in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2011-02-27, 19:59
  2. Will symbian be discarded?
    By sundy10 in forum Symbian C++
    Replies: 1
    Last Post: 2009-09-04, 12:40
  3. recv blocking for non-blocking socket
    By ACSS in forum Open C/C++
    Replies: 2
    Last Post: 2009-06-02, 09:51
  4. USB Port blocking
    By kanthi in forum Symbian C++
    Replies: 3
    Last Post: 2008-12-15, 13:22
  5. Will a device without its port registered receive a SMS with port assigned?
    By JunJie in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-08-24, 08:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved