×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2007
    Posts
    3

    Problem with destroyApp (not called)

    There is problem description:

    The application works with sockets and needed to correct cleanup on termination.

    On Siemens devices on long red key pressing the application terminates and
    destroyApp(boolean) is called as written in spec.

    On Nokia phones (2610) on single redkey pressing connect (GPRS) is closed, on long pressing the application terminates but destroyApp(boolean) is NOT called (may be no, but how to check?)

    Help me, please.

  2. #2
    Regular Contributor
    Join Date
    Aug 2006
    Posts
    307

    Re: Problem with destroyApp (not called)

    IMHO if the application's work totally rely on the socket connection, there could be a simple call to destroyApp(), after the socket connection is no longer active.

  3. #3
    Registered User
    Join Date
    Jun 2007
    Posts
    3

    Re: Problem with destroyApp (not called)

    If client Java application is terminated by red key, connection still active on server and it closes after some time (some minuts).

  4. #4
    Registered User
    Join Date
    Jun 2007
    Posts
    3

    Re: Problem with destroyApp (not called)

    Today I have tested it on Nokia emulator (S40 SDK 2.0) - destroyApp is called
    On real device - not...

  5. #5
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Problem with destroyApp (not called)

    Hi rlusnikov,

    I've never seen such behavior on Nokia devices, so I think there may be something wrong. One problem may be that you are not writing the destroyApp the way it must be written, for example, if you write it as destroyapp, it will not be called by the AMS. But as far as I remember destroyApp is abstract so it must be overriden the right way...

    I am just guessing, over the years I have seen this kind of mistake event with other Java platforms such as EJB callbacks, servlets and others, so double check it.

    Anyway, I do not know the reasons why as you say that single redkey press calls it and long doesn't, so it doesn't seem to be the case. And it is strange because 2610 is a Series 40 device so the MIDlet is not being backgrounded, etc...

    Hope this helps!
    Juarez Alvares Barbosa Junior - Brazil

Similar Threads

  1. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  2. CDMA sms Problem.. Experts only plzz..
    By milind2517 in forum General Messaging
    Replies: 1
    Last Post: 2006-11-24, 10:40
  3. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36
  4. About 6230 Bt Problem
    By eerkek in forum Bluetooth Technology
    Replies: 17
    Last Post: 2005-02-08, 12:33
  5. 7210 Silent Problem
    By MarkMckim in forum Mobile Java General
    Replies: 1
    Last Post: 2003-03-18, 12:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×