|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
How to disconnect? |
[MosheElisha]
|
Post subject: How to disconnect? |
Post rating: 0
|
Posted: Wed 28 Oct, 2009, 10:36
|
|
User rating: 0
Joined: Wed 28 Oct, 2009, 10:25 Posts: 13
|
Hello,
I saw in the examples that the program exists with "System.exit(0)".
Isn't there a way to gracefully disconnect and shutdown? It seams that the JForex threads are not declared as deamon and it forces me to run "System.exit(0)".
Thanks.
|
|
|
|
 |
API Support
|
Post subject: Re: How to disconnect? |
Post rating: 0
|
Posted: Wed 28 Oct, 2009, 13:17
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, to stop strategy immediately use method from IContext interface stop(). There isn't any alternatives to "System.exit(0)", although you could put on screen some dialog window where you offer exit from system.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|