|
Attention! Read the forum rules carefully before posting a topic.
Submit JForex API bug reports in this forum only. Submit Converter issues in Converter Issues. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
JForex client freezes up |
vietllc
|
Post subject: JForex client freezes up |
Post rating: 0
|
Posted: Fri 05 Dec, 2014, 04:45
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
I am writing an app on top of the JForex client library to automate backtesting. When I run multiple instances of my app on the same machine, one or more instances would freeze up at random points in their execution. When I run a single instance of my app, there appears to be no problem.
Then I noticed that the JForex client library puts locks on the data files in the local cache before accessing them. This might be causing the problem. If I already downloaded the data to the local cache and only read from the files, is there a need to put locks on them? Can you provide an option to turn off this file locking behavior?
Thanks, Vinh
|
|
|
|
 |
API Support
|
Post subject: Re: JForex client freezes up |
Post rating: 0
|
Posted: Mon 08 Dec, 2014, 14:46
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Can you provide an application that allows to reproduce this issue?
|
|
|
|
 |
vietllc
|
Post subject: Re: JForex client freezes up |
Post rating: 0
|
Posted: Mon 05 Jan, 2015, 09:15
|
|
User rating: 0
Joined: Fri 10 Oct, 2014, 02:09 Posts: 27 Location: Vietnam,
|
After further investigation, it appears the freeze-up is caused by an intermittent internet connection. Do you have sample code for how to recover from a dropped connection?
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|