×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    7

    Unhappy Manager.createPlayer freeze emulator

    Hi all, sorry my english :P

    I want to create on player in a classic way

    InputStream is= getClass().getResourceAsStream("/sound.mid");
    Player p = Manager.createPlayer(is, "audio/midi");

    And it works fine in all phones, but for some nokia phones 6131..6234, the aplication crush. But I dont get any kind of exception, it just crush in the createPlayer line.

    Debugging whit netbeans, whit WTK emulator and watching the imputstream I get something like this:

    +is
    ....handle | int | 0
    ....pos | int | 0
    ....size | int | 9342
    ....name | String | sonido.mid
    + inherited
    ....lookahead | int | -1
    ....moreToRead | int | -1

    but whit Nokia S40 5th edition emulator i got this:

    +is
    ....dz | | null
    ....pos | int | 0
    ....size | int | 9342
    ....mark | int | 0

    Why are they differents?

    I Belive this field "dz" is wrong.. but I dont know why

    Like I said, I dont get any Exception, the emulator and the phone just crush..

    I test the same version on N70 device and its work fine.

    Could somebody helpme whit this?

    Again, sorry my english

    and... THANKS!!

  2. #2
    Registered User
    Join Date
    Jul 2008
    Posts
    7

    Question Re: Manager.createPlayer freeze emulator

    Ok, I was doing more research about this, like I dont know (And I cant find) diferences between s40 and s60 edition, and its seems to happend only in s40 edition.. someone know how to create a player on those versions, or its supose to be in the same way??

    Thanks
    Last edited by GuilloteJP; 2008-08-22 at 13:22.

  3. #3
    Registered User
    Join Date
    Jul 2008
    Posts
    7

    Re: Manager.createPlayer freeze emulator

    Well, I solved the problem. What I do, is create the player whit the biggest sound at the beggining of the aplicattion and then release the resources.. its like then the application can load any sound.... any explication?

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: Manager.createPlayer freeze emulator

    Hi GuilloteJP,

    could you reproduce the crash in a simple, proof-of-concept MIDlet? It would be fine to test it on S40 devices to check for possible issues.

    Pit

  5. #5
    Registered User
    Join Date
    Jul 2008
    Posts
    7

    Re: Manager.createPlayer freeze emulator

    Hi! yeha, but I loose many time whit this issue, so.. maybe later.. but i do this because I remmember I had the same problem whit nokia 6585 one year ago.

Similar Threads

  1. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Bluetooth Technology
    Replies: 9
    Last Post: 2009-07-17, 02:33
  2. Carbide.vs emulator hangs when debugging
    By jyrkiettila in forum Symbian Tools & SDKs
    Replies: 14
    Last Post: 2008-02-26, 17:22
  3. some problem when using network on emulator
    By xhsoldier in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2006-12-06, 06:16
  4. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-07-25, 00:14
  5. How To Make The S60 Emulator See My USB Bluetooth Dongle ?
    By Mo7ammed_01 in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-25, 00:12

Posting Permissions

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