08-06-2012 06:39 AM
Hi ,
i am getting this error when i am trying to upload the file more then 10 times . i have searched in the forum regarding this error and i found one possible reasone is File Connection is not properly closed. i have done that job(mean i have closed all the File Connection which i have used ) but still i am getting this error
os 6.0
device 9800
please share any hints to solve this problem
Thnaks
Solved! Go to Solution.
08-06-2012 06:43 AM
Hey guys ,
After getting the File System Out Of Resources Error. i am trying to launch the application its throwing the application not responding error . ![]()
08-06-2012 06:56 AM
08-06-2012 07:05 AM - edited 08-06-2012 07:11 AM
i am giving detail about my process of uploading
i am creating new thread and in this thread i am doing uploading operation .
like Thread t = new Thread()
t.start();
thats it
i am not calling UiApplication.invokelater(){
Thread t = new Thread();
t.starts();
}
Simon , i agree with u but . i am not getting where it is getting block. if my application block the the event thread then it should not work 1st time uploading . why it is working ?? please share more detail. i have seen your post link thanks for that. how can i identify ? my event thread is blocking ??? i am new to this please give detail ..
08-06-2012 10:29 AM
There are two problems here, I suggest we concentrate on one, which is the File System out of resrouces.
As noted, this is mostly cuased by a bug in your download code where you are using up too many connections. Most likely I say, but not certain. But let us rule that out. .
Do you close the file connection and any other streams you use in a finally clause in this Thread? (you know, try/catch/finally)
You say you have closed the connections, but how do you know that you have? Are you logging something for each open and close?
As noted you are starting up a new Thread for this. How many of these Threads do you try to run at once?
08-07-2012 04:49 AM - edited 08-07-2012 04:50 AM
Hey Peter , i found out the problem . and it was the file stream was missed to close. Thanks for suggestion.
"As noted you are starting up a new Thread for this. How many of these Threads do you try to run at once? "
I have opened the only one thread after the event thread. if i open more thread after the event thread will create any problem. because i have created the more then one thread in one usecase. and i have logged the event thread using UiApplication.isEventThread().
but after end of the all process this giving me(UiApplication.isEventThread().) false. can u tell me what could be the reason
Thanks
JaM
08-07-2012 04:59 AM
If you have resolved the File System resources error, then please mark this Thread as Solved.
Start your other (Event Thread) problem on a new Thread.
If you do start a new Thread, please can you try to explain your situation in more detail. I am not clear what you are saying in the question in the previous post.