USERNAME PASSWORD LOST PASSWORD? REGISTER
"A Complete Mobile Application Development Environment"
Advertisement

Downloads
Documentation
Forums
Blog
Press
Bug Tracking
Creator IDs
Contact Us




ACCESS Developer Network
Welcome, Guest
Please Login or Register.
Lost Password?
Re:Device Hanging (1 viewing)
_GEN_GOTOBOTTOM Post Reply Favoured: 0
TOPIC: Re:Device Hanging
#687
Arun (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Device Hanging 2008/09/11 13:50 Karma: 0  
Hi All,

I am developing an application which uploads the file to the remote server for that I am using NetLib functions.

Now I am facing the device hanging problem during the file uploading process.

What I am doing to upload one file:

  • Reading the file with VFSFileRead (40K in one time/chunk)

  • Connecting the socket with NetLibSocket functions (Socket is in NonBlockMode (netWouldBlock))

  • Creating Post Request buffer

  • Sending the Request throung NetLibSend (in loop)

  • Receiving the response by using NetLibReceive (in loop)

  • Parse the responce buffer

  • Close the Socket connection

  • after that I am repeating the above steps in loop to upload the other file/remaining chunk of the same file.

    After unknown number of above loop device get hanged. I am unable to find out what is going wrong. In POSE it is working fine without any memory leak. I am also using the section in my code. To trace the position of the hang I also created the log file and it seems that it has not ant fixed place to get hanged.


    Please help me in finding out this issue and if possible please also tell me what are the possible conditions by which the device get hanged.

    Need UR Help
    Arun
      The administrator has disabled public write access.
    #698
    chamel (User)
    Gold Boarder
    Posts: 48
    graphgraph
    User Offline Click here to see the profile of this user
    Re:Device Hanging 2008/09/14 12:29 Karma: 0  
    1. do not use waitforever timeout, use SysTicksPerSecond()*(seconds), I don't know whether you have different timeout as you you haven't specified.
    2. you do 7 steps, write
    WinDrawChars("step 1",6,10,10) after every step, to track error, it is a primitive method but works.
      The administrator has disabled public write access.
    _GEN_GOTOTOP Post Reply
    Powered by FireBoardget the latest posts directly to your desktop


    © 2008 ACCESS Developer Network    |    Joomla! is Free Software released under the GNU/GPL License.    |    ACCESS Global Website
    Events Support Community Platforms Home