Dukascopy
 
 
Wiki JStore Search Login

JFOREX-1334: invokeAndWait from onStart
 Post subject: JFOREX-1334: invokeAndWait from onStart Post rating: 0   New post Posted: Fri 13 Nov, 2009, 14:43 

User rating: 0
Joined: Sat 08 Mar, 2008, 03:10
Posts: 18
I noticed in the 2.4.2 changelog that one of the issues dealt with was that onStart method must not block event dispatching thread. This is great, and I hoped to be able to call a GUI from onStart but I still have a couple of errors:

When onStart execution is blocked by invokeAndWait, the error messages 'fireFeedbackMessageReceived: TO LARGE EXECUTION WAIT TIME: 5260, possible application problem or deadLock' start firing up on the console.

Ignoring the above error, what is the best method to use to block the return of the Runnable function so that it only returns when the user has finished with the GUI? I had assumed synchronized wait() and notify() would work so that the EDT is notifying the strategy thread when it is done, but I can't get it to work and I'm not sure if my understanding is correct anyway.

Thanks for your help!


 

Jump to:  

cron
  © 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