×

Discussion Board

Results 1 to 15 of 15
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    how 2 track the error in this......?

    hi 2 all


    i want 2 create a new folder programatically in "My Folder" option.so i added that code in my engine part...and i am making an object of engine in my gui part and calling that function.
    while compiling it dosent shows any error...but when i builds it on emulator or device and opens my application it suddenly closes....so i debugged it then at the time of crashing arrow stops at first line of ConstructL() in which i am making an object of engine and calling the function CreateFolderL().

    but i observed one more thing when i commented the line calling CreateFolderL my application runs fine.

    plz help me....how 2 track it?....i am newbie 2 symbian


    regards
    bharat

  2. #2
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: how 2 track the error in this......?

    Hi,

    for creating a new folder, use MkDir() function in RFs. Can u provide the code in ur CreateFolder() function.

    regards,
    eswar

  3. #3
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    hi eswar...thanks for reply...

    actually tackling with the same problem from last 2 days.

    yah this is the code i am using in CreateFolderL()

    TMsvEntry readfolder;
    readfolder.iType = KUidMsvFolderEntry;
    readfolder.iMtm = KUidMsvLocalServiceMtm;
    readfolder.iServiceId = KMsvRootIndexEntryId;
    readfolder.iDetails.Set(_L("Deepak"));
    readfolder.SetVisible(ETrue);
    readfolder.SetStandardFolder(ETrue); //this is not propably needed

    CMsvEntry* entry = iSession->GetEntryL(KMsvLocalServiceIndexEntryId);
    CleanupStack::PushL(entry);
    entry->CreateL(readfolder);
    CleanupStack::PopAndDestroy();


    and actually what i think that is it a problem due to my two parts means in engine i implemented the function and in gui i am calling the function.

    regards
    bharat

  4. #4
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    hi

    is this code is right?

    or due to this code i am getting stucked?
    i think that is it a session problem?..mean session is not creating?

    waiting for your valuable replies.

    regards
    bharat

  5. #5
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    Are you implementing MMsvSessionObserver::HandleSessionEventL??
    Call the CreateFolder function after you get the EMsvServerReady event.
    --Mayur.

  6. #6
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    thanks for reply.

    yah i called that CreateFolderL function from that HandleSessionEventL()
    methods EMsvServerReady event.

    now my application runs fine but not creating any folder in "My Folder" option.
    is it due to i am writing this code in my engine which is dll....and then compiling the whole project comprising ENGINE and GUI part....and making sys file.

    is this session is created when i started my application on device?
    or else i have 2 create it programatically in my gui part?

    awaiting for your valuable reply.


    regards
    bharat

  7. #7
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    Quote Originally Posted by bharats
    thanks for reply.

    yah i called that CreateFolderL function from that HandleSessionEventL()
    methods EMsvServerReady event.

    now my application runs fine but not creating any folder in "My Folder" option.
    is it due to i am writing this code in my engine which is dll....and then compiling the whole project comprising ENGINE and GUI part....and making sys file.

    is this session is created when i started my application on device?
    or else i have 2 create it programatically in my gui part?

    awaiting for your valuable reply.


    regards
    bharat
    Nopes it cannot be due to separation of the modules.
    This link will help :
    http://forum.newlc.com/index.php/topic,15293.0.html
    --Mayur.

  8. #8
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    thanks for reply mayur (waited for long time)

    yah my code is exactly the same as in the link provided.

    but shall i need 2 define explecitely the two id`s in two respective folders
    like in that code he done

    hi,
    i think i managed to create new folder and insert sms into it. using this code, i create SypherOutbox folder in local services folder and setting the id for the folder in msvstd.h and msvids.h

    in msvstd.hrh
    #define KMsvOutboxsEntryIdValue 0x1009

    in msvids.h
    const TMsvId KMsvOutboxsEntryId = KMsvOutboxsEntryIdValue;


    is it the reason that my folder is not being created?
    and till should i call the function CreateFolderL from HandleSessionEventL?

    awaiting for your valuable reply.

    regards
    bharat

  9. #9
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    Yes Id's need to be defined.
    --Mayur.

  10. #10
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    thanks mayur

    i defined the ids....and tested it on device but till folder is not being created.

    i am calling that function from HandleSessionEventL methods EMsvServerReady event in engine dll.
    but would this function is getting called or not?

    awaiting for your valuable reply

    regards
    bharat

  11. #11
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    One more thing ,after making changes to the store just call CMsvStore::Commit so that the changes are visible.
    Hope this helps.
    --Mayur.

  12. #12
    Regular Contributor
    Join Date
    Nov 2006
    Posts
    260

    Re: how 2 track the error in this......?

    thanks for reply

    sorry i didnt got...will u plz give me where should i put that line?
    is it in CreateFolderL or in HandleSessionL()?

    i am newbie 2 symbian...

    regards
    bharat

  13. #13
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    Ok,I just checked,the folder creation code is fine and is creating folders.But those folders will not be seen in the standard messaging application.I am just checking how to make those folders visible in the messaging application.
    So the code is fine,but it just requires some tweaking.
    --Mayur.

  14. #14
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,336

    Smile Re: how 2 track the error in this......?

    Hi,

    Refer to the following link: post #14
    http://discussion.forum.nokia.com/fo...ad.php?t=88939

    I am able to create folder using that code and i can see it on real device too.

    Regards.
    Kiran.

  15. #15
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: how 2 track the error in this......?

    That seems cool,will also check it myself.
    Thanks for the help.
    --Mayur.

Similar Threads

  1. Audio track names in Chinese?
    By Ravenwynter in forum Audio
    Replies: 0
    Last Post: 2006-09-12, 11:46
  2. How to track memory leaks?
    By xedarius in forum Mobile Java General
    Replies: 8
    Last Post: 2006-07-31, 15:54
  3. How can i track Outgoing SMS
    By pankajmahto in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2005-04-20, 08:02
  4. how to track phonebook events?
    By kpoxa in forum Symbian
    Replies: 0
    Last Post: 2004-09-27, 12:14
  5. Anvil Studio, Midi and Vibration
    By superfriik in forum Audio
    Replies: 1
    Last Post: 2003-10-12, 15:34

Posting Permissions

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