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.

Do we have to remove all chartOjectListener in onStop()?
 Post subject: Do we have to remove all chartOjectListener in onStop()? Post rating: 0   New post Posted: Tue 22 Nov, 2011, 20:20 
User avatar

User rating: 5
Joined: Fri 02 Sep, 2011, 10:08
Posts: 157
Location: FranceFrance
Hi,

In my strategy I am adding some listeners with setChartObjectListener() but it
seems that when I stop the strategy, It continues to listen to the chart objects after.


Should I remove all listeners in onStop() ?

Thanks


 
 Post subject: Re: Do we have to remove all chartOjectListener in onStop()? Post rating: 0   New post Posted: Wed 23 Nov, 2011, 09:40 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
If the chart objects remain, then also their listeners remain. So you can either remove only the listeners or remove chart objects which will obviously remove the listeners as well.


 

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