Dukascopy
 
 
Wiki JStore Search Login

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.

onStop() event was not triggered in Eclipse
 Post subject: onStop() event was not triggered in Eclipse Post rating: 0   New post Posted: Tue 29 Sep, 2009, 15:05 

User rating: 0
Joined: Tue 29 Sep, 2009, 09:14
Posts: 3
another problem when use the standalone lib API:
My stragety starts and runs very well, but after press the "Terminate" button (red button inside console window of eclipse), the onStop() event was not triggered, which cause some objects were not destroyed.

thanks,
tzFox


 
 Post subject: Re: onStop() event was not triggered in Eclipse Post rating: 0   New post Posted: Wed 30 Sep, 2009, 09:31 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Terminate button kills java instantly, it's not a normal close. You should add shutdown handler in your program where you stop the strategy and use Ctrl+C from console


 

Jump to:  

  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com