×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    136

    Signal 'Exception 0' received.

    Hi, on emulator (S60 3RD FP2 MR) no problem.
    On e61 (S60 FP1) I get:

    Thread [Thread id: 578] (Suspended: Signal 'Exception 0' received. Description: A data abort exception has occurred..)
    2 Unknown (0xF897D538)() 0xf897d538
    1 Unknown (0xF897D63E)() 0xf897d63e

    The exception is caused by the code:

    Code:
    TInt err;
    RFileReadStream	settingsFile;
    TRAP (err, settingsFile.Open(iFSSession, KSettingsFilePath(), EFileStreamText|EFileRead|EFileShareAny));
    if (err != KErrNone)
    	return;//TODO	handle the error
    	
    TRAP(err, iInterval = settingsFile.ReadInt8L());
    if (err != KErrNone)
    {
    	settingsFile.Close();
    	return;
    }
    my .mmp file is:
    Code:
    /*
    ============================================================================
     Name		: tracker_srv.mmp
     Author	  : 
     Copyright   : Your copyright notice
     Description : This is the project specification file for tracker_srv.
    ============================================================================
    */
    
    TARGET		  tracker_srv.exe
    TARGETTYPE	  exe
    UID			 0 0xEB920ED4
    
    USERINCLUDE	 ..\inc
    SYSTEMINCLUDE   \epoc32\include \Epoc32\include\ecom
    
    SOURCEPATH	  ..\src
    SOURCE		  tracker_srv.cpp CActivePositioner.cpp CPhoneInfo.cpp ClientEngine.cpp ConnectionNotifier.cpp SettingsWatcher.cpp
    
    LIBRARY		 euser.lib ecom.lib esock.lib estor.lib bafl.lib lbs.lib commdb.lib efsrv.lib http.lib sysutil.lib hash.lib inetprotutil.lib etel3rdparty.lib
    
    #ifdef ENABLE_ABIV2_MODE
    DEBUGGABLE_UDEBONLY
    #endif
    CAPABILITY LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData
    Please help, my wall's facade started tearing apart because of head banging against it.


    thank you,
    kellogs

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: Signal 'Exception 0' received.

    Hi
    If you read the documentation for TRAPs you will find that you can only trap a leaving function, and leaving functions are indicated by having a trailing L in their name. A leave is not a return. In C++ would you catch a function that returns an error code?

    So knowing this, if the call to Open() fails what does it mean in terms of your current code and its robustness?

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    136

    Re: Signal 'Exception 0' received.

    Oh, snap!
    i always fall into TRAPS . i shall correct that when i get home.

    but.. Open() is not the function that fails, it is ReadInt8L() - the one bolded out having issues.

    thanks

  4. #4
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: Signal 'Exception 0' received.

    If Open() fails then your code will not notice and so you will try to read something which hasn't opened.

    Have you confirmed it is opening successfully.

  5. #5
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    136

    Re: Signal 'Exception 0' received.

    You are right mr. cheese. Open() failed with KErrnotFound. I have made sure the file is at the specified location, and then tried moving it arround paths C:, D:, E:, C:\\Others, D:\\Others, E:\\Others.. the same error (Kerrnotfound) or KErrPathNotFound in some cases pops up for all path but E:\\Others. How come ?

    kellogs

    Edit: Ok, I have got no idea on how have I managed to make it work from E:\\Others, it stopped working out of a sudden. I have made sure the sisx files I upload to the phone are fresh builds.

    Edit2: just finished re-reading the subchapter 'using file server (f32)' in the documentation. I can not find what I am doing wrong. Please help
    Last edited by kellogs; 2009-09-01 at 21:39. Reason: strange behaviour

  6. #6
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    136

    Re: Signal 'Exception 0' received.

    ok, it started working for c:\\others also now... gee

    Edit: omfg! i have 2 apps which need to access the same file. 20 mins ago, they could both access it, now only one of them is able to do so. Arrrrrrgh
    Last edited by kellogs; 2009-09-01 at 23:14.

Similar Threads

  1. Replies: 4
    Last Post: 2009-12-11, 09:43
  2. s60 3rd ed emulator crash
    By Kimau in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2008-06-18, 22:12
  3. Possible carbide bug: Suspended: Signal 'Exception 5' received. Description: Access V
    By alexbirkett in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-12-14, 07:40
  4. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

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