Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2006

    App crashes in various stages - 3rd Edition

    Hi everyone,
    I've recently ported Papyrus (SBHS) from 2nd FP3 SDK to 3rd.

    After several days of debugging, changing the MMP, RSS file, localization files, updating the code, I've finally managed to run my application on the emulator.

    It crashes somewhere in the beginning of the app with a "STORE-store 2" panic code even though I'm not even using TStreamId().

    It crashes at this point:

    //Nothing to implement here move along

    Has anyone any idea as to why this is happenning?

    Before creating this class, I create various classes and they work. Alongside I create a class of type CBase (Settings) and pass it to the Papyrus creation:
    Papyrus = PapyrusDB::NewL(iSettings);
    in iSetting's constructor I have these lines:
    #if defined(__WINS__) //Importent for the emulator to save in C...
    	CFileStore* store = CDirectFileStore::OpenLC
    		(iFileServerSession, fullName, EFileRead);
    	// Open the data stream inside the store
    	RStoreReadStream stream;
    	stream.OpenLC(*store, store->Root());
    	// Read all the data
    	TInt err;
    	TRAP(err,ShowMiniList = stream.ReadInt32L());
    	if(err != KErrNone) {
    		ShowMiniList = ETrue;
    	TRAP(err,CurrSelectedView = stream.ReadInt32L());
    That works fine.

    For the above lines, do I need to define a CAPABILITY other than NONE?

    Would this work (as it does) with CAPABILITY set to NONE?
    If the debugger works over these lines, but crahses later, can THIS be the cause?


  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2004

    Re: App crashes in various stages - 3rd Edition

    You've shown the code to read from a store. What about the code where you create and write to that store? Whats the code in the

    ...... part or your posting?

    Also you're not PopAndDestroy()ing the store.

  3. #3
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: App crashes in various stages - 3rd Edition

    also, if you could post the error note shown, it could help.
    And if you can put a breakpoint into teh code and figure out the lines where your applications gets errors, they also would make it easierto solve your problem.


Similar Threads

  1. Replies: 8
    Last Post: 2008-10-15, 19:54
  2. OpenGL ES on S60 3rd Edition SDK Emulator
    By specjones in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2008-09-30, 10:22
  3. Linking dll in S60 3rd edition - experts please help!
    By iulian_moldovan in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-06-13, 18:41
  4. Plea for Link Errors:Porting Code from Fp3 to 3rd Edition
    By mateen_maldar in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-05-17, 06:26
  5. TTime : TInt64& Int64() problem in S60 3rd edition
    By iulian_moldovan in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-01-24, 13:07

Posting Permissions

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