×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    20

    on emulator working, on ngage isn't working

    Hello. I have problem. My application working on emulator but when I run program on ngage, ngage give mi error : "Application closed";

    Code:

    Code:
    void CMy2Container::ConstructL(const TRect& aRect)
        {
       
     ............. 
         iGif = CPAlbImageViewerBasic::NewL( this,aRect);
    	iGif->SetAnimationObserver(this,ETrue);//for looping 
    	iGif->LoadImageL(image,EColor4K); 
    	iGif->PlayAnimationL(); 
    }
    error is probably in these code:

    Code:
    void CMy2Container::MainLoop()
    {
    
    	if(iLoadGif) // add new gif
    	{
    		iGif->CancelAnimation () ;
    		iGif->ReleaseMemory  (); //when I delete this line i haven't error but new gif hasn't loaded.
    			
    		iGif->LoadImageL(iPath,EColor4K);  // path is ok!
    		iGif->PlayAnimationL(); 
    
    		iLoadGif=EFalse;
    	}
    
    }
    What is wrong? Please help me!
    P.S. sorry for my english :/
    Thanks.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: on emulator working, on ngage isn't working

    there could be multiple differenent reasons, why you are having an error with the device, and you could try first on getting the error note to show something about the error. to do so, follow thi link: http://www.newlc.com/article.php3?id_article=150

    then tyou could post the error note shown here, and maybe somebody will be able to help you better then.

    yucca

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    20

    Re: on emulator working, on ngage isn't working

    Yes i do this before post. I have "kern-exec 3"

  4. #4
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: on emulator working, on ngage isn't working

    Kern-Exec 3 means that there is some sort of memory violation, usually NULL pointer usage, or using invalid pointer. anyway, if the iGif is valid and calling ReleaseMemory causes it, then it is something inside the class.

    Anyway, seems that you want to show a new animation in there, so, as a fix, have you just rtried on deleting the original iGif object and doing full re-construct for the object whenever you change the animation. Maybe it would fix this problem.

    yucca

  5. #5
    Registered User
    Join Date
    Aug 2005
    Posts
    20

    Re: on emulator working, on ngage isn't working

    ok. I do this:
    Code:
    	if(iLoadGif)
    	{
    	
    		iGif->CancelAnimation () ;
    		iGif->ReleaseMemory  ();
    		
    	        iGif = CPAlbImageViewerBasic::NewL( this, Rect());
    		iGif->LoadImageL(iPath,EColor4K); 
    		iGif->PlayAnimationL();
    	 
    		iLoadGif=EFalse;
    	}
    but this code isn't working.New load gif no displayed. But if I clik one more time load (do this code one more time) new gif i display but not animated. What is wrong?

    Thanks.

Similar Threads

  1. sendRedirect not working
    By nicole_yap in forum Mobile Java General
    Replies: 0
    Last Post: 2005-09-16, 03:35
  2. Ngage + java + bluetooth - Suggestion
    By cyrocky_t in forum Mobile Java General
    Replies: 0
    Last Post: 2005-01-10, 15:34
  3. USB connection to NGage not working on XP
    By jjclose in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-02-27, 11:27
  4. 7650 / BlueUSB Bluetooth USB dongle / PC-suite not working!
    By mahaikol in forum Bluetooth Technology
    Replies: 7
    Last Post: 2002-12-28, 06:47

Posting Permissions

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