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.
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.