×

Discussion Board

Results 1 to 6 of 6

Hybrid View

  1. #1
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Application get crashes when i another application is accessing the file

    Hi Everyone,
    I have written an application which is taking gps location in every 30 sec and write it in a file(this is written in symbian c++).some times my application gets crashes when another java application is also running and reading the same file.my code never crashes when it is running alone it only crashes when i start java app.
    as per my thinking it wouldbe the synchronization cause may be java app is reading the file and i am writing in file. I dont have much experience what is the reason of crashing and how to solve it you people are having experience kindly guide me to solve this bug.
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  2. #2
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Application get crashes when i another application is accessing the file

    Quote Originally Posted by amit.mangal View Post
    Hi Everyone,
    I have written an application which is taking gps location in every 30 sec and write it in a file(this is written in symbian c++).some times my application gets crashes when another java application is also running and reading the same file.my code never crashes when it is running alone it only crashes when i start java app.
    as per my thinking it wouldbe the synchronization cause may be java app is reading the file and i am writing in file. I dont have much experience what is the reason of crashing and how to solve it you people are having experience kindly guide me to solve this bug.
    You need to open the file in Sharing mode.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  3. #3
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: Application get crashes when i another application is accessing the file

    already i did it EFileShareAny
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  4. #4
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Application get crashes when i another application is accessing the file

    Quote Originally Posted by amit.mangal View Post
    already i did it EFileShareAny
    In Java i think u do not open the file in Share mode. And how you synchronize both Symbian and J2ME application?
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

  5. #5
    Super Contributor
    Join Date
    Sep 2009
    Posts
    732

    Re: Application get crashes when i another application is accessing the file

    can we use semaphore to synchronize the file if symbian c++ app accessing the file then java app do not access and if java app is using the file then symbian c++ should not access
    Thanks & Regards
    Amit Kumar Mangal
    we can help each other and progress together
    http://amitmangal.blogspot.com/

  6. #6
    Registered User
    Join Date
    Jul 2007
    Location
    Noida
    Posts
    1,503

    Re: Application get crashes when i another application is accessing the file

    Quote Originally Posted by amit.mangal View Post
    can we use semaphore to synchronize the file if symbian c++ app accessing the file then java app do not access and if java app is using the file then symbian c++ should not access
    If you want to make communication betwwn Java and Symbian App, use MIDletNativeServicesFramework.

    http://wiki.forum.nokia.com/index.ph...vicesFramework

    Through this you can communicate easily.
    Regards,
    Amit


    ****"Putting a Smile on other's faces is the essence of true Happiness"****

Similar Threads

  1. Problem with GCCE build in Carbide.vs
    By raffaelbechara in forum Symbian
    Replies: 6
    Last Post: 2008-10-20, 16:06
  2. Error : Cannot find file : for DUMMIES
    By PACALA_BA in forum Symbian
    Replies: 7
    Last Post: 2008-07-06, 13:18
  3. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  4. How to Access 9210 Dbms file from my desktop application?
    By Nokia_Archive in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2002-06-03, 03:46

Posting Permissions

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